
Framework deepset
Haystack
deepset's open-source Python framework for building RAG pipelines and agent workflows with explicit control over context.
What it is
Haystack is an open-source AI orchestration framework from deepset for building LLM applications in Python. You compose modular pipelines and agent workflows with explicit control over retrieval, ranking, routing, memory and generation, for RAG, semantic search, question answering and agents. It integrates with OpenAI, Mistral, Anthropic, Cohere, Hugging Face, Google, Azure OpenAI, AWS Bedrock, local models and more. Hayhooks can serve pipelines as REST APIs or MCP servers, and deepset sells an enterprise platform.
What it's useful for
Building a production RAG pipeline with custom retrieval, ranking and routing steps, then exposing it as a REST API or MCP server with Hayhooks.
Key features
- Pipelines with loops, branches and conditional routing
- Agents with lifecycle hooks, step and token tracking, and concurrent tool calls
- Built-in components for retrieval, indexing, tool calling, memory and evaluation
- Model- and vendor-agnostic integrations
- Sync or async pipelines with token streaming
- Hayhooks to serve pipelines as REST APIs, MCP servers or OpenAI-compatible endpoints
How to use it
Before you start
- Python 3.11+
pip install haystack-aiCommands are copied from the official documentation. Check the docs for the latest version before running them.
Limitations to know
- Collects anonymous telemetry on component usage by default (opt-out documented)
- Managed deployment, observability and governance are part of the commercial Haystack Enterprise Platform; deepset Studio is a free, usage-limited hosted tier (1 workspace, 100 pipeline hours)
Alternatives
Open-source Python framework for building LLM agents, event-driven workflows and RAG over your own data.
Open-source framework for building LLM agents and apps with a standard interface across model providers.
Open-source Python framework for multi-agent automation using role-based Crews and event-driven Flows.
TypeScript framework for AI agents and graph-based workflows with memory, RAG, evals and model routing.
MCP servers for this
Firecrawl's MCP server that lets agents scrape, crawl, map and search the web and get clean markdown back.
Apify's MCP server that lets agents find and run ready-made Actors from Apify Store for web scraping, data extraction and automation.
Brave's MCP server that gives agents web, news, image, video and local search through the Brave Search API.
Skills for this
Hugging Face's Agent Skills for the Hub CLI, datasets, model training, evaluation, Spaces and SageMaker deployment.
Related resources
Cohere's API for Command chat models, Embed and Rerank, with official Python, TypeScript, Java and Go SDKs and free trial keys.
Open-source visual builder for AI agents and workflows that serves every flow as an API and an MCP server.
Open-source vector database from Lite in-process to distributed Kubernetes, with managed Zilliz Cloud.
Open-source vector search engine written in Rust, with hybrid search and payload filtering, self-hosted or on Qdrant Cloud.