Skip to content

Haystack

Production-first agentic NLP. Haystack 2.x ships a component/pipeline architecture with built-in retrieval, ranking, and LLM nodes, plus an Agent class with tool calling, memory, and multi-agent orchestration patterns.

Install

Terminal window
pip install haystack-ai==2.30.0

Version

v2.30.0 · June 2026 · Python 3.10+

Best for

RAG pipelines, search-first agents, production deployments.

  • v2.30.0 (June 2026) — Minor release; bug fixes and dependency updates. All guide-referenced symbols (Pipeline, Document, Agent, MetadataRouter, PromptBuilder, OpenAIChatGenerator, ChatMessage, ChatRole) confirmed present in installed haystack-ai==2.30.0 (system Python, 2026-06-04) with -W error::DeprecationWarning; no warnings emitted.
  • v2.29.0 (May 13) — Minor release; bug fixes and dependency updates. All guide-referenced symbols (Pipeline, Document, Agent, MetadataRouter, PromptBuilder, OpenAIChatGenerator, ChatMessage, ChatRole) confirmed present in installed haystack-ai==2.29.0 (.routine-envs/check-0513-py); no DeprecationWarning emissions.
  • v2.28.0 (April 2026) — Stabilisation and bug fixes following 2.28 RCs. SearchableToolset, LLMRanker, and ToolInvoker stabilised. Expanded provider support (Anthropic, Gemini, Mistral, Ollama). Multi-agent guide published (October 2025).
from haystack.components.agents import Agent
from haystack.components.generators.chat import OpenAIChatGenerator
from haystack.dataclasses import ChatMessage
agent = Agent(
chat_generator=OpenAIChatGenerator(model="gpt-4o"),
system_prompt="You are a helpful research assistant.",
)
result = agent.run(messages=[ChatMessage.from_user("Summarise Haystack 2.x.")])
print(result["messages"][-1].text)

Ready? Start Zero → Hero Step 1 →


DateVersionChanges
2026-06-042.30.0Version bumped 2.29.0 → 2.30.0 (minor release); version card and “What’s new” updated; comprehensive guide header updated; revision history entry added. Core symbols (Pipeline, Document, Agent, MetadataRouter, PromptBuilder, OpenAIChatGenerator, ChatMessage, ChatRole) verified with -W error::DeprecationWarning against installed haystack-ai==2.30.0 (system Python, 2026-06-04); no warnings.
2026-05-132.29.0Version bumped 2.28.0 → 2.29.0; “What’s new” updated; comprehensive guide header updated; revision history entry added. Core symbols (Pipeline, Document, Agent, MetadataRouter, PromptBuilder, OpenAIChatGenerator, ChatMessage, ChatRole) verified with -W error::DeprecationWarning against installed haystack-ai==2.29.0 (.routine-envs/check-0513-py); no warnings.
2026-04-212.28.0Index redesigned with Zero → Hero + Jump-to-topic grid.
April 20, 20262.28.0GA after 2.28.0rc1/rc2; stabilisation.
November 20252.20.0Initial documented version.