Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
189 commits
Select commit Hold shift + click to select a range
cb5e4c1
修复某些提问导致rerank张量扩展大小不匹配的问题
xldistance Jun 26, 2024
3e5e7b7
Merge branch 'reranker' into patch-5
hzg0601 Jul 11, 2024
08ab467
Merge pull request #4331 from xldistance/patch-5
hzg0601 Jul 11, 2024
95e0e9a
Merge remote-tracking branch 'origin/dev' into reranker
hzg0601 Jul 12, 2024
a8c36dd
add reranker api and rerank request
hzg0601 Jul 12, 2024
126e2a2
单元测试
glide-the Jul 12, 2024
c8ef4dc
Merge branch 'master' into dev
glide-the Jul 12, 2024
0f40803
fix: system message of webui not work (#4491)
liunux4odoo Jul 13, 2024
15243be
fix: support api proxy in model_settings (#4492)
liunux4odoo Jul 13, 2024
2359342
Merge branch 'master' into dev
imClumsyPanda Jul 13, 2024
4cef6d9
merge master and update version
imClumsyPanda Jul 13, 2024
c611925
start_models_emb.sh
glide-the Jul 13, 2024
9750493
start_chatchat.sh
glide-the Jul 13, 2024
0936789
remove vqa_processor & aqa_processor tools (#4498)
liunux4odoo Jul 13, 2024
9715cc5
fix: KeyError of 'template' (#4501)
liunux4odoo Jul 13, 2024
efe5d4b
给定一个默认可用的 searx 服务器 (#4504)
liunux4odoo Jul 14, 2024
61ab4d0
start_chatchat.sh
glide-the Jul 14, 2024
06949a8
fix xinference-client connection error when chatchat init
imClumsyPanda Jul 14, 2024
3601a13
update pypi readme
liunux4odoo Jul 14, 2024
808aaf1
初始提交
zqtgit Jul 14, 2024
603a5b8
初始提交
zqtgit Jul 14, 2024
591d7fe
Merge branch 'panda-fix' into panda-dev
liunux4odoo Jul 15, 2024
a853f87
- xinference 自动检测模型使用缓存,提高 UI 响应速度 (#4510)
liunux4odoo Jul 15, 2024
80f5d19
fix error in readme
liunux4odoo Jul 15, 2024
1576a51
Feat/docker update to 0.3.1.1 (#4511)
yuehua-s Jul 15, 2024
9c77e9f
update docker in readme
liunux4odoo Jul 15, 2024
c408bee
fix readme error
liunux4odoo Jul 15, 2024
9ee530a
wrong files uploaded
liunux4odoo Jul 15, 2024
f36efb7
fix: duplicated logs in chatchat.log (#4517)
liunux4odoo Jul 15, 2024
f78dbfa
fix: nltk data path was not set correctlly (#4523)
liunux4odoo Jul 15, 2024
db4ff9d
初始提交
zqtgit Jul 15, 2024
cd26a16
初始提交
zqtgit Jul 15, 2024
f1cb0f6
Merge remote-tracking branch 'origin/dev' into dev-sdk
zqtgit Jul 15, 2024
b50d636
Merge branch 'panda-fix' into panda-dev
liunux4odoo Jul 15, 2024
e4b3d7d
优化错误信息的传递和前端显示 (#4531)
liunux4odoo Jul 16, 2024
268b379
- 修正 openai.chat.completions.create 参数构造方式,提高兼容性 (close #4533) (#4540)
liunux4odoo Jul 16, 2024
e306b07
Fix bug of ChromaDB Collection tas retriever
kwunhang Jul 16, 2024
1a90e3d
初始提交
zqtgit Jul 17, 2024
960cda3
Merge remote-tracking branch 'origin/dev' into dev-sdk
zqtgit Jul 17, 2024
c49c53a
新增URL内容阅读器:通过jina-ai/reader项目,将url内容处理为llm易于理解的文本形式 (#4547)
ganwumeng Jul 17, 2024
b7ec6dd
fix: langchain 版本升级后,DocumentWithVsId 出现 id 重复问题 (#4548)
liunux4odoo Jul 17, 2024
05142cf
fix: 重建知识库时只处理了一个知识库 (#4549)
liunux4odoo Jul 17, 2024
7bcc55e
优化qwen模型下对tools的json修复成功率 (#4554)
ganwumeng Jul 17, 2024
9d25e36
Merge branch 'panda-fix' into panda-dev
liunux4odoo Jul 18, 2024
b058939
fix: indent error in webui (close #4556)
liunux4odoo Jul 18, 2024
38c6fca
初始提交
zqtgit Jul 18, 2024
37e9593
Merge remote-tracking branch 'origin/dev' into dev-sdk
zqtgit Jul 18, 2024
14379fa
fix: docker image version error in readme
liunux4odoo Jul 18, 2024
b3a06b7
Merge branch 'panda-fix' into panda-dev
liunux4odoo Jul 18, 2024
1a3b8f7
fix: chat api error because openapi set max_tokens to 0 by default (#…
liunux4odoo Jul 18, 2024
60e0231
初始提交
zqtgit Jul 18, 2024
c21faf7
Fix Milvus retriever NotImplementedError (#4536)
kwunhang Jul 18, 2024
55b50a5
- 新功能: (#4567)
liunux4odoo Jul 18, 2024
86e2e03
Merge remote-tracking branch 'origin/dev' into dev-sdk
zqtgit Jul 18, 2024
5454900
初始提交
zqtgit Jul 18, 2024
ff08339
Merge pull request #4541 from kwunhang/chatchat_dev_chroma_pr
zqt996 Jul 19, 2024
179b50a
初始提交
zqtgit Jul 19, 2024
e2cd823
Merge remote-tracking branch 'origin/dev' into dev-sdk
zqtgit Jul 19, 2024
fb046ad
初始提交
zqtgit Jul 19, 2024
54abde5
Merge branch 'panda-master' into panda-dev
liunux4odoo Jul 19, 2024
b44dc60
update docs
liunux4odoo Jul 19, 2024
250359d
初始提交
zqtgit Jul 19, 2024
11341ab
Merge remote-tracking branch 'origin/dev-sdk' into dev
zqtgit Jul 19, 2024
9cbb3c5
- 升级 langchain 及周边到最新版
liunux4odoo Jul 20, 2024
333cf6e
添加py-sdk文档和测试用例
zqtgit Jul 20, 2024
e4c1337
Merge remote-tracking branch 'origin/dev' into dev
zqtgit Jul 20, 2024
4925957
langgraph实现RAG
glide-the Jul 23, 2024
0c3224f
fix: 多线程并发 chat 接口测试
liunux4odoo Jul 24, 2024
6841263
Merge remote-tracking branch 'origin/dev' into reranker
hzg0601 Jul 24, 2024
816e87d
add reranker_router
hzg0601 Jul 24, 2024
a5cc46f
add reranker after retrieve
hzg0601 Jul 25, 2024
e04a879
debug reranker
hzg0601 Jul 25, 2024
80c6624
temporarily debug reranker: the key error lies in file_rag/retriever/…
hzg0601 Jul 25, 2024
5cd19d9
修改知识库匹配相关度阈值默认值
zqtgit Jul 25, 2024
af3a8b0
add kb_doc_api test
imClumsyPanda Jul 27, 2024
768b1e8
Merge branch 'panda-master' into panda-dev
liunux4odoo Jul 27, 2024
3c61c51
update version
imClumsyPanda Jul 27, 2024
f76c1d5
删除多余目录
zqtgit Jul 27, 2024
a2005c1
remove use_reranker in kb service
hzg0601 Jul 27, 2024
1c25f77
修复:reranker 接口死锁
liunux4odoo Jul 27, 2024
8788773
feat:graph agent
yuehua-s Jul 31, 2024
8d217a4
feat:graph agent
yuehua-s Jul 31, 2024
c748200
add kb_doc_api test case and update poetry dependencies
imClumsyPanda Aug 1, 2024
6219e03
Merge remote-tracking branch 'origin/reranker' into dev
hzg0601 Aug 1, 2024
74448b7
feat:graph agent
yuehua-s Aug 2, 2024
c50c29d
feat:graph agent
yuehua-s Aug 2, 2024
be05201
feat:graph agent
yuehua-s Aug 2, 2024
34bd667
feat:graph agent
yuehua-s Aug 2, 2024
0f4ed08
feat:graph agent
yuehua-s Aug 2, 2024
09f333c
Merge branch 'master' of https://github.com/chatchat-space/Langchain-…
yuehua-s Aug 2, 2024
61faa74
feat:graph agent
yuehua-s Aug 2, 2024
dc023c4
feat:graph agent
yuehua-s Aug 4, 2024
6fc0007
feat:graph agent
yuehua-s Aug 4, 2024
4c5f446
feat:graph agent
yuehua-s Aug 4, 2024
9651da0
feat:graph agent
yuehua-s Aug 5, 2024
ba4ea42
fix: milvus RPC error
utopia2077 Aug 5, 2024
f19e7b4
feat:graph agent
yuehua-s Aug 5, 2024
45d537a
feat:graph agent
yuehua-s Aug 5, 2024
53a7c12
feat:graph agent
yuehua-s Aug 5, 2024
4e2fc54
feat:graph agent
yuehua-s Aug 5, 2024
b0e89e9
feat:graph agent
yuehua-s Aug 5, 2024
c956a3d
feat:graph agent
yuehua-s Aug 7, 2024
fba40ba
feat:graph agent
yuehua-s Aug 7, 2024
0783ebd
feat:graph agent
yuehua-s Aug 7, 2024
7676f2e
feat:graph agent
yuehua-s Aug 8, 2024
08731ee
feat:graph agent
yuehua-s Aug 9, 2024
ad766f3
feat:graph agent
yuehua-s Aug 9, 2024
b9567ed
feat:graph agent
yuehua-s Aug 9, 2024
56ef1b2
feat:graph agent
yuehua-s Aug 11, 2024
9a69901
feat:graph agent
yuehua-s Aug 11, 2024
ba37024
Merge branch 'master' of https://github.com/chatchat-space/Langchain-…
yuehua-s Aug 11, 2024
f063894
feat:graph agent
yuehua-s Aug 11, 2024
9e1e75d
feat:graph agent
yuehua-s Aug 11, 2024
981005a
- 添加单独的 graph router 和 graph chat 接口(后续考虑添加单独的graph webui)
liunux4odoo Aug 12, 2024
4cba556
feat:graph agent
yuehua-s Aug 12, 2024
555d4e8
feat:graph agent
yuehua-s Aug 12, 2024
4dd40cd
feat:前端增加 选择graph 窗口.
yuehua-s Aug 15, 2024
07ba4c6
Feature/agentgraph (#4717)
yuehua-s Aug 15, 2024
3e5a40d
fix:修复了依赖配置.
yuehua-s Aug 15, 2024
b2b2cb9
fix:修复了依赖配置.
yuehua-s Aug 15, 2024
07617dc
Merge pull request #4821 from chatchat-space/feature/agentgraph
yuehua-s Aug 15, 2024
8c53289
feat:优化了 graph agent 聊天前端展示.
yuehua-s Aug 16, 2024
4d26fa8
feat:结构化了 graph chat 接口返回及前端展示.
yuehua-s Aug 18, 2024
e9bda3e
feat:graph chat UI 流式输出.
yuehua-s Aug 18, 2024
38eccab
feat:前端展示 node 最终结果为 json
yuehua-s Aug 19, 2024
5cbe7c5
Merge pull request #4835 from chatchat-space/feature/graph_chat_fornt…
yuehua-s Aug 19, 2024
a836f70
style: unify name of api_server/routes
hzg0601 Aug 20, 2024
1293822
feat:plan-and-execute
yuehua-s Aug 22, 2024
2c19654
fix:arxiv() got an unexpected keyword argument 'title'
yuehua-s Aug 22, 2024
bdb161e
Merge pull request #4852 from chatchat-space/fix/arxiv_tool
yuehua-s Aug 23, 2024
4d24f5e
Merge branch 'dev' of https://github.com/chatchat-space/Langchain-Cha…
yuehua-s Aug 23, 2024
126bc4b
feat: add tavily search (#4853)
qiankunli Aug 23, 2024
9b5a5a4
feat:plan-and-execute support history and history_len.
yuehua-s Aug 26, 2024
a94bd17
Merge branch 'dev' of https://github.com/chatchat-space/Langchain-Cha…
yuehua-s Aug 26, 2024
7a32095
feat: adaptively select relevance docs by self-criticize
hzg0601 Aug 28, 2024
ab4facc
feat: adaptively select relevance docs by self-criticize
hzg0601 Aug 28, 2024
9cfbb42
delete test codes
hzg0601 Aug 28, 2024
4c06975
delete test codes
hzg0601 Aug 28, 2024
ff19c96
feat: add a gate to adaptively select relevance docs
hzg0601 Aug 28, 2024
a1a637b
delete test codes
hzg0601 Aug 28, 2024
768d4a3
feat:1.完善plan-and-execute;2.将base_graph和plan-and-execute的部分公共逻辑抽取出来.
yuehua-s Aug 29, 2024
b537a80
Merge branch 'dev' of https://github.com/chatchat-space/Langchain-Cha…
yuehua-s Aug 29, 2024
e77f44e
fix: The top_k value of the retriever cannot be specified
hzg0601 Aug 29, 2024
9ffc570
feat:将history_manager提取出来.
yuehua-s Aug 29, 2024
ab3bfb0
Merge branch 'dev' of https://github.com/chatchat-space/Langchain-Cha…
yuehua-s Aug 29, 2024
02f0fbe
feat: filter evidence with self-verification
hzg0601 Aug 29, 2024
93e0371
modify some notes
hzg0601 Aug 29, 2024
690a15b
feat:tool_setting.RECURSION_LIMIT
yuehua-s Aug 29, 2024
a7c8234
Merge branch 'dev' of https://github.com/chatchat-space/Langchain-Cha…
yuehua-s Aug 29, 2024
4b0927f
Merge pull request #4883 from chatchat-space/feature/plan-and-execute
yuehua-s Aug 29, 2024
dbc94f6
feat:add graph_chat api doc.
yuehua-s Aug 30, 2024
880ca1b
Merge pull request #4887 from chatchat-space/feat/graph-agent-doc
yuehua-s Aug 30, 2024
b6a0ac7
update prompt of self-verify
hzg0601 Aug 30, 2024
459a6f9
Merge branch 'dev' of github.com:chatchat-space/Langchain-Chatchat in…
hzg0601 Aug 30, 2024
d1257fb
feat: support context length up to 32768 in webui
hzg0601 Aug 30, 2024
397dae1
feat:update tavily
yuehua-s Aug 30, 2024
bd2a577
Merge branch 'dev' of https://github.com/chatchat-space/Langchain-Cha…
yuehua-s Aug 30, 2024
7e7b4b3
Merge pull request #4891 from chatchat-space/feature/tavily-search-tool
yuehua-s Aug 30, 2024
a76c40f
feat: add self_verify_evidence_one_call to support self-verify by onl…
hzg0601 Aug 31, 2024
c4de865
debug: set zh as default langugage in self-verify-evidence
hzg0601 Aug 31, 2024
7cc9551
Merge pull request #4678 from utopia2077/master
hzg0601 Aug 31, 2024
0df8d81
fix type hint
imClumsyPanda Sep 1, 2024
961d1c4
feat:初步将 reflexion 合并进 chatchat.
yuehua-s Sep 1, 2024
36906fe
Update test_kb_chat.py
hzg0601 Sep 2, 2024
d213bfb
Fixed [BUG] 无法加载EPUB和MSG文件到知识库 #4895. (#4907)
flywhc Sep 3, 2024
91a7cc6
feat:reflexion
yuehua-s Sep 4, 2024
11041bb
Merge branch 'dev' of https://github.com/chatchat-space/Langchain-Cha…
yuehua-s Sep 4, 2024
f7c717c
feat:reflexion
yuehua-s Sep 4, 2024
a5a282f
fix: on_tool_end's output is not a str hence cannot be serialized
hzg0601 Sep 5, 2024
dd8f770
Merge branch 'dev' of github.com:chatchat-space/Langchain-Chatchat in…
hzg0601 Sep 6, 2024
043e74c
feat:Reflexion
yuehua-s Sep 6, 2024
32faab0
Merge branch 'dev' of https://github.com/chatchat-space/Langchain-Cha…
yuehua-s Sep 6, 2024
11eae90
feat:Reflexion
yuehua-s Sep 6, 2024
c259bc3
Merge pull request #4919 from chatchat-space/feature/reflexion
yuehua-s Sep 6, 2024
b23826d
feat:针对 reflexion agent 的 prompt 进行了, 优化了工作流效果和各 node 返回的 struct 的稳定性.
yuehua-s Sep 6, 2024
5e46848
Merge pull request #4921 from chatchat-space/feature/graph_optimization
yuehua-s Sep 6, 2024
d5dc339
fix:修复了 plan_and_execute 错误.
yuehua-s Sep 7, 2024
6395b9b
Merge pull request #4923 from chatchat-space/feature/graph_optimization
yuehua-s Sep 7, 2024
3ec46b7
fix:1.修复了'URL内容阅读'工具的错误(ValueError: Caught exception: Timeout value c…
yuehua-s Sep 7, 2024
1d6ebd7
1. feat: return filtered source documents in kb_chat.kb_chat;2. fix t…
hzg0601 Sep 9, 2024
4396d8e
Merge branch 'dev' of github.com:chatchat-space/Langchain-Chatchat in…
hzg0601 Sep 9, 2024
db76d6d
update doc_filtered
hzg0601 Sep 9, 2024
8414ccb
update web_pages.kb-chat to support self-verify
hzg0601 Sep 13, 2024
28b8dcc
fix:fix the self-verify in chat.kb_chat
hzg0601 Sep 13, 2024
16fe4c2
support streamlit-markdown (#4971)
liunux4odoo Sep 25, 2024
899b455
add sqlite as stores supporting vector & bm25 search (#4976)
liunux4odoo Sep 29, 2024
e842a0a
fix: chroma error when clear_vs
liunux4odoo Sep 30, 2024
02c7de6
Merge pull request #4985 from liunux4odoo/fix
liunux4odoo Sep 30, 2024
fa27d92
- change cache ttl of detect_xf_models to 10 to avoid `model not foun…
liunux4odoo Oct 15, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 40 additions & 1 deletion docs/contributing/api.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
- 使用 Agent 功能时,`stream` 参数必须指定为 `True`。因为 Agent 是分步执行的,必须通过 SSE 把每个步骤逐一输出。注意:此时 SSE 的单元是执行步骤,LLM 的输出是非流式的。

调用示例:
- LLM 对话:
- LLM 对话:
```python3
base_url = "http://127.0.0.1:7861/chat"
data = {
Expand Down Expand Up @@ -108,6 +108,7 @@
```
- Agent 对话
以下示例仅展示使用 `requests` 的情况,可以自行尝试使用 `openai sdk` 进行请求,参数和输出内容是一样的。
- langchain agent 对话示例:
```python3
base_url = "http://127.0.0.1:7861/chat"
tools = list(requests.get(f"http://127.0.0.1:7861/tools").json()["data"])
Expand Down Expand Up @@ -158,6 +159,44 @@
AUDIO = 3
VIDEO = 4
```
- langgraph agent 对话示例:
```python3
base_url = "http://127.0.0.1:7861/chat"
tools = list(requests.get(f"http://127.0.0.1:7861/tools").json()["data"])
data = {
"messages": [
{'role': 'user', 'content': 'The youtube video of Xiao Yixian in Fights Break Sphere?'},
],
"model": "gpt-4o", # 必填, 部分模型推理能力有限, 可能无法实现较复杂的推理过程, 如有条件请尽量选在线 api.
"tools": tools, # 必填, agent 可使用 tools.
"stream": False, # 可选, 默认为 False,
# 原因: 部分模型推理平台在"不使用 vllm 启动 llm 时"的场景下不支持 "stream = Ture".
# 为考虑兼容性, 默认为 False, 使用在线 API 或满足条件的用户可设置为 True.
"temperature": 0.01, # 可选, 但为保障大部分用户使用体验, 代码中优先指定为 `LLM_MODEL_CONFIG.action_model.temperature`,
# 即 0.0.1, 硬性需求接口传入 temperature 的开发者请查看 graph_chat._create_agent_models.
"graph": "base_graph", # 必填, 用来启动 graph agent, 且指定 agent 使用的 graph 流程, 目前支持: base_graph 和 plan_and_execute.
"conversation_id": 1, # 必填, checkpoint 以 conversation_id 为纬度记录历史上下文.
}

import requests
response = requests.post(f"{base_url}/chat/completions", json=data, stream=True)
for line in response.iter_content(None, decode_unicode=True):
print(line)
```
```shell
stream = True
# 输出:
data: {"id": "chataae129d2-2832-4895-941f-9debfbb60c39", "object": "chat.completion.chunk", "model": "gpt-4o-mini", "created": 1723472598, "status": 5, "message_type": 1, "message_id": "6505a824f2864c79b3d93b70ef588d8d", "is_ref": false, "choices": [{"delta": {"content": "node: human \ncontent: The youtube video of Xiao Yixian in Fights Break Sphere? \n", "tool_calls": []}, "role": "assistant"}]}
data: {"id": "chat1c7b1c90-778c-49e2-aa3f-60b38464a6bb", "object": "chat.completion.chunk", "model": "gpt-4o-mini", "created": 1723472598, "status": 5, "message_type": 1, "message_id": "6505a824f2864c79b3d93b70ef588d8d", "is_ref": false, "choices": [{"delta": {"content": "node: human \ncontent: The youtube video of Xiao Yixian in Fights Break Sphere? \n", "tool_calls": []}, "role": "assistant"}]}
data: {"id": "chat6e7ca234-a6f3-441a-bbf0-d8decd9fa33e", "object": "chat.completion.chunk", "model": "gpt-4o-mini", "created": 1723472600, "status": 5, "message_type": 1, "message_id": "6505a824f2864c79b3d93b70ef588d8d", "is_ref": false, "choices": [{"delta": {"content": "node: ai \ncontent: tool_calls: \n - type: tool_call \n name: search_youtube \n args: {'query': 'Xiao Yixian Fights Break Sphere'} \n \n", "tool_calls": []}, "role": "assistant"}]}
data: {"id": "chat596297dc-ce38-4c57-9ac3-b7727069b4ce", "object": "chat.completion.chunk", "model": "gpt-4o-mini", "created": 1723472602, "status": 5, "message_type": 1, "message_id": "6505a824f2864c79b3d93b70ef588d8d", "is_ref": false, "choices": [{"delta": {"content": "node: tool \nname: search_youtube \ncontent: ['https://www.youtube.com/watch?v=em-VpMhQcZs&pp=ygUfWGlhbyBZaXhpYW4gRmlnaHRzIEJyZWFrIFNwaGVyZQ%3D%3D', 'https://www.youtube.com/watch?v=bqV-5qKtdTQ&pp=ygUfWGlhbyBZaXhpYW4gRmlnaHRzIEJyZWFrIFNwaGVyZQ%3D%3D'] \n", "tool_calls": []}, "role": "assistant"}]}
data: {"id": "chat27c1317b-14de-48c6-88ed-e9c15f27206e", "object": "chat.completion.chunk", "model": "gpt-4o-mini", "created": 1723472605, "status": 5, "message_type": 1, "message_id": "6505a824f2864c79b3d93b70ef588d8d", "is_ref": false, "choices": [{"delta": {"content": "node: ai \ncontent: Here are some YouTube videos featuring Xiao Yixian in \"Fights Break Sphere\":\n\n1. [Xiao Yixian in Fights Break Sphere - Video 1](https://www.youtube.com/watch?v=em-VpMhQcZs&pp=ygUfWGlhbyBZaXhpYW4gRmlnaHRzIEJyZWFrIFNwaGVyZQ%3D%3D)\n2. [Xiao Yixian in Fights Break Sphere - Video 2](https://www.youtube.com/watch?v=bqV-5qKtdTQ&pp=ygUfWGlhbyBZaXhpYW4gRmlnaHRzIEJyZWFrIFNwaGVyZQ%3D%3D)\n\nFeel free to check them out! \n", "tool_calls": []}, "role": "assistant"}]}
```
```shell
stream = False
# 输出:
{"id":"chat3609a5e1-fadd-4bc4-8280-4b3d8fb2c86e","object":"chat.completion","model":null,"created":null,"status":5,"message_type":1,"message_id":"3be4e0db8eed4747af6b5c647fcd7891","is_ref":false,"choices":[{"message":{"role":"assistant","content":"node: human \ncontent: The youtube video of Xiao Yixian in Fights Break Sphere? \nnode: human \ncontent: The youtube video of Xiao Yixian in Fights Break Sphere? \nnode: ai \ncontent: tool_calls: \n - type: tool_call \n name: search_youtube \n args: {'query': 'Xiao Yixian Fights Break Sphere'} \n \nnode: tool \nname: search_youtube \ncontent: ['https://www.youtube.com/watch?v=em-VpMhQcZs&pp=ygUfWGlhbyBZaXhpYW4gRmlnaHRzIEJyZWFrIFNwaGVyZQ%3D%3D', 'https://www.youtube.com/watch?v=AAE3tXMQ2Vo&pp=ygUfWGlhbyBZaXhpYW4gRmlnaHRzIEJyZWFrIFNwaGVyZQ%3D%3D'] \n","finish_reason":"stop","tool_calls":[]}}]}
```
- 知识库对话(LLM 自动解析参数)
直接指定 `tool_choice` 为 `"search_local_knowledgebase"`工具即可使用知识库对话功能。其它工具对话类似。
```python3
Expand Down
Loading