添加可选稀疏向量支持到索引器
Some checks failed
构建并部署 AI Agent 服务 / deploy (push) Has been cancelled

- 完全兼容现有代码:默认 enable_sparse=False
- 启用时:需要安装 fastembed,设置 enable_sparse=True
- 自动初始化 FastEmbedSparse 和 RetrievalMode.HYBRID
- 失败时优雅回退到纯稠密
- 语法检查通过
This commit is contained in:
2026-05-03 18:08:39 +08:00
parent 5094a87a8f
commit ce6e459e19
2 changed files with 26 additions and 4 deletions

View File

@@ -14,6 +14,8 @@ tiktoken>=0.12.0
# Vector DB
qdrant-client==1.17.1
# 可选:用于稀疏向量支持
# fastembed>=0.3.0
# HTTP
httpx==0.28.1