Upgrading a naive RAG pipeline
Swipe to change step
Step 1 of 8. Here is the naive pipeline from chapter 21: fixed-size chunks, one vector search, and twenty loosely related chunks in the prompt. It works, but misses often. We will improve it one upgrade at a time. Documents. Index (fixed-size chunks). Question. Search (vectors, top 20). Prompt + model (20 loose chunks). Query rewriting. Hybrid BM25. Reranking. Contextual chunks. arrow from Documents to Index. arrow from Index to Search. arrow from Question to Search. arrow from Search to Prompt + model. a question moving along e-qs, then e-sl.
In this chapter
Chapter check
Already know this? Score 80% or more and you can skip ahead. Each attempt draws 4 questions from 12.
Loading check…