The agent lake: a data lake for your agents' traces

The agent lake: a data lake for your agents' traces
Billionsof agent runs per month send traces to LangSmith, according to LangChain
Hundreds of millionsof events per day from a single customer, Clay, according to LangChain
60M+production traces analyzed by LangSmith Engine, according to LangChain
96 / 90 / 87tuned Kimi K3, Kimi K3 and GPT-5.6 Sol on a subset of IssueBench, LangChain's internal benchmark
Your agents' data lake: what an agent lake is and why LangChain is betting on it
I also explain it in this video, on my Articulator EN channel. The figures in this post are frames from the video.

The trace: the record of what the agent didlink

Every time an agent works, it leaves a trail. The trace is the system of record of what it did: what the user wanted, which steps the agent took and what outcome it reached.

The simplest use is debugging: you look at the sequence of steps and find where things went wrong. But traces keep getting longer, because agents do more, and there are more of them, because agents are reaching production. Reviewing them by hand no longer scales.

A trace: user input, model call, tool call and output
A trace records every step of an agent run.

To use those traces to keep improving agents, LangChain says you need two things:

  • An efficient database, optimized for agent traces.
  • “Intelligent compute”: something able to query and process those traces.

They have been working on both for nearly two years. The first big piece they launched was SmithDB, a database built specifically for traces. Over the past few months they have focused on the second.

What an agent lake islink

Why do you need intelligence to analyze data? Because a trace is not a table of numbers: it is the trail of unstructured reasoning, written in natural language. To understand it, you need something that can reason too.

Here comes the analogy. Traditional data engineering has the data lake: a shared store of a company's data that different engines query and process. While building LangSmith, LangChain noticed its platform converging on the same shape: underneath, a shared corpus of agent data stored in SmithDB; on top, many different kinds of intelligent compute running over it.

An agent data lake: storage underneath and intelligent compute on top
Agent data underneath; the compute that analyzes it on top.

So why not use the usual data lakes, like Snowflake or Databricks? According to LangChain, neither their storage nor their compute is designed for agent traces, and more and more of what a company generates will be traces. So they name the new category:

Agent lake: a platform that combines storage optimized for agent traces with intelligent compute to query, analyze, and learn from them, powering continuous agent improvement.

What is inside the lakelink

Mostly traces. A trace records every step of a run: the user's input, each model call, each tool call and the final output. When a conversation has several turns, traces are grouped into threads so you can read the whole interaction at once.

How many? According to LangChain, LangSmith ingests traces from billions of agent runs per month, and some customers, like Clay, send hundreds of millions of events per day. That scale is why SmithDB exists; LangChain describes it as the industry's most performant database for real-time work on agent traces. That is their claim; the article does not publish a comparison.

Billions of runs per month flowing into the lake
The scale that, according to LangChain, calls for a dedicated trace database.

Outcomeslink

The lake does not hold only traces: it also holds outcomes. The trace shows you how the agent worked; the outcome shows you the impact of that work. The article suggests thinking about them in two ways.

What they map to. Some map one to one to a trace or a thread: a thumbs down on a response says that response, on that turn, was bad; a low score for a whole conversation says the entire thread was bad. Others map many to many. LangChain recently added a coding agents type to LangSmith, and one outcome they track there is merged pull requests: one thread may open many PRs that get merged, and many threads may contribute to a single PR.

Where they come from. There are four sources:

  • The user, directly: the thumbs down.
  • The system the agent works with: merged code, a snippet someone copied.
  • A model acting as a judge (LLM-as-a-judge), which generates an automatic proxy for the outcome.
  • The developers themselves, labeling threads by hand in annotation queues.
The four sources of outcomes: user, system, judge model and human labeling
Where the outcomes that sit next to the traces come from.

This is the article's key point: an agent lake holds not just traces, but outcomes too. They are how you judge the return on investment and tell whether your agents are working, or actually improving.

Finding high-signal traceslink

According to LangChain, teams running agents at scale need intelligent compute for two things: drilling down to find the traces worth looking at, and automating the agent improvement loop. Their diagram sums it up as a loop: agents in production send traces to the lake, tools analyze them, and improvements flow back to the agents.

The loop: agents in production, traces, agent lake, finding traces, automation and improvements
The improvement loop on top of the agent lake, redrawn from the article.

In the early days of LangSmith, developers went through traces one by one to check that the model followed instructions at every step. At scale, that is no longer possible. The starting point is online evaluators: they review traces as they arrive and flag the ones most useful for improving the agent. LangSmith ships tuned evaluator prompts in four groups:

  • Security: PII leakage and prompt injection.
  • Safety: toxicity, bias and fairness.
  • Quality: hallucination and correctness.
  • Conversation: user satisfaction and perceived errors (at thread level).
LangSmith online evaluators: security, safety, quality and conversation
The evaluators LangSmith ships with.

The article stresses not to use them blindly: make sure they capture signals that matter for your use case, and adjust them if they do not.

There is a hurdle: running an LLM judge on every production trace is expensive. In September, TypeSafe AI introduced decision models, a way to evaluate production traces at lower cost, and LangSmith now offers several for affordable trace classification. The article gives no cost or accuracy figures against an LLM judge; it says these cheap but intelligent evals are an area they are still actively researching.

Evaluators leave feedback on each trace, so finding the relevant ones is as easy as filtering on it. The catch: you have to decide up front what to measure. To search in the moment, without first creating an evaluator, there is AI Search: you search traces in natural language and a fast, cheap decision model runs over the results and adds a semantic filter. You can ask for “threads where the user got frustrated” or “traces that contain PII”, and combine it with normal structured queries.

