Commit Graph

119 Commits

Author SHA1 Message Date
492f5c1131 更新 README:移除不存在的 research 子图引用,更新资讯分析子图功能描述
All checks were successful
构建并部署 AI Agent 服务 / deploy (push) Successful in 6m26s
2026-04-29 22:38:39 +08:00
aad7cb9829 修复嵌入服务,使用自定义 ZhipuAI 嵌入实现
All checks were successful
构建并部署 AI Agent 服务 / deploy (push) Successful in 13m44s
2026-04-29 22:08:47 +08:00
8bc5f3cbb5 临时修改:用内存 checkpoint 测试后端
All checks were successful
构建并部署 AI Agent 服务 / deploy (push) Successful in 6m22s
2026-04-29 19:20:34 +08:00
81f48c8467 修复 contact/api_client.py 的导入,从 .state 而不是 app.main_graph.state
Some checks failed
构建并部署 AI Agent 服务 / deploy (push) Has been cancelled
2026-04-29 19:16:21 +08:00
930139e454 修复 app/core/__init__.py 的导入,从 intent_classifier.py 获取正确的类
Some checks failed
构建并部署 AI Agent 服务 / deploy (push) Has been cancelled
2026-04-29 19:12:27 +08:00
2f83aca2c0 修复 StateBase -> BaseState 的导入名称
Some checks failed
构建并部署 AI Agent 服务 / deploy (push) Has been cancelled
2026-04-29 19:10:24 +08:00
a1d51fb1ce 更新 app/core/__init__.py 导出所有核心模块
Some checks failed
构建并部署 AI Agent 服务 / deploy (push) Has been cancelled
2026-04-29 19:08:16 +08:00
fd888e3b90 修复子图中 common/intent 等模块的导入路径(已移至 app/core)
Some checks failed
构建并部署 AI Agent 服务 / deploy (push) Has been cancelled
2026-04-29 19:06:19 +08:00
4132b7d23b 修复子图中 state 的导入路径
Some checks failed
构建并部署 AI Agent 服务 / deploy (push) Has been cancelled
2026-04-29 19:04:56 +08:00
ad791abfcd 修复所有子图 __init__.py 中的导入路径
Some checks failed
构建并部署 AI Agent 服务 / deploy (push) Has been cancelled
2026-04-29 19:03:14 +08:00
0b63f93891 修复 AsyncPostgresSaver 导入路径,直接从 langgraph 导入
Some checks failed
构建并部署 AI Agent 服务 / deploy (push) Has been cancelled
2026-04-29 19:00:57 +08:00
f27474e9f4 修复 app/__init__.py 中的 graph_tools 导入路径
Some checks failed
构建并部署 AI Agent 服务 / deploy (push) Has been cancelled
2026-04-29 18:59:01 +08:00
d6805d1db8 修复重构后的导入错误和缺失模块
Some checks failed
构建并部署 AI Agent 服务 / deploy (push) Failing after 6m26s
2026-04-29 17:23:20 +08:00
862fef94dc fix: 修复Mermaid架构图语法错误
Some checks failed
构建并部署 AI Agent 服务 / deploy (push) Failing after 5m1s
2026-04-29 13:43:20 +08:00
f01dcf2e99 docs: 删除旧功能描述,更新架构图
Some checks failed
构建并部署 AI Agent 服务 / deploy (push) Failing after 4m43s
2026-04-29 13:29:31 +08:00
dc26771614 docs: 更新目录结构文档,适配重构后的目录
Some checks failed
构建并部署 AI Agent 服务 / deploy (push) Failing after 11m7s
2026-04-29 13:04:10 +08:00
ef5113bffb refactor: 重构目录结构 - 简化层级
Some checks failed
构建并部署 AI Agent 服务 / deploy (push) Has been cancelled
2026-04-29 12:52:41 +08:00
223d1c9afd 优化memory、rag和embedding模块
Some checks failed
构建并部署 AI Agent 服务 / deploy (push) Failing after 5m5s
2026-04-29 10:52:01 +08:00
da4a7b0dd4 修复: ThreadHistoryService 初始化参数错误和 indentation 问题
Some checks failed
构建并部署 AI Agent 服务 / deploy (push) Failing after 4m50s
2026-04-27 18:16:37 +08:00
f274df6e3d 完成:词典和资讯 API 支持 async 和数据库缓存
All checks were successful
构建并部署 AI Agent 服务 / deploy (push) Successful in 5m44s
2026-04-27 17:37:07 +08:00
37ceb6c260 重构:通讯录子图支持 async 和 API 注入工厂模式
Some checks failed
构建并部署 AI Agent 服务 / deploy (push) Has been cancelled
2026-04-27 17:34:44 +08:00
5b12188d45 修复:PostgreSQL 语法适配 + UUID 自动生成
All checks were successful
构建并部署 AI Agent 服务 / deploy (push) Successful in 5m11s
2026-04-27 16:38:39 +08:00
29016f8792 统一 Repository 方案:添加 db 基类和子图模型 + 通讯录 API 支持真实数据库
Some checks failed
构建并部署 AI Agent 服务 / deploy (push) Has been cancelled
2026-04-27 16:37:45 +08:00
0cb9571db7 删除前端子图测试代码
All checks were successful
构建并部署 AI Agent 服务 / deploy (push) Successful in 21m29s
- 删除 sidebar.py 中的子图测试面板
- 删除 subgraph_panel.py 文件
- 删除 api_client.py 中的子图 API 调用代码
2026-04-27 15:31:52 +08:00
048f57a89f 集成三个子图到主Agent架构 + 修复前后端字段不匹配问题
Some checks failed
构建并部署 AI Agent 服务 / deploy (push) Has been cancelled
主要变更:
1. 创建 subgraph_tools.py - 将三个子图包装为 LangChain 工具
2. 更新 graph_tools.py - 删除旧工具,添加子图工具
3. 更新系统提示词 - 介绍三个子系统 + RAG 能力
4. 简化 backend.py - 删除独立子图 API 端点
5. 修复 service.py 字段名不匹配问题 - content -> token
6. 前端界面优化 - 移动子图测试到侧边栏、删除测试审核按钮
7. 添加 pyjwt 依赖到 requirements.txt
8. 更新 docker-compose.yml - 添加前端代码挂载
2026-04-27 15:23:50 +08:00
26f872f975 refactor: 重写 intent.py,使用真实 LLM 服务进行 React 模式推理
Some checks failed
构建并部署 AI Agent 服务 / deploy (push) Failing after 6m38s
- 重写 intent.py,整合 chat_services.py
- 支持 LLM 推理 + 规则降级策略
- 支持子图路由(contact/dictionary/news_analysis)
- 保持与现有 react_nodes.py 兼容
- 更新 react_nodes.py 以更好地处理新的接口
2026-04-26 23:27:22 +08:00
338fda188a fix: 修复 formatter.py 语法错误
Some checks failed
构建并部署 AI Agent 服务 / deploy (push) Failing after 6m22s
2026-04-26 23:20:57 +08:00
17c1fab41c fix: 修复导入错误 BaseReranker -> BaseRerankService
Some checks failed
构建并部署 AI Agent 服务 / deploy (push) Failing after 6m20s
2026-04-26 21:35:31 +08:00
5bf75459b8 feat: 集成混合路由快速路径和前端 SSE 事件支持
Some checks failed
构建并部署 AI Agent 服务 / deploy (push) Failing after 6m11s
2026-04-26 17:44:52 +08:00
87fb32a967 feat: 添加混合 Agent 路由架构
Some checks failed
构建并部署 AI Agent 服务 / deploy (push) Failing after 6m21s
2026-04-26 17:37:57 +08:00
7a769fab14 feat: 完善 SSE 事件类型,添加完整 React 组件支持思考过程、工具调用、人工审核
Some checks failed
构建并部署 AI Agent 服务 / deploy (push) Failing after 6m9s
2026-04-26 16:05:44 +08:00
92863e86dc feat: 添加 RAG 评估模块,支持召回率和相关性评估
Some checks failed
构建并部署 AI Agent 服务 / deploy (push) Failing after 6m13s
2026-04-26 15:39:05 +08:00
6404ea8c42 docs: 完善子图架构文档,添加详细流程图和主图关联
Some checks failed
构建并部署 AI Agent 服务 / deploy (push) Failing after 6m5s
2026-04-26 12:33:25 +08:00
b78aa63739 docs: 明确标注 React 模式在 LangGraph 工作流中的位置
Some checks failed
构建并部署 AI Agent 服务 / deploy (push) Failing after 6m17s
2026-04-26 12:23:09 +08:00
bdfa3fae45 docs: 更新主 README.md,添加模型服务层和子图系统说明
Some checks failed
构建并部署 AI Agent 服务 / deploy (push) Failing after 6m43s
2026-04-26 12:15:56 +08:00
ad345e635d docs: 更新 backend/app/README.md,按模块整理已实现功能
Some checks failed
构建并部署 AI Agent 服务 / deploy (push) Failing after 6m9s
2026-04-26 12:09:37 +08:00
534ee129c0 refactor: 将生成式大模型提取为服务层架构,移除 llm_factory
Some checks failed
构建并部署 AI Agent 服务 / deploy (push) Failing after 6m0s
2026-04-26 12:00:57 +08:00
f63c394fcd refactor: 重构 rerank 架构,分离服务层和业务逻辑
Some checks failed
构建并部署 AI Agent 服务 / deploy (push) Has been cancelled
- rerank_services.py:纯服务层,只负责调用 rerank server
- rag/rerank.py:业务逻辑层,负责文档处理、排序、top_n
- 更新 pipeline.py 使用新架构
- 架构与 embedding_services.py 保持一致
2026-04-26 11:57:42 +08:00
55c910bbe0 cleanup: 删除旧的 rag/reranker.py
Some checks failed
构建并部署 AI Agent 服务 / deploy (push) Failing after 6m52s
- rag/reranker.py 是旧代码,不再使用
- 现在使用 model_services/rerank_services.py 提供重排服务
- pipeline.py 已经通过 get_rerank_service() 使用服务层
2026-04-26 11:43:06 +08:00
5a67a77c95 refactor: 真正利用已有 RAG 代码重构 rag_nodes.py
Some checks failed
构建并部署 AI Agent 服务 / deploy (push) Failing after 6m3s
- 真正导入和使用 backend/app/rag/tools.py
- 添加全局 RAG 工具管理(get/set_global_rag_tool)
- 集成 RAGPipeline,支持多路查询和重排序
- 兼容 rag_initializer.py 的初始化方式
- 移除模拟实现,使用真正的 RAG 功能
2026-04-26 11:25:01 +08:00
aba261df35 refactor: 将 RAG 节点拆分为独立模块
Some checks failed
构建并部署 AI Agent 服务 / deploy (push) Has been cancelled
- 新增 rag_nodes.py: 独立的 RAG 检索节点
- 从 react_nodes.py 移除 RAG 相关代码
- 更新导入和导出
- rag_nodes.py 包含 rag_retrieve_node 和 rag_re_retrieve_node
- 添加 inject_rag_tool_to_state 工具函数
2026-04-26 11:23:12 +08:00
e3adb45454 feat: 实现 React 模式循环推理,带超时重试和结构化错误处理
Some checks failed
构建并部署 AI Agent 服务 / deploy (push) Failing after 6m15s
- 更新 intent.py 为 React 模式推理器
- 新增 react_nodes.py: React 模式节点
- 新增 retry_utils.py: 超时和重试工具
- 更新 state.py: 支持循环步数和错误记录
- 重写 subgraph_builder.py: 完整 React 循环流程
- 结构化错误输出,符合 Agent 执行循环最佳实践
- 限制最大推理步数 ≤40,防止无限循环
- RAG 检索带重试和超时保护
- 子图错误可传递给主图处理
2026-04-26 11:14:04 +08:00
e6337eb0fc feat: 完善子图,添加路由函数和审核节点
Some checks failed
构建并部署 AI Agent 服务 / deploy (push) Failing after 6m10s
2026-04-25 20:46:30 +08:00
d05a57948c refactor: 所有子图使用公共工具,避免重复造轮子
Some checks failed
构建并部署 AI Agent 服务 / deploy (push) Failing after 6m20s
2026-04-25 20:02:20 +08:00
3bc9b19bab feat: 添加子图API端点和前端测试面板,包含确定取消继续交互
Some checks failed
构建并部署 AI Agent 服务 / deploy (push) Failing after 6m3s
2026-04-25 19:38:22 +08:00
96dc01f8c2 feat: 完善通讯录子图,添加API调用工具和精美展示
Some checks failed
构建并部署 AI Agent 服务 / deploy (push) Failing after 6m37s
- 完善通讯录子图nodes.py:优化format_result的展示效果
- 创建通讯录子图API调用工具:api_client.py
- 更新通讯录子图__init__.py,导出所有模块和API客户端
- 所有功能已通过测试验证
2026-04-25 19:31:33 +08:00
b47c52c611 feat: 完善资讯子图,添加API调用工具和精美展示
Some checks failed
构建并部署 AI Agent 服务 / deploy (push) Failing after 6m4s
- 完善资讯子图nodes.py:优化format_result的展示效果
- 创建资讯子图API调用工具:api_client.py
- 更新资讯子图__init__.py,导出所有模块和API客户端
- 所有功能已通过测试验证
2026-04-25 18:47:09 +08:00
a14744f18b feat: 完善词典子图,添加API调用和前端格式化工具
Some checks failed
构建并部署 AI Agent 服务 / deploy (push) Failing after 6m5s
- 完善词典子图:添加生词本功能
- 创建API调用工具:dictionary_api
- 添加前端格式化展示工具:result_formatter.py
- 创建通讯录和资讯子图的基本结构
- 更新主图状态结构,添加MainGraphState
- 添加subgraph_builder.py用于子图集成
2026-04-25 18:29:23 +08:00
03ba825645 Merge branch 'main' of http://115.190.121.151:3000/root/ailine
Some checks failed
构建并部署 AI Agent 服务 / deploy (push) Failing after 6m49s
2026-04-25 15:22:49 +08:00
93b1f1b8ed docs: 恢复三大子图文档
- 恢复 contact/README.md
- 恢复 dictionary/README.md
- 恢复 research/README.md
- 恢复 agent_subgraphs/README.md
2026-04-25 13:47:15 +08:00