Free · Daily brief + weekly playbookDaily 60-sec AI Voice Brief + Weekly Production AI Agent PlaybookGet the brief →
ReleaseInsight · On RadarHabr AI→ original

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
10 RAG Approaches That Actually Work in Production: From Basic to GraphRAG
Source: Habr AI. Collage: Hamidun News.
Listen to article
Article Fact Sheet & Key Figures
ParameterDetails
Primary sourceHabr AI ↗
Editor-in-Chief
Contextual compressionthe LLM extracts only the relevant part from a retrieved chunk. It saves tokens and reduces noise in the context.

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.

Story

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.

ZK
Zhemal Khamidun — Head of AI at Alpina Digital · MIPT (academic supervisor of the Tech Entrepreneurship department). Building AI products since 2019. Hamidun News is a pet project that grew into a production aggregator with 6,000+ readers.
✦ Private AI Builders Community · Vibe Club

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.

Join Vibe Club →Free intensive — waitlist
Jemal Hamidun

Editor-in-chief · Cite this analysis

Jemal Hamidun

Head of AI at Alpina Digital · Academic Supervisor of the Tech Entrepreneurship Department at MIPT

Head of AI & CPO of AlpinaGPT at Alpina Digital, Academic Lead of Tech Entrepreneurship at MIPT. Founder of Hamidun News and Vibe Academy.

Ready-to-paste citation for journalists, blogs and Telegram channels

Source: Hamidun News — 10 RAG Approaches That Actually Work in Production: From Basic to GraphRAG https://news.hamidun.com/en/news/7573/10-rag-approaches-that-actually-work-in-production-from-basi

What do you think?
Loading comments…