AI Search: a natural language search over traces with a semantic filter
AI Search: searching traces in natural language.

Automating improvementlink

Finding high-signal traces is only one part of the loop. Someone still has to figure out what they mean and what to change in the agent. At its customers' volumes, LangChain says that has to be automated too, so it built agents of its own:

  • Insights shows how people actually use your agent. You ask about your traffic (“where is my agent failing?”), it groups recent traces into categories and keeps sorting new conversations into them as they arrive, so you can see which kinds of requests are trending the wrong way.
  • LangSmith Engine looks for concrete problems to fix. On a schedule it scans your traces and groups recurring failures into issues, using evaluator scores and user feedback to decide where to look. With a repository connected, it diagnoses the root cause and proposes a fix as a pull request; since v2 it can test that fix against an eval set before your team sees it. Merging is still your call. According to LangChain, Engine has analyzed more than 60 million production traces across its customers.
  • SmithTune is for when the agent keeps making the same mistakes after its harness has been tuned: the next step is often training a custom model, and the data is already in the lake. It is a CLI that fine-tunes a model on your best trajectories with Fireworks or Baseten, then compares it against the base model in LangSmith.
LangSmith Engine groups failures into issues and proposes a pull request with the fix
Engine: from recurring failures to a proposed fix.

LangChain tried SmithTune on Engine itself, fine-tuning Kimi K3 on trajectories from one of its agents. On a subset of IssueBench, its internal benchmark for detecting and grouping issues in traces, the tuned model scored 96, against 90 for base Kimi K3 and 87 for GPT-5.6 Sol. It is a result on their benchmark and their task, not a general model comparison, but it illustrates the point: the data to specialize a model was already in their traces.

IssueBench: tuned Kimi K3 96, Kimi K3 90, GPT-5.6 Sol 87
A subset of IssueBench, LangChain's internal benchmark.

All three can be used together with online evaluators, and according to the article they work better that way: the evaluator scores help them filter and cluster issues faster and more accurately.

The lake keeps filling uplink

The more work agents do for a company, the more data they generate, and that data can be used to improve the agents themselves. LangChain calls it owning your intelligence. For that, the article says, you need a lake that does two things: store all that agent data efficiently and put intelligent compute on top to keep the improvement loop spinning.

The lake keeps filling up and drives the agent improvement loop
More work, more traces, better agents.

In shortlink

The agent lake is LangChain's way of describing where LangSmith is heading: traces and outcomes in one store, and agents (Insights, Engine, SmithTune) that analyze it to improve other agents, backed by online evaluators and semantic search. It is a product post, so the numbers and the comparison with Snowflake or Databricks come from the company itself; still, the core idea stands on its own: if your agents work in production, their traces and outcomes are the material to improve them with.

In one sentence

The value is not in each trace, but in everything you can do on top of them.

What would you do with your agents' traces?

Sourceslink

Continue reading

Last posts -->

Have you seen these projects?

Gymnasia

Gymnasia Gymnasia
Expo
React Native
TypeScript
OpenAI
Anthropic

Fitness app with two agents that run entirely on the device, with no backend, so the user's data never leaves the phone. A BYOK conversational coach with local tools and a remote system prompt with offline fallback, plus a food estimator that pulls macronutrients out of a photo of the plate, with barcode scanning against OpenFoodFacts.

LangGraph Deep Researcher

LangGraph Deep Researcher LangGraph Deep Researcher
Python
LangGraph
FastAPI
React
TypeScript
Docker

Multi-agent research system built with LangGraph. A supervisor breaks your question down into topics and launches search sub-agents in parallel; each one compresses its findings before handing them to a writer agent that produces the final sourced markdown report. Live streaming over WebSockets, a configurable model per role and bring-your-own API keys that are never persisted server-side.

Tau

Tau Tau
Python
LangChain

Multi-agent tutoring system for secondary school students, with one agent per subject and course material written and validated by a team of teachers. It was used with real students at a private school in Spain and at a secondary school in Colombia.

View all projects -->
>_ Available for projects

Do you have an AI project?

Let's talk.

maximofn@gmail.com

Machine Learning and AI specialist. I develop solutions with generative AI, intelligent agents and custom models.

Do you want to watch any talk?

Last talks -->

Do you want to improve with these tips?

Last tips -->

Use this locally

Hugging Face spaces allow us to run models with very simple demos, but what if the demo breaks? Or if the user deletes it? That's why I've created docker containers with some interesting spaces, to be able to use them locally, whatever happens. In fact, if you click on any project view button, it may take you to a space that doesn't work.

Flow edit

Flow edit Flow edit

FLUX.1-RealismLora

FLUX.1-RealismLora FLUX.1-RealismLora
View all containers -->
>_ Available for projects

Do you have an AI project?

Let's talk.

maximofn@gmail.com

Machine Learning and AI specialist. I develop solutions with generative AI, intelligent agents and custom models.

Do you want to train your model with these datasets?

short-jokes-dataset

HuggingFace

Dataset with jokes in English

Use: Fine-tuning text generation models for humor

231K rows 2 columns 45 MB
View on HuggingFace →

opus100

HuggingFace

Dataset with translations from English to Spanish

Use: Training English-Spanish translation models

1M rows 2 columns 210 MB
View on HuggingFace →

netflix_titles

HuggingFace

Dataset with Netflix movies and series

Use: Netflix catalog analysis and recommendation systems

8.8K rows 12 columns 3.5 MB
View on HuggingFace →
View more datasets -->