AI

RAG (Retrieval-Augmented Generation)

Retrieval-Augmented Generation (RAG) is a pattern where the system searches a document store, then asks an LLM to answer using the retrieved chunks — ideally with citations.

In depth

RAG exists because models do not know your PDFs, tickets, or policies. Instead of fine-tuning, you embed chunks, retrieve the nearest ones, and put them in the prompt.

MVP pieces: ingest, chunk, embed, retrieve with tenant filters, generate, cite, delete.

RAG is the wrong v1 if users will not upload documents or the answer is a 10-row FAQ.

Security: never retrieve another tenant’s chunks. That is the #1 production bug in AI apps.

Real example

A founder uploads 40 policy PDFs. Support asks “what is the refund window?” The system retrieves three chunks and answers with page citations.

Tools & calculators

Related terms

Build your product

From definition to shipped MVP in 21 days.

Ready to build your product?

Fixed price. 21-day delivery. Senior team.

Get a free scoping call →

Browse the glossary