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 Weave UI. For full API details and additional examples, see these Deepset resources:Documentation Index
Fetch the complete documentation index at: https://wb-21fd5541-john-wbdocs-2044-rename-serverless-products.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
- 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.