skillfed

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.

haystack-ai v3.0.0 1.1M downloads/30d#4,422 on PyPI26,210
Permissive license Apache-2.0 Active released

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

uv

uv add haystack-ai

poetry

poetry add haystack-ai

Installing 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

Development Status :: 5 - Production/StableIntended Audience :: Science/ResearchLicense :: Freely DistributableLicense :: OSI Approved :: Apache Software LicenseOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Topic :: Scientific/Engineering :: Artificial Intelligence

Tags

LLM application frameworkRAG pipeline builderAI orchestration frameworksemantic search and QAagent workflow frameworkretrieval augmented generationLLM orchestrationmodular AI pipelines
rag-frameworkllm-orchestrationagent-workflows

More Artificial Intelligence packages

Further reading