- Haystack’s WeaveConnector.
- Haystack’s Weave integration API reference.
- Haystack’s Trace with W&B Weave example using a RAG pipeline.
Prerequisites
Before you begin:- Set
WANDB_API_KEYin your environment using your W&B API key. - Set
HAYSTACK_CONTENT_TRACING_ENABLEDtotruebefore you run a pipeline so Haystack emits tracing data the connector can forward.
Install
Install the required dependencies usingpip:
haystack-ai and weave as dependencies.
Trace a Haystack pipeline with Weave
The following example adds Haystack’sWeaveConnector to a Haystack Pipeline and integrates with W&B Weave for tracing and monitoring 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.
pipeline_name, and go to Traces to review the completed trace.