# Haystack

CreateWithAI Hub page: https://createwithaihub.com/frameworks/haystack
Latest version of this file: https://createwithaihub.com/frameworks/haystack.md

- Type: Framework · Category: Harnesses & Frameworks
- Publisher: deepset
- Pricing: Free · License: Apache-2.0
- Runs on: Docker / self-hosted

deepset's open-source Python framework for building RAG pipelines and agent workflows with explicit control over context.

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.

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

## Connection

- Language: Python
- Focus: Agents & tool use, Workflows / graphs, RAG & data
- Model support: Multi-provider

## Before you start

- Python 3.11+

## Install steps from the official documentation

pip:

```
pip install haystack-ai
```

## Limitations

- 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)

## Official links

- Website: https://haystack.deepset.ai
- Source repository: https://github.com/deepset-ai/haystack
- Documentation: https://docs.haystack.deepset.ai/docs/intro
- Source: https://github.com/deepset-ai/haystack (README: description, install, features, model integrations, Hayhooks, Enterprise Starter/Platform, telemetry; LICENSE: Apache-2.0)
- Source: https://www.deepset.ai/pricing (deepset Studio $0 (1 workspace, 1 user, 100 pipeline hours, 50 files), Enterprise custom)
- Source: https://github.com/deepset-ai/haystack/blob/main/pyproject.toml (requires-python >=3.11)
- Source: https://www.deepset.ai/terms-and-conditions-deepset-cloud ('deepset Studio is a free product from deepset'; limited-uptime deployment or export as Python/YAML)
