<AiGrama/>The AI Village — A Place to Connect, Collaborate, and EvolveHappy New YearHappy Fourth of JulyHappy HalloweenHappy ThanksgivingMerry ChristmasHappy New YearHappy Fourth of JulyHappy HalloweenHappy ThanksgivingMerry ChristmasHappy New YearHappy Fourth of JulyHappy HalloweenHappy ThanksgivingMerry Christmas
Theme
Size
Font
Glossary · AI/ML
RAG
Retrieval-Augmented Generation
Also known as: retrieval augmented generation
A pattern where the app first retrieves relevant documents, then passes them to the LLM with the question so the answer is grounded in your data.
The basic pipeline
flowchart TD Q["Question"] --> E["Embed question"] E --> S["Search vector DB"] S --> C["Top-k chunks"] C --> P["Prompt = question + chunks"] P --> L["LLM"] L --> A["Grounded answer"]
Think of RAG like an open-book exam. Instead of guessing from memory, the AI looks at a library of books (your data) to find the right facts before it answers you.