A developer wants an LLM application to answer questions about an internal knowledge base that changes daily. Rather than retraining the model, they plan to retrieve relevant passages at query time and place them into the prompt. Which approach are they implementing?
Retrieval-augmented generation separates knowledge from model weights: documents are embedded into a vector index, the query retrieves the closest passages, and those passages are inserted into the prompt. Because the index can be refreshed whenever documents change, answers stay current without any retraining or fine-tuning cycle.
Why this answer
Answering over a frequently changing corpus without retraining is the defining use case for retrieval-augmented generation: an embedding index is refreshed as documents change, and retrieved passages are injected into the prompt at query time. Fine-tuning variants and few-shot prompting all fix knowledge at build time or prompt-authoring time.
Exam trap
The trap here is reading "internal knowledge base" and jumping to fine-tuning, when the daily-change requirement rules out any approach that stores knowledge in model weights.