Skip to content
AgenticAIWiki

Naive RAG: chunk, embed, retrieve, generate

Full screen
Indexing (ahead of time)Documentsreturns-policy.pdf

Swipe to change step

Step 1 of 8. A model has never seen your returns policy. Retrieval-augmented generation (RAG) hands it the right pages at question time. First, the documents get ready. Documents (returns-policy.pdf), highlighted.

In this chapter

  1. 21.1The four steps: chunk, embed, retrieve, generate4 min read
  2. 21.2Putting retrieved text in the prompt4 min read
  3. 21.3Where naive RAG breaks4 min read
  4. 21.4Document loaders and parsers7 min read
  5. 21.5Prompt augmentation: building the grounded prompt7 min read

Chapter check

Already know this? Score 80% or more and you can skip ahead. Each attempt draws 4 questions from 12.

Loading check…