AJ Learning Hub logoAJ Learning Hub

RAG

also Retrieval-Augmented Generation

A technique that retrieves relevant documents from a knowledge source and inserts them into the prompt so the model answers from that grounded context.

Analogy

Like an open-book exam: instead of relying on memory, the model looks up the relevant pages before answering.

Why it matters

RAG lets Claude answer accurately from your own knowledge base or docs without retraining the model.

In practice

Pulling the three most relevant help-desk articles into the prompt before the model drafts a support reply.

Related terms:EmbeddingVector DatabaseSemantic SearchGrounding