Loading slide
Loading contents...
One common addition is retrieval: looking up relevant material before generation. This can happen once in a simple question-answering pipeline. It does not require an agent loop.
The retriever fetches text and places it in the model's context. The frozen weights have not learned the new fact, but the model can use the supplied document for this answer.
That pattern has a clunky name,
The broad shape is question, search, selected documents, then generation. Implementations differ, and poor retrieval can supply irrelevant or misleading material.
Retrieval can improve accuracy for current or specialised questions. The model can still misread a source, ignore it, or make a claim the source does not support. Citations make that grounding easier to inspect.