📝 修复 rag/README.md 里的过时引用
All checks were successful
构建并部署 AI Agent 服务 / deploy (push) Successful in 5m42s
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:
@@ -321,14 +321,13 @@ def search_knowledge_base(query: str) -> str:
|
|||||||
### 绑定到 LangGraph
|
### 绑定到 LangGraph
|
||||||
|
|
||||||
```python
|
```python
|
||||||
from app.graph.graph_builder import GraphBuilder
|
from app.main_graph.utils.main_graph_builder import build_react_main_graph
|
||||||
|
|
||||||
# 将 RAG 工具添加到工具列表
|
# 将 RAG 工具添加到工具列表
|
||||||
tools = AVAILABLE_TOOLS + [search_knowledge_base]
|
tools = AVAILABLE_TOOLS + [search_knowledge_base]
|
||||||
|
|
||||||
# 构建图
|
# 构建图
|
||||||
builder = GraphBuilder(llm, tools, tools_by_name)
|
graph = build_react_main_graph(llm, tools).compile(checkpointer=checkpointer)
|
||||||
graph = builder.build().compile(checkpointer=checkpointer)
|
|
||||||
```
|
```
|
||||||
|
|
||||||
## ⚙️ 环境配置
|
## ⚙️ 环境配置
|
||||||
|
|||||||
Reference in New Issue
Block a user