Compare Architectures

Side-by-side: use case, requirements, latency, cost, strengths, weaknesses, failure modes, example — and when to choose each.

RAGFine-tuning
Use caseInjecting facts the model does not know, especially changing onesChanging style, format, or behavior; teaching a narrow skill
RequirementsIngestion pipeline, index, retrieval, groundingLabeled dataset (hundreds to thousands of examples), training run, eval set
LatencyAdds a retrieval step (tens of ms) plus longer promptsNone at inference; can be lower with a smaller tuned model
CostPer-query: retrieval + extra input tokensUpfront training plus retraining on every data change
StrengthsFresh data, citations, per-tenant isolation, no retrainingConsistent tone / format; can shrink prompts
WeaknessesQuality bounded by retrieval; long promptsDoes not reliably memorize facts; goes stale; hard to audit
Failure modesRelevant-looking but wrong chunks; hallucinated citationsOverfitting, catastrophic forgetting, leaked training data
ExampleAnswering questions over an internal policy wikiProducing radiology-report phrasing in a fixed house style
Choose this whenChoose RAG for knowledge: anything that changes, needs citing, or differs by tenant.Choose fine-tuning for behavior: a consistent style or skill that prompting cannot reach, with an eval set ready.