Machine Learning

Retrieval-Augmented Fine-Tuning

Combining fine-tuning with retrieval capabilities, training a model to effectively use retrieved context. RAFT teaches the model when and how to leverage external knowledge.

Why It Matters

RAFT produces models that are better at using retrieved documents than either RAG or fine-tuning alone — the best of both approaches.

Example

Fine-tuning a model on examples that include both relevant and irrelevant retrieved documents, teaching it to identify and use the right context while ignoring distractors.

Think of it like...

Like training a researcher not just to find papers but to critically evaluate which ones are relevant and how to synthesize useful information from them.

Related Terms