Digitorn
Digitorn
All terms
RAG & knowledge

RAG

A pattern where relevant documents are fetched from a knowledge base and pasted into context before the LLM answers.

also known as: retrieval-augmented generation
In depth

RAG bridges the gap between an LLM's training data and your specific knowledge. The idea: when the user asks a question, retrieve the most relevant chunks from a vector database, paste them into the prompt, then let the model answer with that context. RAG is the default architecture for support bots, internal Q&A agents, and anything that needs to answer from a corpus of documents you control.

Related concepts
Newsletter

Get the next post in your inbox.

Engineering notes from the Digitorn team. No marketing, no launch announcements, no "10 prompts that will change your life". Just the things we write that we'd want to read.

One-click unsubscribe. We never share your address. Powered by our own infrastructure, not a tracker.

More in RAG & knowledge

Chunking/glossary/chunkingEmbedding/glossary/embeddingHybrid search/glossary/hybrid-searchKnowledge base/glossary/knowledge-baseRe-ranking/glossary/rerankSemantic search/glossary/semantic-search