Haystack 发布 v3.4.0-rc1:统一分块页码语义并更新默认嵌入模型
原标题:v3.4.0-rc1
AI 摘要
Haystack 发布 v3.4.0-rc1 候选版本,主要统一了各 splitter 中 page_number 元数据的语义,并修复了 RecursiveDocumentSplitter 在按词切分、句子切分及空白保留方面的多个问题。该版本还移除了对 Python 3.10 的支持,将最低版本提升至 3.11,并调整了 FilterPolicy.MERGE 的逻辑。此外,OpenAI 与 Azure 嵌入器的默认模型从 text-embedding-ada-002 改为 text-embedding-3-small,同时移除了 Tool.warm_up() 等基础方法。
正文节选
# Release Notes ## v3.4.0-rc1 ### Upgrade Notes - The `page_number` metadata field now means the same thing in every splitter: the page the chunk's text starts on. Two cases change: - `RecursiveDocumentSplitter` reported the page a chunk *ended* on. A chunk spanning a page break now reports the page it starts on, matching `DocumentSplitter` and `MarkdownHeaderSplitter`. - `DocumentSplitter`, `MarkdownHeaderSplitter` and `EmbeddingBasedDocumentSplitter` reported the previous page for a ch