RAG Engineer
Master retrieval augmentation end to end, from a basic pipeline to graph and agentic RAG.
For Engineers building retrieval-augmented systems · 15 articles · ~22h · 4 stages
This track assumes you already know
- 1
Why and how
- Why RAG ExistsA model cannot know your documents and will confidently invent answers about them. RAG is the fix, and the problem is worth understanding before the solution.RAG
- How RAG Works, Step by StepTwo phases: index your documents once, then retrieve and answer per question. Every stage has a failure mode worth knowing before you build.RAG
- What Is a Vector Database?Storage built around one question: which vectors are closest to this one? Why that needs different machinery than a normal database.RAG
- How Similarity Search Actually WorksCosine similarity, dot products, and why 'nearest' is a weaker signal in high dimensions than it sounds.RAG
- 2
Retrieval quality
- How to Split Documents for RAGChunk boundaries decide what can be retrieved at all. Too small loses context, too large dilutes relevance, and structure beats character counts.RAG
- Why You Need a RerankerVector search narrows millions to dozens quickly and ranks the final few badly. A second pass that reads query and document together fixes it.RAG
- Hybrid SearchVector search misses exact terms; keyword search misses meaning. Combining them is the highest-value upgrade to a basic retrieval pipeline.Advanced RAG
- Contextual RetrievalA chunk torn from its document loses the context that made it meaningful. Adding that context back at index time is unusually effective.Advanced RAG
- Query Rewriting and ExpansionUsers ask badly. Rewriting the query before retrieval fixes more failures than tuning the retriever.Advanced RAG
- 3
Advanced patterns
- RAG or Fine-Tuning?Retrieval supplies knowledge; fine-tuning shapes behavior. Most people asking this question want retrieval, and a surprising number want neither.RAG
- Agentic RAGLet the model decide what to search for, read results, and search again. Multi-hop retrieval without building a graph.Advanced RAG
- GraphRAGBuild a knowledge graph from your documents, then traverse it. Answers questions that span many sources, which vector retrieval cannot.Advanced RAG
- RAG over Images and TablesCharts, diagrams, and tables carry the answers text extraction throws away. Three strategies for retrieving over them.Advanced RAG
- 4
Measure it
- Evaluating RAGMeasure retrieval and generation separately. Most RAG failures are retrieval failures, and a single quality score hides which half is broken.Advanced RAG
- Retrieval and Ranking MetricsSearch and RAG return a ranked list, not a single answer. Recall@k, precision@k, MRR, and nDCG each score a different thing about that list.Evaluation