feat: 实现 BM25 稀疏 + 稠密向量混合检索功能
Some checks failed
构建并部署 AI Agent 服务 / deploy (push) Has been cancelled

This commit is contained in:
2026-05-04 02:01:22 +08:00
parent 2183c901b4
commit 60afa86ded
26 changed files with 905 additions and 656 deletions

View File

@@ -55,6 +55,7 @@ ENV ENABLE_GRAPH_TRACE=false
# =============================================================================
ENV SPARSE_MODEL_PATH=/app/models/sparse
ENV SPARSE_MODEL_NAME=Qdrant/bm25
ENV FASTEMBED_CACHE_PATH=/app/fastembed_cache
# =============================================================================
# 日志配置(生产环境默认值)
@@ -88,6 +89,11 @@ COPY download_sparse_model.py .
RUN python download_sparse_model.py --cache-dir /app/models/sparse --model-name Qdrant/bm25 && \
rm -f download_sparse_model.py
# =============================================================================
# 复制预下载的BM25模型缓存FastEmbed
# =============================================================================
COPY models/fastembed_cache /app/fastembed_cache
# =============================================================================
# 复制项目代码
# =============================================================================