AI Hints
Home›RAG Tutorial›Cheat Sheets and Mistakes
RAG · Lesson 116 of 120

Cheat Sheet: Better Retrieval

The tricks.

⏱ 2 min read▶ Video at 1:53:05🎓 Free
Watch this lesson in the RAG courseWatch on YouTube ↗Full RAG course

When retrieval fails, this is the sheet to reach for. Each symptom has a usual fix.

Cheat Sheet: Better Retrieval
From the video: Cheat Sheet: Better Retrieval
  • Find the symptom
  • Apply the fix
  • Measure again

Symptom and fix

Missed codes and names call for hybrid search. Odd wording calls for multi query or HyDE. Follow ups call for condensing. Lone headings call for chunk headers. And good chunks ranked low call for a reranker.

SymptomFix
Codes and names missedhybrid search
Odd wordingmulti-query, HyDE
Follow-ups lostcondense the question
Lone headingschunk headers
Right chunk ranked lowreranker

More fixes

Old versions call for metadata filters. Repeated chunks call for MMR. Questions with two parts call for decomposition. And when only part of a page is found, use parent documents.

SymptomFix
Old versionsmetadata filters
Repeated chunksMMR
Two-part questionsdecomposition
Not enough contextparent documents

Summary

Match the symptom to the fix, and measure every change. Next, common mistakes.

Key takeaways
  • Symptom
  • Fix
  • Measure
Next up: Common Mistakes — and fixes