Retrieval-augmented generation (RAG) searches a knowledge store, adds selected evidence to the prompt, and then generates an answer. It can use updated material without retraining model weights.
The demo follows question, retrieval, context insertion, and answer. Bad retrieval or insufficient evidence can still produce a bad answer, so source attribution and checks matter.
When to use
Use it for answers grounded in frequently updated or private documents.