What it is
Haystack builds AI applications as pipelines of components: retrievers, prompt builders, generators, routers and agents. Pipelines are explicit, so you can see and test how data moves through them, and they can be serialised to YAML.
Version 3.0 (20 July 2026) put agents at the centre, with lifecycle hooks, first-class skills, built-in step and token counters, and a merged sync and async Pipeline class. It also slimmed the core by moving 30 components into separately released integration packages. The current release is 3.4.1, from 21 October 2026.
deepset, the Berlin company behind it, sells a hosted Haystack Enterprise Platform on top, with a free single-user Studio tier.
Our review
Haystack is the RAG framework that favours clarity over reach, and in production that is usually the right trade. It has about 26,800 GitHub stars, a history that predates the LLM boom, and a steady release train: 3.4.1 landed on 21 October 2026.
Every component declares typed inputs and outputs, so a pipeline fails at build time rather than halfway through a request when two parts do not fit. The 3.0 agent hooks let a team add guardrails, logging or a token budget without touching agent logic, and moving 30 components out of the core cut the default dependency tree.
Two defaults deserve attention. Anonymous telemetry is on out of the box: Haystack sends component types, and for agents the model name and tool names, to deepset via PostHog until HAYSTACK_TELEMETRY_ENABLED is set to False; the docs say queries and documents are never sent. And 3.0 broke things, such as making every prompt template variable required, so upgrades from 2.x need a test pass.
The ecosystem is smaller than LangChain's or LlamaIndex's, and the more exotic retrieval strategies are less likely to have a ready component. Only one security advisory has been published against the repository, a low-severity Jinja2 template issue from 2024, against nine for LangChain; that gap is partly a smaller attack surface and partly fewer people looking.
Where it earns its place
A search team at a legal publisher indexing 2 million documents
Run a RAG service that auditors and engineers can both reason about
Typed pipelines serialised to YAML give a reviewable definition of every retrieval and prompt step. The library is free; cost is the vector database, embedding compute and model tokens.
A platform engineer adding an agent to an existing Haystack 2.x RAG stack
Put a token budget and approval step around an agent that calls internal tools
The 3.0 agent hooks wrap the agent with limits and logging without rewriting it, but the upgrade from 2.x has breaking changes, so budget a migration and test cycle first.
A CTO at a 50-person healthtech firm
Decide between self-hosting open source and paying for a managed RAG platform
Self-hosted Haystack costs only infrastructure and engineers. deepset Studio is free for one user with 100 pipeline hours; the Enterprise Platform, with SSO and custom deployment, is priced on request.
Before you commit
- Setup
- pip install haystack-ai on Python 3.11 or newer, plus integration packages for your model provider and document store; the official tutorials walk through a first RAG pipeline step by step.
- Integrations
- Model providers, vector stores and tools ship as separate packages; pipelines and agents can call MCP tools and be served behind an API with Hayhooks.
- Data and privacy
- Apache 2.0. Anonymous usage telemetry goes to deepset by default (component types, agent model and tool names, environment) and is disabled with HAYSTACK_TELEMETRY_ENABLED=False. One low-severity GitHub advisory, from 2024.
- Cost at scale
- Self-hosted, the bill is vector database, embeddings and model tokens. deepset Studio is free for one user, 100 pipeline hours and 50 files; Enterprise is custom-priced with unlimited users and cloud or custom deployment.
- Limits
- 158 open issues and pull requests. 3.0 broke 2.x code, and the integration list is shorter than LangChain's or LlamaIndex's.
What's good
- Typed components catch pipeline wiring errors early
- Agent hooks for guardrails, logging and token limits
- Leaner core since 3.0 moved 30 components out
- One low-severity advisory in the repo history
What's not
- Telemetry on by default until an environment variable is set
- 3.0 breaking changes need a migration pass
- Smaller integration catalogue than LangChain or LlamaIndex
Best for
Engineering teams building maintainable production RAG and agent pipelines in Python.
Alternatives
Haystack: common questions
- Is Haystack worth it?
- A framework for people who want to read their RAG system rather than trust it, at the price of writing more of the wiring themselves. We rate it 4.2 out of 5.
- How much does Haystack cost?
- Free and open source under the Apache 2.0 licence. deepset Studio is free for one user; the Haystack Enterprise Platform is custom-priced.
- What are the downsides of Haystack?
- Telemetry on by default until an environment variable is set; 3.0 breaking changes need a migration pass; smaller integration catalogue than LangChain or LlamaIndex.
- Who is Haystack best for?
- Engineering teams building maintainable production RAG and agent pipelines in Python.
- How much does Haystack cost for a team or in production?
- Self-hosted, the bill is vector database, embeddings and model tokens. deepset Studio is free for one user, 100 pipeline hours and 50 files; Enterprise is custom-priced with unlimited users and cloud or custom deployment.
- Is Haystack safe for company data?
- Apache 2.0. Anonymous usage telemetry goes to deepset by default (component types, agent model and tool names, environment) and is disabled with HAYSTACK_TELEMETRY_ENABLED=False. One low-severity GitHub advisory, from 2024.
- What are the best Haystack alternatives?
- The closest alternatives we have reviewed are LlamaIndex, LangChain and RAGFlow.
Answers checked Oct 23, 2026.