广场

Fine-Grained RAG Permissions with Qdrant and SpiceDB

Fine-Grained RAG Permissions with Qdrant and SpiceDB Time: 45 min Level: Intermediate Output: GitHub A standard RAG pipeline answers questions using information retrieved from your documents. Qdrant stores their embeddings and associated metadata and finds relevant documents to provide as context to the language model. But without an authorization step, any user can get an answer from any document in the collection, including documents they aren’t allowed to read. The OWASP Top 10 for LLM Applications lists this kind of leak as Sensitive Information Disclosure.

QdrantAI 工具英文

Embedding at the Speed of Light

Embedding a large corpus is usually the slowest part of building a vector search pipeline: transformer-based models capture semantics very well, but they are heavy on CPU, so you either wait days for the embeddings or pay for a costly GPU. Static embedding models avoid that cost by skipping the neural network altogether. A static model is a lookup table that associates each token in the model’s vocabulary with an embedding: to embed a text, you tokenize it, look up the vector of each token, and average them. With potion-base-8M , this let us embed 32.9 million passages on a laptop CPU in 35 minutes, where a transformer-based model would have needed about 53 days. The tradeoff is retrieval qu…

QdrantAI 工具英文

Universal I/O in Qdrant

Most software is built on an unspoken assumption: data lives on disk, and is read from and written to it. The assumption usually holds, until a new way (or need) of storing data appears. For Qdrant, that happened with serverless mode , where the data sits in object storage instead of on a disk next to the process. This blog tells the story of Universal I/O, the interface we built so that the same code could work in both worlds, and of the design choices that keep the local path cheap. This read is particularly relevant if you are a systems programmer, and some knowledge of Rust will help you follow the code, but the lessons should carry over to many other kinds of software.

QdrantAI 工具英文

Semantic Caching for RAG

Build a Semantic Cache for a RAG Pipeline Time: 30 min Level: Intermediate What’s a Semantic Cache Traditional caches operate on an exact match basis, while semantic caches search for the meaning of the key rather than an exact match. For example, “What is the capital of Brazil?” and “Can you tell me the capital of Brazil?” are semantically equivalent: a semantic cache can recognize that.

QdrantAI 工具英文

miniCOIL EN-ES: Sparse Neural Retrieval Across the Language Barrier

Sparse neural retrieval finally started getting more and more attention ( SPARSEUP , MILCO , sparse encoders in Sentence Transformers …). Well, amazing, we like attention! Our miniCOIL v1 sparse neural retriever article ended with a promise: to keep working on this sparse neural retriever in-depth, improving the model’s quality, and in-width, “extending it to other dense encoders and to languages beyond English.” Here is the next “in-width” step of the miniCOIL saga: to try and cross the language barrier, that is, make the model suitable for multilingual retrieval. It’s a fun challenge, as sparse retrievers are hard to adapt to this scenario: exact matching in cross-lingual text search usual…

QdrantAI 工具英文

Why Hyperbolic Embeddings Matter for Hierarchical Data

We choose embedding models, dimensions, and indexes. The geometry usually comes with the package. But why use a flat space, and what else could we choose? What Is a Manifold, and Where Do Our Vectors Live? A manifold is the space our embeddings live in. For embeddings, we care about the geometry we give that space. It determines how we measure distance, what the shortest path looks like, and how much room there is as we move outward.

QdrantAI 工具英文

Memory Tiers in Qdrant: What to Use and When

Memory Tiers in Qdrant: What to Use and When A growing vector collection eventually outgrows the RAM it started with: Qdrant handles that by letting you assign dense vectors, the HNSW graph, quantized vectors, payloads, and payload indexes each to whichever memory tier that structure supports, instead of forcing one RAM-versus-disk trade-off onto the whole collection. This article will give you practical guidance over which combination of tiers and quantization to reach for at each stage of a collection’s growth, and the reasons behind the choice.

QdrantAI 工具英文