Index Ai Academy
Glossary · Phase 1 · Building with LLMs

Trace

Also written: traces

A record of every step in one multi-step run, such as an agent's model calls and tool calls, grouped under one id.

An agent run or a prompt chain is many calls. A trace groups them under one id. Each step inside it, such as a model call, a tool call or a search, is a span with its own timing. When an agent gives a strange answer, the trace shows the exact path: which documents it found, which tool it called with what input, and where the time went.

Try it now

Without a trace, a bad answer is a mystery. With one, it's a lookup.

Learn it properly

Logging and monitoring · See what your LLM app actually did in production. About 25 minutes.

Create a free account See what's in the lesson

Other terms from the same lesson

Never trained an AI?

Teach a small one to write, right in your browser. It takes about 20 seconds and needs no account.

Teach it to write