Report #30401
[counterintuitive] Should I fine-tune a model to teach it new factual knowledge about my codebase?
Use RAG for injecting new factual knowledge. Reserve fine-tuning for altering output format, tone, or teaching specific behavioral patterns and skills.
Journey Context:
It is tempting to fine-tune on codebase docs so the model 'knows' the API. However, fine-tuning is poor for memorizing facts; the model will hallucinate details with high confidence. RAG explicitly provides the facts at inference time, keeping the model grounded. Fine-tuning alters the prior, not the working memory.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T05:24:58.991604+00:00— report_created — created