47 model prices
  1. Home
  2. Releases
  3. Haystack
  4. 3.5.0

Haystack 3.5.0 release notes

Haystack 3.5.0 was released on November 10, 2026. It is the latest version.

v3.5.0 · · 100 listed changes

Release notes

⭐️ Highlights

🧭 Classify and Route with the OpenAI Decisions API

Three new components use the OpenAI Decisions API to choose how to handle your data without instructions. OpenAIDecisionsTextRouter sends text to a named output per label, OpenAIDecisionsImageRouter does the same for images and can send low-confidence decisions to a fallback branch, and OpenAIDecisionsDocumentClassifier answers choice, score, and yes/no questions about documents and stores the answers in their metadata.

from haystack.components.routers import OpenAIDecisionsTextRouter

router = OpenAIDecisionsTextRouter(
    labels={
        "billing": "Payments, invoices, refunds and charges",
        "technical": "Bugs, crashes and errors in the product",
    },
    instructions="Which team should handle this support request?",
    min_confidence=0.6,
)

print(router.run(text="I was charged twice for my subscription."))
# >> {'billing': 'I was charged twice for my subscription.'}
🧱 Structured Output for Agents

The new StructuredOutputHook validates the Agent's final reply against a Pydantic model or JSON schema and returns it as a dict in result["structured_output"]. If the reply doesn't validate, the hook sends the error back to the model and lets it try again, up to max_retries times.

from pydantic import BaseModel

from haystack.components.agents import Agent
from haystack.components.generators.chat import OpenAIResponsesChatGenerator
from haystack.dataclasses import ChatMessage
from haystack.hooks.structured_output import StructuredOutputHook

class CityInfo(BaseModel):
    city: str
    country: str

agent = Agent(
    chat_generator=OpenAIResponsesChatGenerator(generation_kwargs={"text_format": CityInfo}),
    state_schema={"structured_output": {"type": dict}},
    hooks={"on_exit": [StructuredOutputHook(schema=CityInfo)]},
)

result = agent.run(messages=[ChatMessage.from_user("Which city is the Eiffel Tower in?")])
print(result["structured_output"])
# >> {'city': 'Paris', 'country': 'France'}

Also new for Agents: the experimental StepBudgetReminderHook tells the model how many steps it has left as it approaches max_agent_steps, so it wraps up with an answer instead of being cut off.

🎯 Multivector Embeddings and MaxSimRanker

Document has a new multivector_embedding field for late-interaction models such as ColBERT, and the new MaxSimRanker reranks candidates by comparing each query vector to the document vectors and summing the best matches. DocumentJoiner(join_mode="merge_embeddings") can also combine dense, sparse, and multivector embeddings computed in parallel for the same documents.

This is the first step toward multivector retrieval in Haystack (#13257). Embedders that produce multivector embeddings are in progress in Haystack Core Integrations: Sentence Transformers and vLLM.

from haystack import Document
from haystack.components.rankers import MaxSimRanker

# Representative multivector embedding for "How do solar panels work?"
query_multivector_embedding = [[1.0, 0.0], [0.0, 1.0]]

documents = [
    Document(content="Wind turbines generate electricity.", multivector_embedding=[[1.0, 0.0], [0.0, 0.2]]),
    Document(content="Solar panels turn sunlight into power.", multivector_embedding=[[0.95, 0.05], [0.15, 0.9]]),
    Document(content="Solar cells absorb light.", multivector_embedding=[[0.9, 0.1], [0.1, 0.9]]),
]

ranker = MaxSimRanker(top_k=2)
result = ranker.run(query_multivector_embedding=query_multivector_embedding, documents=documents)
for document in result["documents"]:
    print(f"{document.score:.2f}: {document.content}")
# >> 1.85: Solar panels turn sunlight into power.
# >> 1.80: Solar cells absorb light.
⚠️ New Default OpenAI Model

OpenAIChatGenerator, OpenAIResponsesChatGenerator, and the LLM-based evaluators now default to gpt-5.6-terra, the replacement OpenAI recommends for gpt-5-mini. OpenAI shuts down gpt-5-mini on December 11, 2026. Pipelines saved with model: gpt-5-mini keep using it, so update their YAML before then.

⬆️ Upgrade Notes

🚀 New Features

⚡️ Enhancement Notes

🐛 Bug Fixes

💙 Big thank you to everyone who contributed to this release!

@Aditya17-bot, @Afloat16, @amarthya-14, @anakin87, @anh-nguyenn, @aryamangodara, @Aurantium-47, @bogdankostic, @BugBuster18, @chrikrah, @D1822787566, @davidsbatista, @desty, @Dhruv-Patil-1720, @Elias-Sun, @Elonon901001, @emme1t, @erdogan-deniz, @Eryx-Z, @gauravch-code, @geyazheng, @Guo-Yixin, @Harbor404, @HareeshDaxton, @HarshitR2004, @hazelxue, @hermanrous, @hessamhzDS, @its-amann, @JackyHsu-X, @jaeminbird, @jeevan1098, @JimmyWang0417, @julian-risch, @kerthans, @kun654, @L4XB, @lalith0407, @lester076, @linhongyu510, @MALLADISARMA, @mengchen-atx, @mittalpk, @Naeemeh146, @nik13, @NotZhu, @pcbeingused333, @pei711, @porkedchop, @priy-anshugupta, @Quantum-Enigma-dot, @Revinand, @senthurapandi2000, @shivsin25, @shuaiyafei, @simin-yuan, @sjrl, @Smilewithoutfalling, @solitarybear, @Starchaser1024, @SuhrudhC, @sunhouy, @Tanishq-Choudhary, @TemitopeKadri, @Vedant-Agarwal, @Winoren, @wozhenbang2004, @Ytq1115, @yuv009

Source: GitHub release v3.5.0

Older: 2.31.1Haystack