RAG Decision Cheat Sheet

Which technique to use for which problem, on one page.

Last Updated: 27, Nov 2026

Search Tutorials

--Ads--

Appendix · Lesson 4 of 4 · Beginner

RAG Decision Cheat Sheet

Which technique to use for which problem, on one page.

This page condenses the whole tutorial into quick decisions: a recommended default stack, which technique to try for which symptom, and what to use for different kinds of data. Use it as a starting point, then confirm each choice with your evaluation set.

A strong default stack

StageDefaultLesson
ParsingLayout-aware parser for PDFs; keep tables as Markdown; page numbers in metadataParsers
ChunkingStructure-aware where possible, else recursive; 200–500 tokens; 10–20% overlap; heading path in each chunkChunking
EmbeddingsA strong retrieval model chosen with a test on your data; normalised vectorsEmbeddings
StorageThe database you already run if it supports vectors; otherwise a dedicated vector databaseVector DBs
RetrievalHybrid (BM25 + dense) with RRF, 20–50 candidates, metadata and permission filtersHybrid search
Post-retrievalCross-encoder reranker to 3–8 chunks; deduplicateReranking
GenerationGrounded prompt with sources first, question last, citations, explicit "not found"; prompt caching; streamingPrompts
EvaluationGolden set with evidence; hit rate, MRR, judged correctness and faithfulness; regression tests in CIEvaluation
OperationsIncremental sync, tracing, feedback loop, cost and latency dashboardsProduction

Symptom → what to try

SymptomTry firstThen
Exact terms (codes, names) not foundHybrid searchIdentifier-aware tokenisation, glossary expansion
Casual or vague questions failQuery rewritingMulti-query, HyDE
Follow-up questions failQuery condensingConversational RAG with history management
Right document, wrong chunkRerankingContextual retrieval, smaller chunks
Answers cut off or missing contextParent-child chunkingLarger chunks, sentence windows
Chunks from the wrong product, year or teamContextual headers + metadata filtersSelf-query retrieval
Repetitive top resultsDeduplication at indexingMMR
Multi-part or comparison questionsQuery decompositionAgentic RAG
Facts linked across documentsIterative multi-hop retrievalGraphRAG
"Summarise everything about X" questionsLong context with retrieved documentsRAPTOR, GraphRAG global search
Numbers and totals wrongText-to-SQL or code for calculationsTable-aware RAG
Hallucinated or unsupported claimsStronger grounding prompt + citationsGroundedness checks, self-correction
Outdated answersIncremental sync, archive old versionsRecency ranking, conflict rules
Too slowStreaming, lower effort, fewer chunksParallel steps, caching, routing
Too expensivePrompt caching, fewer chunks, answer cachesBatch API offline, routing

Data type → approach

DataApproach
Policies, manuals, documentationStructure-aware chunks with heading paths, hybrid search, reranking
FAQs and knowledge-base articlesOne Q&A or article section per chunk; consider indexing the questions
Scanned or visually rich PDFsVision LLM transcription or ColPali-style page retrieval
Tables and spreadsheetsTables as Markdown with summaries; SQL or pandas for calculations
DatabasesText-to-SQL with read-only access
Source codeFunction-level chunks, identifier-aware hybrid search, agentic file reading
Meetings, calls, videosTimestamped transcripts, time-window chunks, timestamp citations
Emails and ticketsOne message or thread per chunk, PII redaction, injection scanning
Relationship-heavy recordsGraphRAG or a graph database alongside vector search

Scale → infrastructure

ScaleSuggestion
A few hundred pages, same for all usersConsider long context with prompt caching before building retrieval
Up to ~100k chunksExact search (NumPy or FAISS flat) or any embedded database
100k to tens of millions of chunksHNSW in pgvector, Qdrant, Weaviate, Milvus, Elasticsearch or a managed service
Hundreds of millions or moreQuantization, disk-based indexes, sharding, dedicated vector infrastructure

Questions to ask before adding a technique

  1. Which failures in my evaluation set does it target?
  2. How much latency and cost does it add per question?
  3. Can I route only the questions that need it?
  4. Did the evaluation confirm the gain, beyond noise?
The one rule

Measure, then change one thing, then measure again. Every technique in this tutorial is a tool for a specific failure, not an upgrade to apply everywhere.