Skip to content
AI News HubLIVE
Original source2 min read

The Agent Lake

Summary

LangChain introduces the concept of an 'agent lake' that combines storage optimized for agent traces with intelligent compute to enable continuous agent improvement at scale.

The Agent Lake
Report an error

The correction channel is not available yet. You can copy the article reference below for later.

Correction instructions
Read article

The trace of an agent is the system of record of what the agent did. It contains rich information about user intent, agent trajectory, and final outcome achieved. The simplest way to use these traces is as a debugging tool to visualize the sequence of steps an LLM application took and determine what went wrong. As agent traces become longer (as agents become more powerful) and more plentiful (as agents reach production), this manual debugging no longer scales.

In order to use this trace data to drive continuous improvement of agents at scale, you need two things:

An efficient database optimized for agent traces

“Intelligent compute” designed to query and process these traces

We’ve been working on both of these for nearly two years. The first big piece we launched was SmithDB, a purpose-built database for traces.

Over the past few months, we’ve been increasing our focus on “intelligent compute”. The reason you need “intelligent compute” is that these agent traces themselves are traces of unstructured reasoning, so intelligence is required to analyze them.

In traditional data engineering, a data lake stores a shared corpus of data that different engines can query and process. As we’ve built LangSmith, we’ve noticed our platform architecture converging to that as well: a shared corpus of agent data (stored in SmithDB) with many different forms of “intelligent compute” running over it.

Traditional data lakes like Snowflake and Databricks don’t have storage or “intelligent compute” optimized for this agent data. As more and more of the data a company generates becomes agent traces, we think it is important to develop this new type of platform.

We’re calling this new type of platform an agent lake.

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 in the agent lake

Most of what lands in the agent lake is traces. A trace records every step of an agent run, from the user’s input through each model call and tool call to the final output, and multi-turn conversations are grouped into threads so the whole interaction can be read together.

Our agent lake, LangSmith, ingests traces from billions of agent runs per month. Some customers, like Clay, send us hundreds of millions of events per day. This kind of scale is why we built SmithDB, which is the industry’s most performant database specifically for real-time workloads on top of agent trace data.

The agent lake also holds outcomes. Traces show you how the agent worked; outcomes show you the impact of that work. There are two dimensions on which to think about outcomes.

First is how outcomes map to threads and/or traces. Some outcomes map 1-to-1 to a thread or trace. For example, a thumbs down on a trace means that agent response for that turn was bad; a low score for an entire conversation means that whole thread was bad. Other outcomes may map many-to-many. For example, we recently launched a “coding agents” type in LangSmith. One of the outcomes we track there is merged pull requests (PRs). One thread may open many PRs that are merged, or one PR may be contributed to by many threads.

Second is how these outcomes are generated. Sometimes they may come from users directly (thumbs down). Other times they may come from observing the system the agent interacts with (merged PRs, copied code snippets). Yet another way is to automatically generate a proxy for these outcomes as feedback with LLM-as-a-judge. And finally, developers or builders of the system could label the threads themselves by hand in annotation queues.

Crucially, an agent lake contains not just traces, but also outcomes. That’s ultimately how you judge ROI and tell if your agents are working or improving.

Intelligent compute

Teams running agents at scale have two primary needs for “intelligent compute”:

drilling down to find traces of interest

intelligent automation of the agent improvement loop

‍

Key points and analysis

Article intelligence

EngineersIntermediate

Key points

  • Agent traces are the system of record for what an agent did, containing rich information about user intent, trajectory, and outcomes.
  • LangSmith has built SmithDB, a purpose-built database for agent traces, ingesting billions of runs per month.
  • The agent lake stores not just traces but also outcomes, which are crucial for judging ROI and agent improvement.
  • Intelligent compute addresses two needs: drilling down to find traces of interest and automating the agent improvement loop.

Highlights and analysis are generated automatically and may contain errors. Check the original source.