AIToday
Large Language ModelsAI Coding AssistantsLangChain BlogPublished: Nov 10, 2026, 04:00 JST

LangChain details eval-driven development in new guide

Send on LINE
LangChain details eval-driven development in new guide

3 Key Points

  1. What happened

    LangChain published a guide to eval-driven development, a three-step loop — define what good looks like, write the eval before you build, then make your change and compare — and says it used the method on its most advanced agents.

  2. Why it matters

    By scoring agent runs against a consistent dataset before building, teams get objective evidence of whether a change improved the agent or broke existing behavior, rather than judging by hand as errors grow subtler.

Not sure about something? Ask the AI

Questions and answers are published on this page.

Summaries like this, every morning.

Context & Analysis

LangChain frames the problem in familiar terms: hand-testing a prompt works at first, but as an agent grows it becomes hard to tell whether the latest change helped or hurt. Its answer borrows the discipline of test-driven development, adapted because agents are non-deterministic — the same question can get a different answer, and more than one answer can be right.

The guide's worked example is an internal docs agent adding a create_ticket tool. After the tool is built, the average score rises, but a how-to question about VPN connection starts filing a ticket instead of searching the docs. The trace points to a tool description that is too broad; narrowing it to requests needing IT action gets every example passing.

LangChain also warns that a perfect score on a small dataset is not always the target, since tuning against the same examples can overfit. It suggests automation — fast checks on pull requests, slower LLM-judge evals nightly or before release — plus production-time scoring of live traces, annotation queues, and dashboards to catch regressions after shipping.

FAQ
What is eval-driven development?
It borrows from test-driven development: you write an eval before building, then build the agent toward it. Unlike traditional tests, evals score non-deterministic agent runs across a set of examples.
How does LangChain suggest avoiding overfitting to the eval?
Keep a held-out set of examples you do not look at while iterating. If the score rises on the examples you tune against but stays flat on the held-out set, you are likely overfitting.
What tools does LangChain mention for running agent evals?
LangSmith logs each run as an experiment and compares experiments side by side; it integrates with pytest and Vitest. Harbor is an open source framework for sandboxed agent tasks and is the harness behind Terminal-Bench.
LangChain BlogRead Original Article
Send on LINE

AI news that matters for your work, delivered every morning.

Pick your industry and the AI tools you use, and get news related to your work every day.

Free · 30 seconds with Google · unsubscribe anytimeWhat is AIToday? →

Ask AI

Ask AI anything about this article. The AI reads this article, earlier AIToday articles, and Wikipedia, and cites its sources. Q&As are published on this page for other readers too.

Questions and answers are published on this page.

Related Articles

Next articleScott Wiener wins Pelosi seat, vows AI risk action