Haystack 3.4 is here, and it focuses on agents that can run for long periods.
Agents that call search, file, or API tools can quickly fill the context with large results. 3.4 adds the experimental ToolResultOffloadCompactor for CompactionHook. When compaction triggers, it writes older tool results to a store and replaces them with references. The agent reads them back only when it needs them. Context is shorter, but nothing is lost.
Other highlights:
π Better observability: failed tool calls carry a haystack.tool.error tag in tracing spans, so theyβre no longer confused with tools that return error dicts
π Python 3.15 support (Python 3.10 is no longer supported because it reaches EOL this month)
π Converter improvements: DOCX text boxes are extracted, HTML encodings are detected automatically
β οΈ Before you upgrade β οΈ
The default OpenAI and Azure embedding model is now text-embedding-3-small. Itβs cheaper and stronger, but its embeddings arenβt compatible with ada-002. If you have an existing index, pin the old model or re-embed.
π» pip install -U haystack-ai
Full release notes: https://haystack.deepset.ai/release-notes/3.4.0
