Files
HenryandClaude Code 26e13ff032 feat: Agent 工作区初始提交(源码+文档+Skills)
包含 CodeAgent 前后端源码、SKILLS、MCP、demo 代码与工作区文档。
排除依赖缓存、运行数据、备份与二进制附件,规则见 .gitignore。

Co-Authored-By: Claude Code <[email protected]>
2026-11-13 13:48:41 +08:00

62 lines
2.2 KiB
Plaintext
Raw Permalink 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.
# ============================================================
# 编程智能 Agent 系统 Python 依赖清单
#
# 版本对齐基准文档:《LangChain与LangGraph知识汇总.md》附录依赖清单
# 运行环境:Python 3.13 / uv 管理 / 虚拟环境 D:\Agent\agent\backend\.venv
#
# 选型说明(对应已锁定的架构决策):
# - 决策点 5:持久化选 SQLite + Chroma,故剔除 pymilvus / psycopg 系列
# - 决策点 6:文档解析走轻量组合(python-docx + pdfminer.six),不上 Unstructured 全家桶
# - 决策点 4:模型层走 OpenAI 兼容口,只需 langchain-openai 一个适配器
# - 一期不引入:langchain-tavily(联网搜索)、mcp/fastmcp(外部工具协议)、
# langgraph-checkpoint-postgres(生产检查点)、scikit-learn/nltk(暂未用到)
# ============================================================
# ---------- LangChain 核心框架 ----------
langchain==1.2.12
langchain-core==1.2.18
langchain-community==0.4.1
langchain-text-splitters==1.1.1
# ---------- LangGraph / Agent 编排 ----------
langgraph==1.1.2
langgraph-prebuilt==1.0.8
langgraph-checkpoint==4.0.1
langgraph-sdk==0.3.9
# ---------- 大模型适配(OpenAI 兼容口,决策点 4)----------
langchain-openai==1.1.11
# ---------- Web 服务 / SSE 推送 ----------
fastapi==0.135.1
uvicorn==0.46.0
sse-starlette==3.3.4
httpx==0.28.1
httpx-sse==0.4.3
websockets==16.0
# ---------- 配置加载 / 数据校验 ----------
python-dotenv==1.2.1
pydantic==2.12.5
pydantic-settings==2.12.0
PyYAML==6.0.3
jsonschema==4.26.0
# ---------- RAG / 向量库(决策点 5:Chroma 嵌入式,数据落 D 盘)----------
chromadb
langchain-chroma
# ---------- Embedding / 文本处理 ----------
# fastembed:中文嵌入模型运行时(ONNX,无需 torch)
# 选型理由:实测 chromadb 内置 all-MiniLM-L6-v2 中文召回偏弱(命中率 3/6),
# 换 BAAI/bge-small-zh-v1.5 后命中率 6/6;模型缓存落 D 盘
fastembed==0.9.0
tiktoken==0.12.0
numpy==2.4.4
# ---------- 文档解析(决策点 6:md 用 text-splitters,docx/pdf 如下)----------
python-docx==1.2.0
pdfminer.six==20260107
pypdf==6.10.2
beautifulsoup4==4.14.3