LangChain's write-up: fine-tuning an open model on docs-agent production traces

adnan_hashmi · x · 2026-12-03

LangChain Labs published a write-up on turning Chat LangChain's production traces into post-training data, fine-tuning GLM 5.3 Flash, and deploying it as the docs agent's main model.

Key takeaways:

Results: on a benchmark of 128 real user questions (1 for correct and complete, 0 if short, -0.5 for confidently wrong, averaged over 8 attempts), the fine-tune scores 0.735 vs 0.679 base, close to GPT-6.1 Sol's 0.748, at 83% lower cost. In production alongside base GLM 5.3 Flash and the replaced Gemini 3.5 Flash Lite, it gave the most doc-grounded answers with a 36% follow-up rate (vs 41% for Gemini), answering about half as fast but costing $12 per 1,000 questions vs $20.

Related event: LangChain Fine-tunes GLM 5.3 Flash on Production Traces, Cutting Costs 83%(5 posts)→

Original post →

More from coding & agent

coding & agent channel →