添加稀疏模型本地缓存功能
Some checks failed
构建并部署 AI Agent 服务 / deploy (push) Failing after 13m54s

- 创建 download_sparse_model.py 脚本用于下载稀疏模型到本地
- 添加 SPARSE_MODEL_PATH 和 SPARSE_MODEL_NAME 配置
- 修改 retriever.py 和 index_builder.py 使用 cache_dir
- 更新 .gitignore 排除 models/ 目录
- 更新 Dockerfile 在构建时下载稀疏模型
This commit is contained in:
2026-05-03 18:55:39 +08:00
parent 5c45806ad3
commit 2183c901b4
6 changed files with 117 additions and 6 deletions

4
.gitignore vendored
View File

@@ -21,6 +21,7 @@
!test/**
!.gitea/
!.gitea/**
!download_sparse_model.py
# 3. 放行必要的根目录文件
!.gitignore
@@ -40,6 +41,9 @@ __pycache__/
*.so
.DS_Store
# 模型目录(不提交到 Git在 Docker 构建时下载)
models/
# 包含敏感信息的环境变量配置(绝对不能传)
.env
.env.local