Dense Retrieval
Type “how do I stop my laptop overheating” into a help centre and keyword search hunts for those words. The article that actually answers you might be titled “Managing thermal throttling in portable machines” and share almost no vocabulary with the question. Dense retrieval is the fix: search by meaning instead of by matching strings.
Vectors instead of words
Every passage in the collection is run through a neural encoder once, in advance, and stored as a single fixed-length vector — a few hundred dimensions, almost all of them non-zero, which is what dense means in contrast to the mostly-empty vectors of TF-IDF or BM25. At query time the question is encoded the same way, and retrieval becomes a nearest-neighbour search by inner product or cosine similarity, usually over an approximate index such as FAISS.
What makes it work
The encoders cannot be generic. They are trained so that a question and the passage answering it land close together. Dense Passage Retrieval set the standard recipe: a bi-encoder trained contrastively on question and positive-passage pairs, with other items in the batch as negatives and hard negatives mined from a keyword retriever. Retrieval quality turns sharply on the quality of those negatives.
Where it is weak
Dense retrieval wins on paraphrase and vocabulary mismatch and loses on exact strings — a part number, a rare surname, an error code — which BM25 handles perfectly and an embedding blurs. Serious search systems therefore run both, fuse the two result lists, and re-rank the survivors with a cross-encoder.
Dense retrieval searches a collection by meaning: passages and queries are mapped to fixed-length vectors by a trained neural encoder, and relevance becomes nearest-neighbour search in that vector space, typically over an index such as FAISS. It matters because it retrieves paraphrases that share no words with the query, which keyword scoring like BM25 misses — at the cost of weaker handling of exact identifiers and rare strings.
Ask a librarian for “the book about a boy who finds out he is a wizard” and you walk out with Harry Potter, even though you never said the title. A search box that only matches the exact words you typed would hand you nothing at all.
Dense retrieval gives software that librarian's knack. Every document is converted in advance into a long string of numbers that captures roughly what it is about, and your question is converted in the same way. The computer then looks for the documents whose numbers sit closest to yours. It is why a modern search can answer a question phrased in your own words, instead of demanding the exact wording the author happened to use.