返回全部动态
Haystack v3.1.0 发布:新增 Agent 上下文压缩与 PDF 链接解析
原标题:v3.1.0
AI 摘要
Haystack 发布了 v3.1.0 版本,包含多项升级说明和新功能。升级说明涉及序列化组件加载、Agent 状态键、评估器评分、管道快照格式等变更,要求用户调整代码。新功能包括为 PDF 组件添加链接解析参数,以及为 Agent 引入实验性的上下文压缩机制,通过 CompactionHook 和 SlidingWindowCompactor 策略在接近上下文窗口限制时缩短对话。
以上摘要由 AI 生成,可能存在误差。事实请以原文为准。
正文节选
# Release Notes ## v3.1.0 ### Upgrade Notes - Serialized `OutputAdapter` and `ConditionalRouter` components containing Jinja `custom_filters` must now be loaded with `Pipeline.load(..., unsafe=True)` (or the equivalent `Pipeline.loads` / `Pipeline.from_dict` option). - `exit_reason` is now a reserved state key on `Agent`. If you defined a custom `state_schema` key named `exit_reason`, rename it: the Agent now raises a `ValueError` at initialization when a reserved key is redefined. - `Agent
发布时间:2026-08-24 23:19
抓取时间:2026-08-24 23:25
来源机构:deepset