Sefism is free for learners. We are here to help you grow, one step at a time.Join for free
Sefism.

Cheat sheet · Specialise

RAG cheat sheet

Opens with credits

A quick-revision book on retrieval augmented generation: how documents become chunks and vectors, how to retrieve and rerank the right ones, how to prompt for grounded answers and how to measure and fix a pipeline that gets things wrong. Vector stores, LangChain and raw LLM API calls have their own sheets; this one is about the pipeline.

Curated by Tauseef Fayyaz8 chapters54 concepts61 glossary terms

Chapters

8 chapters · 54 concepts

  1. 1RAG basicsWhat retrieval augmented generation is, the two halves of every pipeline and when it is the right tool.6 concepts
  2. 2Loading and chunkingTurning messy documents into clean, well-sized chunks with the metadata you will need later for filters and citations.8 concepts
  3. Embeddings and the indexTurning chunks into vectors and storing them. The Vector databases cheat sheet covers index types and stores in depth; this is what RAG needs from them.6 conceptsOpens with credits
  4. RetrievalFinding the right chunks: top k, keyword search, hybrid search, filters and rewriting the question before searching.8 conceptsOpens with credits
  5. Reranking and context buildingChoosing the best few chunks from the candidates and assembling them into a context the model can use.6 conceptsOpens with credits
  6. Grounded generationPrompting the model to answer only from the retrieved text, cite it and admit when the answer is not there.6 conceptsOpens with credits
  7. Evaluating RAGMeasuring retrieval and generation separately, so you know which half to fix.7 conceptsOpens with credits
  8. Failure modes and advanced patternsWhy RAG answers go wrong in production, and the patterns people reach for once the basics work.7 conceptsOpens with credits
  9. 9Glossary, A to ZEvery concept in the sheet and the smaller terms it uses, in one list.61 terms

About this sheet

Retrieval augmented generation end to end: chunking, embeddings, hybrid retrieval, reranking, grounded prompts, evaluation and failure modes.

Picked from the other libraries by shared topics.

Work with me

Stuck on something specific?

Writing only gets you so far. If you want an answer to your situation rather than the general case, book a session and we will work through it together. Sessions are free for approved Sefism members, and a few slots open each week.

  • 1:1 Mentorship
  • Fresh Graduate Mentorship
  • Career Guidance

Brand deals, promos and partnerships: tauseeffayyaz@gmail.com