# Your RAG Pipeline Is Missing a 1994 Algorithm

DevFeed: [Your RAG Pipeline Is Missing a 1994 Algorithm](<https://devfeed.tech/articles/your-rag-pipeline-is-missing-a-1994-algorithm-104409.md>)

Original publisher: [Read original article](<https://towardsdatascience.com/your-rag-pipeline-is-missing-a-1994-algorithm/>)

Author: Spyros Georgopoulos

Published: 2026-10-28T11:00:00Z

Content type: article

Language: en

Sources: [Towards Data Science](<https://devfeed.tech/sources/towards-data-science.md>)

Topics: [hybrid-search](<https://devfeed.tech/topics/hybrid-search.md>), [search-engines](<https://devfeed.tech/topics/search-engines.md>), [Embeddings](<https://devfeed.tech/topics/embeddings.md>), [Retrieval Augmented Generation (RAG)](<https://devfeed.tech/topics/retrieval-augmented-generation-rag.md>)

Tags: [algorithm](<https://devfeed.tech/tags/algorithm.md>), [editor-s-picks](<https://devfeed.tech/tags/editor-s-picks.md>), [embeddings](<https://devfeed.tech/tags/embeddings.md>), [information-retrieval](<https://devfeed.tech/tags/information-retrieval.md>), [large-language-models](<https://devfeed.tech/tags/large-language-models.md>), [nlp](<https://devfeed.tech/tags/nlp.md>), [pipeline](<https://devfeed.tech/tags/pipeline.md>), [rag](<https://devfeed.tech/tags/rag.md>)

## AI overview

BM25 and dense retrieval preserve different evidence, so a RAG system may need both. BM25 ranks shared terms, giving rare identifiers such as error codes direct weight while limiting the effects of repetition and document length; it cannot bridge vocabulary gaps. Dense retrieval can match paraphrases and related meanings, but a fixed-size embedding does not guarantee that an exact code will stand out. The article recommends testing the retrievers separately, examining where their results differ, then combining ranked lists with Reciprocal Rank Fusion. It also advises evaluating retrieval independently: if the needed document never reaches the context, prompt changes cannot recover it.

## Source excerpt

Embeddings know that "broken" means "defective". They may not notice that ZX-4821 is not ZX-4812. The post Your RAG Pipeline Is Missing a 1994 Algorithm appeared first on Towards Data Science.