The Pulse
LangChain deploys open model fine-tuned on its agent's traces
LangChain replaced the main model in its documentation assistant with a fine-tuned version of GLM 5.3 Flash. The company says the model scored close to GPT-6.1 Sol on its benchmark at 83% lower cost.

LangChain has replaced the main model in its documentation assistant with a version of the open GLM 5.3 Flash model fine-tuned on the agent's own production traces. In a December 2 post, the company said the model performed close to GPT-6.1 Sol on its benchmark while costing 83% less.
The agent, Chat LangChain, answers questions about the LangChain stack using documentation and a public support knowledge base. The fine-tuned model replaces Gemini 3.5 Flash Lite as its main model.
Testing against user questions
On a held-out benchmark of 128 real user questions, the fine-tuned model scored 0.735, compared with 0.679 for the base model and 0.748 for GPT-6.1 Sol, according to LangChain. The company also tested the fine-tune with real users alongside the base GLM model and the Gemini model it replaced.
To build the benchmark, an internal agent under development grouped Chat LangChain production traces into usage patterns and created tasks from them. Automated graders checked answers against an answer key, and the tasks were divided into training and held-out sets.
Answers received one point if correct and complete, zero if they fell short, and minus 0.5 if confidently wrong. Each model's score was averaged over eight attempts per question.
The held-out questions resemble production traffic, but the company made the set harder on purpose: it selected 78 of the 128 tasks because the base model had struggled with them. It also created a mocked environment matching the production configuration, so that changes to tools and data would not affect comparisons.
Choosing a training method
LangChain compared three training methods. The deployed version used answer-only direct preference optimization, or DPO, which trains on final answers rather than directly training the research steps that produced them.
For that method, the company drew candidate answers from the base model and used some hand annotation and a council of judge models to select the better answer in each pair. It says the method produced the largest score gain, 0.056 over the base model. It increased tool calls by 33% and turns by 25%, but added far less research than the other methods.
Another approach used trajectories from the larger GLM 5.3 model as a teacher. LangChain reports that this raised the score by 0.052 but increased median latency in its offline setup from 17 seconds to 75 seconds.
A third method, GRPO, raised the score by 0.037 and cost more to train than the teacher-based supervised fine-tuning, the company says. Attempts to reduce its tool use with hard caps and strong efficiency weights pushed the score below the base model's.
Production results
LangChain split production traffic evenly among the fine-tune, base GLM 5.3 Flash and Gemini 3.5 Flash Lite. The fine-tune led each day on groundedness, a measure of whether answers were supported by retrieved documentation, the company says.
Users asked follow-up questions in 36% of threads with the fine-tune, compared with 41% with Gemini. The company says the fine-tune answers about twice as slowly as Gemini but costs $12 per 1,000 questions to run, compared with $20.
In the first days of the production test, 18.7% of the fine-tune's runs took more than 30 seconds. After an instruction to keep answers concise was added, that share fell to 5.9% over the next six days, close to the base model's 5.4%, according to LangChain.
The company plans to continue feeding new production traces and online evaluation results into the model's training data.
LangChain Inc. on AI.info
- Company: LangChain Inc. — LangChain provides the open agent engineering platform and open source frameworks teams need to build, control, and own their agent intelligence.
Sources
- Original source · Blog post LangChain “Fine-tuning an open model on our docs agent's traces” langchain.com
Companies in this story
In the tracker
Related stories
- Ai2 releases MolmoWeb 2 agents with weights and training data
- Microsoft Research team says leaner agent harness wins in tests
- Polylane says its AI agent led frontier models on SRE benchmark
- Automattic acquires Miles WordPress design agent
- Akamai plans AI agent security controls for first quarter of 2027