Why HybridRAG Changed The Way I Think About AI Systems
From the publisher’s feed, collected in the ZeroLabs newsroom.
When I first started learning about RAG systems, I thought the intelligence came from the model itself. I spent most of my time thinking about prompts, model selection, temperature settings, and whether GPT, Claude, or an open-source model would perform better. Like many people entering AI engineering, I assumed the LLM was doing most of the heavy lifting.Then I started building HybridRAG.I went into it expecting the difficult part to be generation. I thought I would spend hours tweaking prompts, comparing models, and figuring out how to get better responses. Instead, I found myself stuck on something I had underestimated completely: retrieval.Not because retrieval was hard to implement. A few libraries can get a basic retriever running in minutes. The problem was understanding why the system sometimes felt incredibly smart and sometimes felt surprisingly unreliable. The same question could produce a great answer one moment and miss something obvious the next.At first, I blamed the model.I assumed the LLM was hallucinating, reasoning poorly, or just not understanding the question properly. But after spending more time tracing what was happening under the hood, I realized the model wasn’t actually the problem. The issue was much earlier in the pipeline. If the right information never reached the model, even the best LLM in the world had nothing useful to reason over.That was the moment something clicked for me. Building AI systems started feeling less like “pick the smartest model” and more like “make sure the right information arrives at the right place at the right time.”And surprisingly, that shift in thinking started with a problem I initially thought would be the easiest part of the system.So what exactly is HybridRAG?Before building this, I had a pretty simple understanding of RAG systems. A user asks a question, the system searches a knowledge base, retrieves relevant information, sends that information to an LLM, and the model generates a response. On paper, it feels straightforward.The more I worked with it, though, the more I realized that one step quietly carries most of the responsibility: retrieval. Because what counts as relevant is much harder than it sounds. Is a document relevant because it contains the exact words from the query? Or because it talks about the same idea using different language?Initially, I assumed embeddings had already solved this problem. You convert text into vectors, compare similarity, and retrieve the closest matches, and you are done. The first time I saw it work, it felt almost magical.For example, “reduces risk of cardiovascular events” and “lowers chances of heart-related complications” barely share words, but dense retrieval understands they are talking about similar ideas. That ability to understand meaning rather than exact wording felt incredibly powerful.Until I started noticing situations where things unexpectedly started breaking.Figure 1: Dense retrieval understands meaning, not just words.The problem started when exact details matteredDense retrieval felt almost magical at first, but after using it more, I started noticing strange failures. The system was great at understanding meaning, yet sometimes missed information that felt painfully obvious to a human.Suppose a database contains a specific drug name, a trial identifier, or an exact statistical value. Something like FORXIGA, DAPA-HF, or HR = 0.74. If a user asks about those exact terms, you would expect retrieval to immediately surface the right document.Surprisingly, that was not always happening. Dense retrieval understands semantic meaning, but exact identifiers sometimes behave differently. Product names, trial IDs, model numbers, and statistical values do not always benefit from semantic similarity. Sometimes exact words matter more than meaning.That was the first moment I started realizing retrieval was a much bigger problem than I initially thought.Figure 2: Dense Retrieval can miss exact identifiers even when information exists.Then I revisited something I had underestimatedThat was when I went back and looked at BM25. When I first learned about embeddings and vector search, I quietly assumed older retrieval methods had become less relevant. If dense retrieval could understand meaning, why would keyword search still matter?Turns out I was underestimating it.BM25 was strong exactly where dense retrieval struggled. If a document contained an exact phrase, identifier, trial name, model number, or specific term, BM25 had no problem finding it. It did not care about semantic meaning. It simply asked, do these words exist, and how important are they?Of course, BM25 had the opposite problem too. It understood words, but not meaning. Two sentences could express nearly the same idea while sharing very few keywords, and BM25 would often miss that connection.That was when the idea started becoming obvious. Maybe the question was never, "Which retrieval method is better?" Maybe the better question was, "Why was I forcing myself to choose only one?"The solution felt obvious once I stopped treating it as a competitionAt some point, I realized I had been asking the wrong question. I kept thinking in terms of dense retrieval vs BM25, as if one had to replace the other. But the more I looked at their strengths and weaknesses, the less that framing made sense.Dense retrieval understood meaning. BM25 understood exact terms. They were solving different problems.The solution ended up being surprisingly simple: run both retrieval methods independently, collect their results, and combine them. Instead of forcing one system to do everything, let each do what it is naturally good at.That idea became HybridRAG.Conceptually, the flow became straightforward. A query enters the system, dense retrieval searches for semantic similarity, and BM25 searches for exact keyword matches, and both outputs are combined before selecting the final context sent to the LLM.That sounded simple enough. Until I ran into the next problem.How exactly do you combine the results?Figure 3: HybridRAG combines dense retrieval and BM25.Then I ran into a problem I didn’t expectCombining two retrieval systems sounded simple in theory. Dense retrieval returns a list of results. BM25 returns another list. My first instinct was straightforward: take both scores and average them.That idea lasted about five minutes.The problem was that the scores were measuring completely different things. Dense retrieval uses cosine similarity, usually values between 0 and 1. BM25 scores work differently and can vary widely depending on the query and document frequencies. Averaging them looked mathematically clean, but the numbers themselves lived in different worlds.It felt a bit like averaging exam percentages with shoe sizes. Both are numbers, but combining them does not suddenly make them comparable.That was when I came across Reciprocal Rank Fusion, or RRF. Instead of combining raw scores, it combines rankings. If a document consistently appears near the top across multiple retrieval systems, it gets rewarded regardless of how each model calculates similarity internally.And honestly, that small change completely shifted how I thought about retrieval.Figure 4: Reciprocal Rank Fusion (RRF) combines rankings instead of raw scores.At that point, retrieval stopped feeling like preprocessingUp until then, I had been treating retrieval as a step before the actual intelligence happened. Retrieve some documents, send them to the model, and let the LLM do the important work.Building HybridRAG completely changed that perspective.The quality of the response depended heavily on what entered the context window. If retrieval surfaced weak examples, missed exact identifiers, or brought irrelevant information, the model could only reason over what it was given. Even a powerful LLM cannot generate insight from information it never received.That shifted the way I started thinking about AI systems. Models can be swapped. Today it is GPT, tomorrow Claude, and next month something else. But retrieval decisions tend to compound. Embedding choices, chunking strategy, ranking, fusion, and evaluation quietly shape whether a system feels intelligent or unreliable.That was probably the biggest lesson I took away from this project: retrieval was not a preprocessing step. Retrieval was the product.Final thoughtsI walked into this project thinking the hard part would be selecting the right model. I walked away realizing that getting the right information into the model mattered far more.If you are building RAG systems, I would spend less time tweaking prompts and more time understanding retrieval. You might discover what I did.The bottleneck is probably not where you think it is.Further ReadingWhile building HybridRAG, I ended up spending a lot of time reading papers behind the systems I was using. If you’re interested in retrieval systems or building RAG pipelines, these were especially useful.BGE / Modern Embedding Models — https://arxiv.org/pdf/2402.03216BM25 — https://www.microsoft.com/en-us/research/wp-content/uploads/2016/02/okapi_trec3.pdfReciprocal Rank Fusion (RRF) — https://lill.is/pubs/Lillis2020.pdfHybridRAG — https://aclanthology.org/2026.propor-1.1.pdfWhy HybridRAG Changed The Way I Think About AI Systems was originally published in Towards AI on Medium, where people are continuing the conversation by highlighting and responding to this story.