fix: correct Volcengine sparse/hybrid embedder and update sparse model docs#561
Merged
MaojiaSheng merged 2 commits intovolcengine:mainfrom Mar 12, 2026
Merged
Conversation
Collaborator
yangxinxin-7
commented
Mar 12, 2026
…l docs 修复火山引擎 Sparse/Hybrid Embedder 并更新 Sparse 模型文档 **Bug fixes / 问题修复:** - Fix `Ark()` init crash when `api_base` is None by only passing `base_url` when set 修复 `api_base` 为 None 时 `Ark()` 初始化崩溃问题,仅在有值时传入 `base_url` - Fix `VolcengineSparseEmbedder.embed()` using `response.data[0]` — the multimodal API always returns a single object, not a list 修复 `embed()` 错误使用 `response.data[0]`,multimodal API 始终返回单个对象而非列表 - Fix `embed_batch()` for sparse and hybrid embedders: the multimodal API input array is for multi-modal inputs of a single sample, not batching; delegate to `embed()` per text 修复 Sparse/Hybrid 的 `embed_batch()`:multimodal API 的 input 数组是单样本多模态输入, 不支持 batch,改为逐条调用 `embed()` **Docs / 文档:** - Update sparse model from `bm25-sparse-v1` to `doubao-embedding-vision-250615` in EN/ZH docs 中英文文档中 sparse 模型由 `bm25-sparse-v1` 更新为 `doubao-embedding-vision-250615` - Add note that Volcengine sparse embedding is supported from `doubao-embedding-vision-250615` and only supports text input 新增说明:火山引擎 Sparse embedding 从 `doubao-embedding-vision-250615` 起支持,仅支持文本输入 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
文档:移除 Sparse embedding 中仅支持文本输入的限制说明 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
MaojiaSheng
approved these changes
Mar 12, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.