Install
pip install haystack-ai==2.30.0Production-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
pip install haystack-ai==2.30.0Version
v2.30.0 · June 2026 · Python 3.10+
Best for
RAG pipelines, search-first agents, production deployments.
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.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.SearchableToolset, LLMRanker, and ToolInvoker stabilised. Expanded provider support (Anthropic, Gemini, Mistral, Ollama). Multi-agent guide published (October 2025).from haystack.components.agents import Agentfrom haystack.components.generators.chat import OpenAIChatGeneratorfrom 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 →
| Date | Version | Changes |
|---|---|---|
| 2026-06-04 | 2.30.0 | Version 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-13 | 2.29.0 | Version 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-21 | 2.28.0 | Index redesigned with Zero → Hero + Jump-to-topic grid. |
| April 20, 2026 | 2.28.0 | GA after 2.28.0rc1/rc2; stabilisation. |
| November 2025 | 2.20.0 | Initial documented version. |