📝 修复 rag/README.md 里的过时引用
All checks were successful
构建并部署 AI Agent 服务 / deploy (push) Successful in 5m42s

- 从 app.graph.graph_builder 改为 app.main_graph.utils.main_graph_builder
This commit is contained in:
2026-05-03 17:22:25 +08:00
parent 80cda1362a
commit a9451681f6

View File

@@ -321,14 +321,13 @@ def search_knowledge_base(query: str) -> str:
### 绑定到 LangGraph
```python
from app.graph.graph_builder import GraphBuilder
from app.main_graph.utils.main_graph_builder import build_react_main_graph
# 将 RAG 工具添加到工具列表
tools = AVAILABLE_TOOLS + [search_knowledge_base]
# 构建图
builder = GraphBuilder(llm, tools, tools_by_name)
graph = builder.build().compile(checkpointer=checkpointer)
graph = build_react_main_graph(llm, tools).compile(checkpointer=checkpointer)
```
## ⚙️ 环境配置