Haystack composes retrieval, tools, memory, and generation into modular pipelines and agents for RAG, search, and conversational apps. It connects to many model and vector vendors from a single Python codebase.
Overview
Haystack is a Python framework for building production-oriented large language model applications. Teams define pipelines and agent workflows with explicit steps for retrieval, routing, memory, tool calls, and generation, suitable for RAG, semantic search, question answering, multimodal flows, and autonomous agents.
Components cover indexing, retrieval, evaluation, and custom logic, with support for loops, branches, and conditional paths. Pipelines can run synchronously or asynchronously and stream tokens; agents can issue concurrent tool calls. Lifecycle hooks allow guardrails around model and tool steps, and built-in metrics cover steps, tokens, and tool usage.
Integrations span hosted and local model providers plus vector databases and search backends, so infrastructure can change without rewriting orchestration. Optional Agent Pack templates and SkillToolset help agents load skills on demand. Related tooling such as Hayhooks can expose pipelines over REST or MCP, and an enterprise platform offers managed or self-hosted operations.
Installation is available through pip, with documentation covering Docker images and nightly builds. The architecture emphasizes serializable, cloud-agnostic pipelines intended for Kubernetes and observability in deployed environments.
Key features
- Modular RAG and agent pipelines
- Async runs with token streaming
- Model- and vendor-agnostic integrations
- Agent lifecycle hooks and metrics
- Custom components and branching logic
- Multimodal processing support
- Ready-made agents via Agent Pack
- Docker-based installation option
Use cases
- Production retrieval-augmented generation
- Tool-using autonomous agents
- Semantic search and QA systems
- Multimodal document workflows
- Conversational assistants with memory