Loading the retrieval index…
Chapter 6 of 7
Types of RAG
The tuned pipeline answers most questions. But some need two documents joined, some hide in tables or images, and some deserve “I don’t know”.
This chapter: Which kind of RAG fits which kind of problem, and what does each one cost?
About this chapter
You will learn
- Naive and advanced RAG: one search, tuned or not
- Agentic RAG: an agent that decides when to search again
- GraphRAG, self-correcting RAG and multimodal RAG, each on a question that needs it
Words you’ll meet
- Agent
- A model that can call tools, such as search, in a loop and decide when it has enough.
- Knowledge graph
- Entities (teams, products, people) joined by relations, each traced to the sentence it came from.
- Hop
- One step along a relation in the graph.
- Cross-encoder
- A model that reads the question and a chunk together to judge how well they match.
- Multimodal
- Working with more than plain text: tables, PDFs and images.
Step 1 of 18
Every pipeline so far searched once: naive RAG, then advanced. Here the retriever sends one 16-word chunk, so each type’s strengths show.