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.28.0

Version

v2.28.0 · April 2026 · Python 3.10+

Best for

RAG pipelines, search-first agents, production deployments.

  • 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-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.