10 RAG Approaches That Actually Work in Production: From Basic to GraphRAG
A developer on Habr has compiled a practical list of RAG approaches that are actually used in production. Hybrid search (dense + BM25) consistently adds 15–30% to accuracy, and adding a reranker brings another 10–15%. For complex analytical tasks, there is Microsoft's GraphRAG; for adaptive retrieval, Self-RAG. The main takeaway: for most B2B products, hybrid search plus multi-query is enough. Reach for the heavier techniques only when the simpler ones fall short.
AI-processed from Habr AI; edited by Hamidun News
A developer on Habr has compiled a practical list of RAG approaches that are actually used in production, based on personal experience and an analysis of other teams' cases over the past year of rapid growth in the LLM stack.
Where everyone starts
Naive RAG is the starting point for most projects. The scheme is simple: documents are split into chunks and indexed via embeddings. At query time, the nearest chunks by cosine distance are retrieved and passed to the LLM as context. It works on small knowledge bases with simple questions and homogeneous documents.
Problems begin at scale: long documents fit poorly into fixed-size chunks, complex questions require several fragments at once, and users' phrasing often does not match the style of the documents. This is where more advanced approaches come in.
Hybrid search and reranking
Hybrid search is the first upgrade that almost always pays off. Combining dense vectors (semantic search) with BM25 (keyword search) consistently adds 15–30% to accuracy compared with embedding-only search. Dense vectors capture semantic similarity, while sparse ones catch exact matches on terms, abbreviations and names.
Adding a cross-encoder reranker on top of the top 20 results lifts quality by another 10–15%. A reranker is a heavier model, but it only works on the final set of candidates, so latency stays acceptable for production.
Query-level techniques
Some RAG problems are better solved before retrieval, by rewriting or expanding the query.
- HyDE: the LLM generates a hypothetical answer document, and its vector is used for search. It helps especially when the style of the question and the style of the documents differ sharply.
- Multi-query: 3–5 paraphrases are generated from a single question, and search runs in parallel across all of them. This reduces dependence on the user's exact wording.
- Step-back prompting: before searching, the LLM generalizes the query to a higher level of abstraction. Useful when a specific question is too niche for good retrieval.
- Parent Document Retriever: small chunks are indexed (high precision), but the whole parent document is passed into the context. A good balance between precision and coverage.
- Contextual compression: the LLM extracts only the relevant part from a retrieved chunk. It saves tokens and reduces noise in the context.
Heavy artillery
When simple techniques are not enough, architecturally more complex approaches come into play.
RAPTOR builds a hierarchical tree of documents: it clusters chunks, summarizes each cluster, then clusters the summaries again. At query time, search runs at the appropriate level of abstraction. It works well on long documents such as technical manuals, financial reports and books with varying degrees of detail.
GraphRAG from Microsoft builds a knowledge graph: it extracts entities and relationships from text and creates community summaries for different thematic clusters. It clearly beats standard RAG on analytical and comparative questions ("how is X related to Y", "what has changed since A") and on tasks that require synthesis across the whole corpus.
Self-RAG and Corrective RAG switch the system into an agentic mode: the model decides on its own whether retrieval is needed, evaluates the relevance of what it finds and, if necessary, reformulates the query. This adds latency and complexity, but noticeably improves quality on multi-step and ambiguous tasks.
What this means
The practical path: start with hybrid search plus reranking, which covers most problems at minimal cost. Then add multi-query or HyDE for diverse queries. Bring in GraphRAG and Self-RAG only when simpler techniques fall short, because they require significant development and maintenance effort. For most B2B products, the first two steps are enough.
- Dec 2, 2026Ai2 Releases MolmoWeb2 Web Agents: 27B Model Solves 75.3% of Tasks
- Dec 2, 2026T-Decision-1 9B scores 71.6 points and beats a model six times its size
- Dec 2, 2026JetBrains Releases Air App: Control AI Agents in Your IDE From a Smartphone
- Dec 2, 2026JetBrains Offers Voluntary Departures as IDE Search Raised Agent Task Costs by 6–7%
Key Questions Answered
Where everyone starts?
Naive RAG is the starting point for most projects. The scheme is simple: documents are split into chunks and indexed via embeddings. At query time, the nearest chunks by cosine distance are retrieved and passed to the LLM as context. It works on small knowledge bases with simple questions and homogeneous documents. Problems begin at scale: long documents fit poorly into fixed-size chunks, complex questions require several fragments at once, and users' phrasing often does not match the style of the documents.
What are the key details on Hybrid search and reranking?
Hybrid search is the first upgrade that almost always pays off. Combining dense vectors (semantic search) with BM25 (keyword search) consistently adds 15–30% to accuracy compared with embedding-only search. Dense vectors capture semantic similarity, while sparse ones catch exact matches on terms, abbreviations and names. Adding a cross-encoder reranker on top of the top 20 results lifts quality by another 10–15%.
What are the key details on Query-level techniques?
Some RAG problems are better solved before retrieval, by rewriting or expanding the query. HyDE: the LLM generates a hypothetical answer document, and its vector is used for search. It helps especially when the style of the question and the style of the documents differ sharply. Multi-query: 3–5 paraphrases are generated from a single question, and search runs in parallel across all of them. This reduces dependence on the user's exact wording.
Ship AI Faster with Founders, Engineers & Weekly Architecture Reviews
Inside Vibe Club (hamidun.com/club) — weekly live masterminds with Zhemal Khamidun, Tech Radar, full LMS access, and 370+ production Claude Code skills.
Daily 60-sec AI Voice Brief + Weekly Production AI Agent Playbook
Listen to a 60-second AI news brief every morning and get a weekly hands-on playbook for shipping AI agents to production — tools, MCP servers and patterns that work. Curated by Jemal Hamidun, Head of AI at Alpina Digital.
