haystack-ai
LLM framework to build customizable, production-ready LLM applications. Connect components (models, vector DBs, file converters) to pipelines or agents that can interact with your data.
What it is and what it does
Haystack is a framework for composing LLM applications as explicit, transparent pipelines and agent workflows. It provides built-in components for retrieval, indexing, tool calling, memory, and evaluation, while remaining model- and vendor-agnostic—you can integrate with OpenAI, Mistral, Anthropic, Cohere, Hugging Face, Azure OpenAI, AWS Bedrock, or local models and swap them without rewriting your system.
The framework emphasizes modular design and deep customization: you build systems by connecting components into pipelines with explicit control over how context flows through retrieval, ranking, filtering, routing, and generation stages. It supports both traditional RAG systems and autonomous agents with loops, branches, and conditional logic. Core dependencies include pydantic, jinja2, httpx, and openai for provider integration.
Use it for:
- Build retrieval-augmented generation systems that combine document retrieval with LLM generation for question answering
- Create semantic search applications that rank and retrieve relevant documents from large collections
- Design autonomous agent workflows with tool calling, memory, and multi-step reasoning loops
- Develop multimodal applications that process and reason over text, images, and structured data
- Prototype and experiment with different LLM providers and retrieval strategies without rewriting application code
- Deploy production-ready LLM pipelines with transparent, auditable control flow and error handling
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Haystack is an open-source framework for building production-ready LLM applications by composing modular pipelines and agent workflows with explicit control over retrieval, routing, memory, and generation.
Yes. Haystack is a mature, actively maintained framework (Apache-2.0, production-stable status, 26210 GitHub stars, OpenSSF Best Practices certified) with low install friction and no known vulnerabilities. It is well-suited for anyone building production LLM applications who needs modular, vendor-agnostic orchestration with explicit control over retrieval and generation.
Install
haystack-ai on PyPI
pip
pip install haystack-aiuv
uv add haystack-aipoetry
poetry add haystack-aiInstalling haystack-ai
Before you install
Low install friction with a pure-Python wheel distribution. Active maintenance with a recent release and strong community signals: 26210 GitHub stars and over a million monthly downloads. Supports Python 3.10 through 3.14.
License in practice
Apache-2.0 permissive license allows commercial use, modification, and distribution with minimal restrictions. Suitable for proprietary applications.
Quickstart
pip install haystack-ai
from haystack import Pipeline
from haystack.components.retrievers.in_memory import InMemoryBM25Retriever
pipeline = Pipeline()
pipeline.add_component("retriever", InMemoryBM25Retriever())
Requires Python 3.10 or later. Some components may require additional dependencies like openai for provider integration.
Verify before relying
- Whether all runtime dependencies are required for basic usage or only for specific integrations
- Performance characteristics and scalability limits for production deployments
- Specific vector database and model provider integrations available beyond those listed in dependencies
Package facts
| License | Apache-2.0 (permissive) |
| Python support | supports the current Python release (>=3.10) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 18 — docstring-parser, filetype, httpx, jinja2, jsonschema, lazy-imports, markupsafe, more-itertools, networkx, numpy, openai, posthog, pydantic, python-dateutil, pyyaml, tenacity, tqdm, typing-extensions |
| Maintenance | actively maintained — 25 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 1,059,625/month — #4,422 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: haystack_ai-3.0.0-py3-none-any.whl
Keywords: BERT, QA, Question-Answering, Reader, Retriever, albert, language-model, mrc, roberta, search, semantic-search, squad, transfer-learning, transformer
Tags
More Artificial Intelligence packages
LiteLLM provides a unified Python interface to…
permissive · top 100 on PyPI
huggingface-hubClient library and CLI tool for downloading,…
permissive · top 100 on PyPI
langchainLangChain provides a framework for building…
permissive · top 1,000 on PyPI
hf-xethf-xet provides chunk-based deduplication and…
permissive · top 1,000 on PyPI
tokenizersTokenizers converts raw text into token…
permissive · top 1,000 on PyPI
transformersTransformers provides a unified framework for…
permissive · top 1,000 on PyPI
farm-haystackHaystack is an end-to-end NLP framework for…
permissive · top 15,000 on PyPI
haystack-experimentalProvides archived experimental features for…
permissive · top 15,000 on PyPI
openinference-instrumentation-haystackAuto-instruments Haystack LLM pipelines and…
permissive · top 15,000 on PyPI
opentelemetry-instrumentation-haystackAdds distributed tracing to Haystack LLM…
permissive · top 5,000 on PyPI
django-haystackHaystack provides a unified search API for…
permissive · top 15,000 on PyPI
opikOpik is an open-source LLM observability and…
permissive · top 5,000 on PyPI
cocoindexCocoIndex maintains a live,…
permissive · top 15,000 on PyPI
llama-indexLlamaIndex is a data framework that connects…
permissive · top 5,000 on PyPI
deepevalDeepEval is an LLM evaluation framework that…
permissive · top 5,000 on PyPI
application-file-scannerSpecifies which files an application should…
permissive · top 5,000 on PyPI