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

Common Mistakes

And fixes.

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

Most RAG projects make the same mistakes. Here are the ones to avoid, and what to do instead.

Common Mistakes
From the video: Common Mistakes
  • Same mistakes
  • Avoid them
  • Do this instead

Building mistakes

Don't blame the model first. Most problems are retrieval. Don't skip evaluation, or every change is a guess. And don't mix embedding models in one index.

Mistake

  • Blame the modelSkip evaluationMix embedding models

Instead

  • Check retrieval firstBuild a test setOne model per index

Production mistakes

Don't index old versions and personal data. Don't filter permissions after answering. And don't trust retrieved text as instructions.

Mistake

  • Index everythingFilter after answeringTrust document text

Instead

  • Clean and redactFilter before searchTreat it as data

Summary

Check retrieval first, evaluate everything, and keep your index clean and safe. Next, choosing a vector database.

Key takeaways
  • Retrieval first
  • Evaluate
  • Clean index
Next up: Choosing a Vector Database — the options