Haystack is an open-source framework for building search and LLM applications. Deepset maintains a WeaveConnector component that forwards Haystack pipeline traces to W&B Weave so you can inspect component runs, prompts, and outputs in the Weights & Biases UI.
This guide is for Haystack developers who want to add observability to their pipelines.
For full API details and additional examples, see these Deepset resources:
Prerequisites
Before you begin, you must complete the following:
- Set
WANDB_API_KEY in your environment using your Forge API Key. This authenticates the connector with W&B Weave.
- Set
HAYSTACK_CONTENT_TRACING_ENABLED to true before you run a pipeline so Haystack emits tracing data the connector can forward.
Install
Install the required dependencies using pip:
The package declares compatible versions of haystack-ai and weave as dependencies.
Trace a Haystack pipeline with Weave
The following example adds Haystack’s WeaveConnector to a Haystack Pipeline and integrates with W&B Weave to trace and monitor your pipeline components. The pipeline_name you pass is used as the Weave project name for traces from that pipeline.
In your Haystack pipeline, don’t connect WeaveConnector to other components.
After the pipeline runs, open your Weights & Biases workspace, select the project named with pipeline_name, and go to Traces to review the completed trace. Last modified on September 30, 2026