Introduction to Traces
Weave is a toolkit for developing AI-powered applications.
Use Weave traces to capture the inputs, outputs, and internal structure of your Python function automatically to observe and debug LLM applications.
When you decorate a function with @weave.op, Weave records a rich trace of the function while it runs, including any nested operations or external API calls. Use the trace to to debug, understand, and visualize interactions between your code and LLM models, without leaving your notebook.
To get started, complete the prerequisites. Then, define a function decorated with @weave.op decorator and run it on an example input to track LLM calls. Weave captures and visualizes the trace automatically.