← Back to concept explainers

Concept Fable

Dense retrieval

Conclusion first:Dense retrieval uses neural network embeddings to encode queries and documents into low-dimensional dense vectors, then finds semantically close content through vector similarity. It can handle synonymous expressions, paraphrases, cross-language and implicit intent, and is one of the core retrieval methods of modern RAG. Dense retrieval usually relies on an embedding model, a vector database, an ANN index and a similarity metric. Its weakness is that it is not always stable for exact numbers, rare words, proper nouns and literal constraints, so enterprise systems often combine it with sparse retrieval, BM25, hybrid search and rerankers.

Dense Retrieval · Retrieval method

Read the story first. There is no rush to give a definition here; let the question grow on its own first.

Fable

The portrait artist found the same person by meaning

The great library in the city had one hundred thousand volumes. The old librarian found books by title, and readers had to state the exact title. If someone asked "how to preserve pears in winter," agricultural books whose titles did not contain "pear" were often missed.

At first, the new librarian added more tags to every book: fruit, warehousing, winter, moisture-proof. The more tags were pasted on, the more the spines looked like market signs. If readers used a different wording, they would still miss the truly useful books.

One day, the old gardener came to ask, "How do I keep the fruit from rotting on cold nights?" None of the book titles or tags matched exactly. The young librarian led him to several books about cellar storage, temperature, and humidity, and the gardener asked in surprise, how did you know I needed these?

The young clerk said he no longer looked only at the literal words. He placed each book at a position in his mind: books on similar questions stood close together, books on unrelated matters stood far apart. The reader's question was also first placed into this invisible city map, and then nearby books were sought.

The first trial was not perfect. Someone asked about "bridge load-bearing," but the system brought back several articles on "family burden," because both contain meanings of pressure and weight. The librarian did not roll back the old method; instead, he continued calibrating which similarities were true similarities.

Later, the library kept the literal index and also trained its clerks to understand the meaning of a question. Readers no longer had to guess the book title; they could simply describe their need and find materials in the same meaning district.

The library also kept a correction day. If a reader said "that's not the kind of meaning I meant," the librarian would nudge the mis-found book slightly away from that neighborhood; if an obscure book consistently helped with similar questions, it would be moved closer. The invisible city map gradually became more accurate through feedback. The head librarian also added spot checks to this invisible map. Each week, several reader questions were selected, and a senior librarian manually judged whether the books found were truly similar. If they were merely similar in word-scent but far apart in content and use, that path would be adjusted farther away. In this way, the library did not blindly trust the new map but continuously calibrated it. The head librarian also reminded the librarians that the invisible map is not an oracle. It offers nearby candidates, but ultimately one must still check whether the reader's purpose and the evidence in the book fit together.

The old gardener often said the old library was like finding people by house number; the new library was like knowing who lives in the same kind of life as whom. Sentences with different literal wording, as long as they point to the same need, might be adjacent on that invisible map.

Reveal

This story is about: dense retrieval

Dense retrieval uses neural network embeddings to encode queries and documents into low-dimensional dense vectors, then finds semantically close content through vector similarity. It can handle synonymous expressions, paraphrases, cross-language and implicit intent, and is one of the core retrieval methods of modern RAG. Dense retrieval usually relies on an embedding model, a vector database, an ANN index and a similarity metric. Its weakness is that it is not always stable for exact numbers, rare words, proper nouns and literal constraints, so enterprise systems often combine it with sparse retrieval, BM25, hybrid search and rerankers.

What matters is that it is not just a term, but a structural problem that repeatedly appears in real AI / Agent systems. Understanding it lets you judge when to add a model, when to change a process, and when to add governance.

Metaphor mapping

  • Finding people by name only: traditional keyword or exact-match retrieval
  • The Invisible Portrait: embedding, representing text as dense vectors
  • The question is also drawn as a portrait: query embedding
  • The closer the profile, the more relevant: vector similarity, such as cosine similarity or dot product
  • Post-departure permission revocation finds the account closure process: dense retrieval excels at synonyms and paraphrases
  • Section 12.4 was missed: dense retrieval can be unstable with exact numbering and hard constraints
  • The roster joins in: hybrid search with sparse retrieval/BM25
  • Candidate reranking: rerankers improve the relevance of what finally enters the context

Andy Ren Xu's judgment

The practical value of this concept is that it helps you break "AI features that look smart" into deliverable, verifiable, and governable units of work.

embeddingsvector databasesemantic searchsparse retrievalhybrid searchANN search

Related distinctions

This concept is easily confused with adjacent concepts; it is recommended to continue to the comparison page.

京ICP备2026014272号