灵犀智购 · 多 Agent 客服架构

灵犀智购 · 多 Agent 客服架构 A architecture diagram generated by Archify. 用户 · 多轮业务咨询 · Architecture component 用户 多轮业务咨询 Vue 3 客户端 · 登录 · 会话 · SSE 增量渲染 · Architecture component Vue 3 客户端 登录 · 会话 · SSE 增量渲染 FastAPI · POST /api/langgraph/query · SSE · Architecture component FastAPI POST /api/langgraph/query · SSE LangGraph Supervisor · 分类 · 拆解 · 合并 · 回复 · Architecture component · Send 并行调度 LangGraph Supervisor 分类 · 拆解 · 合并 · 回复 Send 并行调度 4 个 ReAct Worker · 产品 · 订单 · 售后 · 闲聊 · Architecture component · 并行执行 4 个 ReAct Worker 产品 · 订单 · 售后 · 闲聊 并行执行 工具注册与执行层 · 检索 · 对比 · 推荐 · 订单 · FAQ · Architecture component · 8 项工具 工具注册与执行层 检索 · 对比 · 推荐 · 订单 · FAQ 8 项工具 三档模型服务 · DeepSeek · GPT tool · GPT reason · Architecture component 三档模型服务 DeepSeek · GPT tool · GPT reason Milvus · 产品向量 · bge-m3 1024 维 · Architecture component Milvus 产品向量 · bge-m3 1024 维 分段记忆服务 · 滑窗 · 摘要 · Worker 槽位 · 画像 · Architecture component 分段记忆服务 滑窗 · 摘要 · Worker 槽位 · 画像 MySQL 8 · 用户 · 会话 · 消息 · 话题段 · 槽位 · Architecture component MySQL 8 用户 · 会话 · 消息 · 话题段 · 槽位 Neo4j 5 · 产品 · 订单 · FAQ 知识图谱 · Architecture component Neo4j 5 产品 · 订单 · FAQ 知识图谱 POST + SSE Send 并行 ReAct 调用 分层推理 语义检索 图查询 读写上下文 持久化 Legend 前端 应用服务 数据存储 外部参与者与模型

编排主线

  • • Supervisor 先分类,必要时拆成多个子任务
  • • LangGraph Send 并行启动专业 Worker,完成后统一合并

数据职责

  • • Milvus 负责产品向量召回,Neo4j 负责产品关系、订单和 FAQ
  • • Milvus 或 embedding 不可用时,语义搜索与推荐工具不注册

会话连续性

  • • MySQL 自管消息、摘要、话题段和按 Worker 隔离的槽位
  • • 图本身未挂 checkpointer,不能误画成 SQLite checkpoint 架构