RAG (retrieval-augmented generation)
RAG (retrieval-augmented generation) answers a question by first retrieving relevant passages from a document collection and then giving them to a language model with the question, so the answer can draw on and cite current or private sources without retraining the model. Its quality depends on both the retrieval and the model. In Valcairn, an evaluation run in Ollama mode sends each frozen question with its retrieved references to a local model and scores the answer on fact, rubric and citation, and an improvement cycle can test retrieval changes before any training.