添加依赖
Some checks failed
构建并部署 AI Agent 服务 / deploy (push) Failing after 1h37m19s

This commit is contained in:
2026-04-20 18:19:25 +08:00
parent b15f8e1ef4
commit 2503ed54ac
2 changed files with 46 additions and 11 deletions

View File

@@ -42,7 +42,7 @@ RUN pip install --no-cache-dir spacy && \
# ============================================================================= # =============================================================================
# 复制项目代码 (只复制必需的文件夹,避免依赖被忽略的目录) # 复制项目代码 (只复制必需的文件夹,避免依赖被忽略的目录)
# ============================================================================= # =============================================================================
COPY ./rag_core /app/rag_core COPY rag_core/ ./rag_core/
COPY app/ ./app/ COPY app/ ./app/
COPY frontend/ ./frontend/ COPY frontend/ ./frontend/
COPY scripts/ ./scripts/ COPY scripts/ ./scripts/

View File

@@ -1,6 +1,6 @@
# ============================================================================ # ============================================================================
# AI Agent 项目依赖 - 生产环境锁定版本 # AI Agent 项目依赖 - 生产环境锁定版本
# 生成时间: 2026-04-16 # 生成时间: 2026-04-20
# Python 版本: 3.13+ # Python 版本: 3.13+
# ============================================================================ # ============================================================================
@@ -9,6 +9,10 @@ pypdf==6.10.0
pandas==3.0.2 pandas==3.0.2
requests==2.33.1 requests==2.33.1
beautifulsoup4==4.14.3 beautifulsoup4==4.14.3
numpy==2.4.4
lxml==6.1.0
pillow==12.2.0
PyYAML==6.0.3
# LangChain Ecosystem (LangChain 生态系统 - 核心框架) # LangChain Ecosystem (LangChain 生态系统 - 核心框架)
langchain==1.2.15 langchain==1.2.15
@@ -16,7 +20,9 @@ langchain-community==0.4.1
langchain-core==1.2.28 langchain-core==1.2.28
langchain-openai==1.1.12 langchain-openai==1.1.12
langchain-text-splitters==1.1.1 langchain-text-splitters==1.1.1
langchain-qdrant>=0.1.0 # 使用 >= 以兼容 qdrant-client 版本 langchain-qdrant==1.1.0
langchain-classic==1.0.3
langchain-experimental==0.4.1
# Vector Database (向量数据库客户端) # Vector Database (向量数据库客户端)
qdrant-client==1.17.1 qdrant-client==1.17.1
@@ -30,6 +36,7 @@ langgraph-checkpoint-postgres==3.0.5
# ZhipuAI Integration (智谱 AI SDK) # ZhipuAI Integration (智谱 AI SDK)
zhipuai==2.1.5.20250825 zhipuai==2.1.5.20250825
openai==2.32.0
# Backend Framework (后端框架) # Backend Framework (后端框架)
fastapi==0.135.3 fastapi==0.135.3
@@ -37,24 +44,52 @@ uvicorn[standard]==0.44.0
# Frontend Framework (前端框架) # Frontend Framework (前端框架)
streamlit==1.56.0 streamlit==1.56.0
altair==6.0.0
# Database Driver (PostgreSQL 驱动) # Database Driver (数据库驱动)
psycopg[binary,pool]==3.3.3 psycopg[binary,pool]==3.3.3
asyncpg==0.31.0
sqlalchemy==2.0.49
# Data Validation (数据验证) # Data Validation (数据验证)
pydantic==2.12.5 pydantic==2.12.5
# Environment & Type Support (环境变量和类型支持) # Environment & Type Support (环境变量和类型支持)
python-dotenv==1.2.2 python-dotenv==1.2.2
typing-extensions==4.15.0 typing-extensions==4.15.0
unstructured>=0.0.1 # HTTP Client (HTTP 客户端)
spacy>=3.7.0 httpx==0.28.1
langchain_experimental>=0.0.1 httpx-sse==0.4.3
aiohttp==3.13.5
aiofiles==25.1.0
# Document Processing (文档处理)
unstructured==0.22.21
# NLP (自然语言处理)
spacy==3.8.14
# ML/Embeddings (机器学习/向量嵌入)
torch==2.11.0
sentence-transformers==5.4.1
transformers==5.5.4
tokenizers==0.22.2
scikit-learn==1.8.0
scipy==1.17.1
tiktoken==0.12.0
huggingface-hub==1.11.0
# Utilities (工具库)
rich==15.0.0
tenacity==9.1.4
tqdm==4.67.3
watchdog==6.0.0
websockets==16.0
gitpython==3.1.46
# ============================================================================ # ============================================================================
# 注意: # 注意:
# 1. 此文件包含项目直接依赖的精确版本 # 1. 此文件包含项目直接依赖的精确版本
# 2. 完整的依赖树(包括间接依赖)请查看 requirements-prod.txt # 2. 升级依赖前请在测试环境验证兼容性
# 3. 开发环境可使用 >= 允许小版本更新,生产环境建议使用 == 锁定版本
# 4. 升级依赖前请在测试环境验证兼容性
# ============================================================================ # ============================================================================