feat(backend): knowledge iteration + vision + neo4j + response contract source

dependencies.py 拆分为 dependencies/ 包; 新增 vision/ragflow_ingestion/neo4j 客户端与 h5_ai_task; alembic 045 图置信度迁移; 响应契约统一收尾。
This commit is contained in:
Simon
2026-07-09 11:47:16 +08:00
parent f5374fce9b
commit ead5f83bee
39 changed files with 5276 additions and 545 deletions
+16
View File
@@ -47,6 +47,8 @@ pydantic-settings==2.3.4
# --------------------------------------------------------------------------
# httpx: 异步 HTTP 客户端,用于调用企微 API(替代同步的 requests
httpx==0.27.0
# tenacity: 外部调用指数退避重试(自动化引擎 BaseClient 使用,可选降级)
tenacity>=8.2.0
# --------------------------------------------------------------------------
# 加密
@@ -89,3 +91,17 @@ pillow==10.4.0
# --------------------------------------------------------------------------
# psutil: 系统监控(用于 /metrics 端点)
psutil==5.9.8
# --------------------------------------------------------------------------
# 图数据库(知识图谱)
# --------------------------------------------------------------------------
# neo4j: Neo4j 官方异步驱动(bolt 协议,支持 async/await,与 FastAPI 生态匹配)
neo4j>=5.26.0
# --------------------------------------------------------------------------
# 测试(仅测试环境)
# --------------------------------------------------------------------------
# testcontainers: Neo4j 测试容器(CI 本地模拟 Neo4j 图数据库)
testcontainers[neo4j]>=4.0.0
# pytest-asyncio: 异步测试 fixture(已有,显式声明最低版本)
pytest-asyncio>=0.23.0