Files
ailine/.gitignore
root 2183c901b4
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 在构建时下载稀疏模型
2026-05-03 18:55:39 +08:00

58 lines
1.0 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# ==========================================
# 白名单模式配置 (Allowlist approach)
# 先忽略所有内容,然后再把需要上传的文件夹放行
# ==========================================
# 1. 忽略根目录及子目录下的所有内容
/*
# 2. 放行需要的文件夹及其内容
!backend/
!backend/**
!frontend/
!frontend/**
!scripts/
!scripts/**
!rag_indexer/
!rag_indexer/**
!docker/
!docker/**
!test/
!test/**
!.gitea/
!.gitea/**
!download_sparse_model.py
# 3. 放行必要的根目录文件
!.gitignore
!README.md
!QUICKSTART.md
!REACT_MODE_SUMMARY.md
!LICENSE
!requirement.txt
!.env.docker
# ==========================================
# 黑名单模式 (即使在放行的文件夹中,也要排除的特定类型文件)
# ==========================================
__pycache__/
*.py[cod]
*$py.class
*.so
.DS_Store
# 模型目录(不提交到 Git在 Docker 构建时下载)
models/
# 包含敏感信息的环境变量配置(绝对不能传)
.env
.env.local
# 日志
*.log
app/*.log
frontend/*.log
# 测试和用户数据
data/