examples/haystack/news_fetching/README.md
This example demonstrates how to implement a news fetching agent with Haystack and RagaAI Catalyst for tracing and monitoring. The agent can use tools (like web search) to answer user queries more effectively.
The example builds an agent that can:
Create a .env file with the following variables:
CATALYST_ACCESS_KEY=your_access_key
CATALYST_SECRET_KEY=your_secret_key
CATALYST_BASE_URL=your_base_url
PROJECT_NAME=your_project_name
DATASET_NAME=your_dataset_name
OPENAI_API_KEY=your_openai_api_key
SERPERDEV_API_KEY=your_serperdev_api_key
Install the required dependencies:
pip install -r requirements.txt
A custom component that maintains conversation history by collecting and storing messages throughout the interaction.
Run the script:
python news_fetching.py
The example includes a sample query about fetching news on mars.
The implementation includes RagaAI Catalyst integration for tracing and monitoring your agent's behavior. Access the Catalyst dashboard to: