I've been learning how to make RAG systems work well in production, so I made these simple notes (with diagrams) to help me understand it π
In simple words: first measure how good your RAG system is, then improve it, then make it faster and cheaper.
It works in 3 parts:
1οΈβ£ Measure: check retrieval and answers separately (RAG triad, Recall@k, faithfulness)
2οΈβ£ Improve: better chunks, hybrid search, reranking and grounded answers
3οΈβ£ Optimize: caching, fewer tokens and smarter model routing
π‘ Golden tip (last image): how to cut token cost by ~98% when many people query one long company policy.
π οΈ I've also built a hands-on project for freshers and beginners: run it, chat with the bot, compare answers with the policy files, and see the source behind every answer.
π GitHub:
https://lnkd.in/dunB937S
π These are 4 of the 9 slides. The full deck is on my LinkedIn.
I'm still learning, so I'd love tips from anyone who has run RAG in production. What helped you most?