cherry官网下载_-Cherry Studio是如何联网的?一次详细的HTTP抓包分析与实现原理探究 - s language to rephrase the question
为了研究AI智能体或AI应用如何实现联网搜索,使用cherry studio提供的3种支持联网搜索进行抓包分析。
cherry studio提供的四种支持联网搜索方式分别是:
利用LLM API自带的联网搜索功能;使用网络搜索API提供的服务;使用本地搜索工具;
我将逐一使用四种联网搜索的方式进行AI对话,询问一个不需要联网搜索即可回答的问题”你是谁?“和一个需要联网搜索才能正确回答的问题”今天是几月几号?“。
自带联网功能的LLM API
OpenRouter的LLM 都具备联网搜索功能,在cherry studio配置OpenRouter 的DeepSeek,进行AI对话。首先,询问“你是谁?”。
cherry studio界面上的交互展示如下,从对话来看,LLM不需要联网即可回答问题。
【强子】
你是谁?
【deepseek/deepseek-v3.2 | OpenRouter_LLM中转服务器】
我是DeepSeek,由深度求索公司创造的AI助手!
我是一个纯文本模型,擅长回答各种问题、协助写作、分析信息、编程帮助等等。虽然我不支持多模态识别,但我可以处理你上传的图像、文档等文件,从中读取文字信息进行分析。
我的特点是:
- 完全免费使用,没有收费计划
- 支持128K的上下文长度
- 可以通过官方应用商店下载App使用
- 能够联网搜索(需要你手动开启联网功能)
你可以通过官方渠道获取最新信息。我很乐意帮助你解决各种问题,无论是学习、工作还是日常生活中的疑惑,我都会尽力提供详细的解答和支持!
有什么想了解或需要帮助的吗?✨
模型请求日志如下,可见请求很干净。
{
"model": "deepseek/deepseek-v3.2",
"temperature": 1,
"top_p": 1,
"messages": [
{
"role": "user",
"content": "你是谁?"
}
],
"stream": true,
"stream_options": {
"include_usage": true
}
}
模型返回是使用SSE流失数据结构,解析后的结果如下。由此可见,cherry studio用户界面上展示的内容,就是LLM返回的正文内容。
我是DeepSeek,由深度求索公司创造的AI助手!
我是一个纯文本模型,擅长回答各种问题、协助写作、分析信息、编程帮助等等。虽然我不支持多模态识别,但我可以处理你上传的图像、文档等文件,从中读取文字信息进行分析。
我的特点是:
- 完全免费使用,没有收费计划
- 支持128K的上下文长度
- 可以通过官方应用商店下载App使用
- 能够联网搜索(需要你手动开启联网功能)
你可以通过官方渠道获取最新信息。我很乐意帮助你解决各种问题,无论是学习、工作还是日常生活中的疑惑,我都会尽力提供详细的解答和支持!
有什么想了解或需要帮助的吗?✨
{
"id": "gen-1773142671-hTH03rVo7TGORRUw8AsU",
"object": "chat.completion.chunk",
"created": 1773142671,
"model": "deepseek/deepseek-v3.2-20251201",
"provider": "Novita",
"choices": [],
"usage": {
"prompt_tokens": 6,
"completion_tokens": 146,
"total_tokens": 152,
"cost": 0.000060014,
"is_byok": false,
"prompt_tokens_details": {
"cached_tokens": 0,
"cache_write_tokens": 0,
"audio_tokens": 0,
"video_tokens": 0
},
"cost_details": {
"upstream_inference_cost": 0.000060014,
"upstream_inference_prompt_cost": 0.000001614,
"upstream_inference_completions_cost": 0.0000584
},
"completion_tokens_details": {
"reasoning_tokens": 0,
"image_tokens": 0,
"audio_tokens": 0
}
}
}
为了避免上下文影响,新开一个会话,询问问题“今天几月几号?”
cherry studio界面上的交互展示如下,从对话来看,LLM回答包含了即时信息。
【强子】
今天是几月几号?
【deepseek/deepseek-v3.2 | OpenRouter_LLM中转服务器】
根据搜索结果,今天是 **2026年3月10日,星期二**。
详细日期信息如下:
* **公历(阳历)**:2026年3月10日,星期二。
* **农历(阴历)**:2026年(丙午年)正月廿二 [jintianjihao.com]
* **生肖**:马年
* **星座**:双鱼座
> 注:一个较早的搜索结果 [1](http://date.china6636.com/) 显示的日期有延迟,为2026年3月8日。最新信息以当前时间(2026年3月10日)及日历查询网站 [2](https://www.jintianjihao.com/) 为准。
【额外展示5条引用内容】
模型请求日志如下,可见请求很干净。
{
"model": "deepseek/deepseek-v3.2",
"temperature": 1,
"top_p": 1,
"messages": [{
"role": "user",
"content": "今天是几月几号?"
}],
"reasoning": {
"enabled": false,
"exclude": true
},
"plugins": [{
"id": "web",
"max_results": 5
}],
"stream": true
}
而模型的回复日志,则非常复杂。注意,为避免内容过长,日志稍作处理
更多心跳...
: OPENROUTER PROCESSING
: OPENROUTER PROCESSING
data: {"id":"gen-1773148795-ekPETE1MYTSIbRSCQllY","object":"chat.completion.chunk","created":1773148795,"model":"deepseek/deepseek-v3.2-20251201","provider":"SiliconFlow","choices":[{"index":0,"delta":{"content":"","role":"assistant","annotations":[{"type":"url_citation","url_citation":{"url":"https://zh.wikipedia.org/wiki/%E4%BB%8A%E5%A4%A9","title":"今天- 維基百科,自由的百科全書","start_index":0,"end_index":0,"content":"今日(en Today),又称今天, 現在時態,是正在经历的这一 地球日。今日是 明日之昨日,即明日之前一日;是 昨日之明日,即昨日之後一日(為後日之前日,為大後日之大前日)。\n\n今日( 世界協調時間)是公元[[年]]( 佛曆年、 道曆年、 民國年、 令和年)[[月日]][[]], 農曆 [[]]年[[月]]。\n\n在全球,今日介于-11 hours和+14 hours之间。 中国大陆、 香港、 澳門、 臺灣、 新加坡、 馬來西亞、 澳洲(西部)等国家与地区属于 UTC+8时区,今日是+8 hours。(更新)\n\n## 主題名言\n\n- 今朝有酒今朝醉,明日愁來明日愁。——《 自遣》唐詩\n- 今日事今日畢。\n- 《 今日歌》 文嘉 明\n- 今天不做,明天就會後悔。—— 蔣經國 民國\n\n## 歷史上的今日"}}]},"finish_reason":null,"native_finish_reason":null}]}
data: {"id":"gen-1773148795-ekPETE1MYTSIbRSCQllY","object":"chat.completion.chunk","created":1773148795,"model":"deepseek/deepseek-v3.2-20251201","provider":"SiliconFlow","choices":[{"index":0,"delta":{"content":"根据","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]}
: OPENROUTER PROCESSING
data: {"id":"gen-1773148795-ekPETE1MYTSIbRSCQllY","object":"chat.completion.chunk","created":1773148795,"model":"deepseek/deepseek-v3.2-20251201","provider":"SiliconFlow","choices":[{"index":0,"delta":{"content":"搜索结果","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]}
更多data...
首先,是SSE的心跳ping:`首先,是SSE的心跳ping:
然后,第一个SSE 片段是一个联网查询的内容,可以看到url、title、content等信息。
{
"id": "gen-1773148795-ekPETE1MYTSIbRSCQllY",
"object": "chat.completion.chunk",
"created": 1773148795,
"model": "deepseek/deepseek-v3.2-20251201",
"provider": "SiliconFlow",
"choices": [
{
"index": 0,
"delta": {
"content": "",
"role": "assistant",
"annotations": [
{
"type": "url_citation",
"url_citation": {
"url": "https://www.jintianjihao.com/",
"title": "今天是农历几月几日星期几_今天是什么日子_今天几号",
"start_index": 0,
"end_index": 0,
}
}
]
},
"finish_reason": null,
"native_finish_reason": null
}
]
}
从日志中,可以看到联网查询的内容结果,一共返回了5个,与上述内容相似,不再展开分析。这五条联网查询信息,正好就是cherry studio 界面上展示给用户的5条引用信息。
紧接着的SEE数据,是LLM的回复结果,将SSE数据处理后的内容展示如下:
根据搜索结果,今天是 **2026年3月10日,星期二**。
详细日期信息如下:
* **公历(阳历)**:2026年3月10日,星期二。
* **农历(阴历)**:2026年(丙午年)正月廿二 [jintianjihao.com]
* **生肖**:马年
* **星座**:双鱼座
> 注:一个较早的搜索结果 [date.china6636.com](http://date.china6636.com/) 显示的日期有延迟,为2026年3月8日。最新信息以当前时间(2026年3月10日)及日历查询网站 [jintianjihao.com](https://www.jintianjihao.com/) 为准。
这个内容与cherry studio界面上展示给用户的内容完全一致。
由此可以得出结论:自带联网功能的LLM API,它在模型返回时,会把回复内容 + 联网查询的相关引用信息,一并返回,Agent可以解析并作为依据展示给用户。
自带联网功能的LLM API,在回复联网查询的相关问题时,响应速度显著变慢。因此,可以猜测API提供商,仍然需要先联网查询知识,再将查询的知识 + 用户原始问题 给LLM,让其生成回复,并将回复 + 联网查询的知识,通过API返回给Agent(cherry studio)。
LLM + 联网搜索API
cherry studio支持使用API服务商提供联网搜索功能,于是我选择Tavily这家搜索API 进行测试。
首先,我询问“你是谁?”。cherry studio界面上的交互展示如下:
【强子】
你是谁?
【deepseek-chat | DeepSeek-LLM中转服务器】
你好!我是DeepSeek,由深度求索公司创造的AI助手!
我是一个纯文本模型,虽然不支持多模态识别功能,但我有文件上传功能,可以帮你处理图像、txt、pdf、ppt、word、excel等文件,并从中读取文字信息进行分析处理。我完全免费使用,拥有128K的上下文长度,还支持联网搜索功能(需要你在Web/App中手动点开联网搜索按键)。
你可以通过官方应用商店下载我的App来使用。我很乐意为你解答问题、协助处理各种任务,或者就是简单地聊聊天!
有什么我可以帮助你的吗?无论是学习、工作还是生活上的问题,我都很愿意为你提供帮助!✨
日志记录来看,本次交互发起了两次模型请求。第一次的模型请求日志如下,相比于自带联网功能的LLM API模型请求,这次请求不太干净。
{
"model": "deepseek-chat",
"messages": [
{
"role": "user",
"content": "\n You are an AI question rephraser. Your role is to rephrase follow-up queries from a conversation into standalone queries that can be used by another LLM to retrieve information through web search.\n **Use user's language to rephrase the question.**\n Follow these guidelines:\n 1. If the question is a simple writing task, greeting (e.g., Hi, Hello, How are you), or does not require searching for information (unless the greeting contains a follow-up question), return 'not_needed' in the 'question' XML block. This indicates that no search is required.\n 2. If the user asks a question related to a specific URL, PDF, or webpage, include the links in the 'links' XML block and the question in the 'question' XML block. If the request is to summarize content from a URL or PDF, return 'summarize' in the 'question' XML block and include the relevant links in the 'links' XML block.\n 3. For websearch, You need extract keywords into 'question' XML block.\n 4. Always return the rephrased question inside the 'question' XML block. If there are no links in the follow-up question, do not insert a 'links' XML block in your response.\n 5. Always wrap the rephrased question in the appropriate XML blocks: usefor queries requiring real-time or external information. Ensure that the rephrased question is always contained within ablock inside the wrapper.\n 6. *use websearch to rephrase the question*\n\n There are several examples attached for your reference inside the below 'examples' XML block.\n\n\n 1. Follow up question: What is the capital of France\n Rephrased question:`\n\n\n Capital of France\n \n \n `\n\n 2. Follow up question: Hi, how are you?\n Rephrased question:`\n\n\n not_needed\n \n \n `\n\n 3. Follow up question: What is Docker?\n Rephrased question: `\n\n\n What is Docker\n \n \n `\n\n 4. Follow up question: Can you tell me what is X from https://example.com\n Rephrased question: `\n\n\n What is X\n \n\n https://example.com\n \n \n `\n\n 5. Follow up question: Summarize the content from https://example1.com and https://example2.com\n Rephrased question: `\n\n\n summarize\n \n\n https://example1.com\n \n\n https://example2.com\n \n \n `\n\n 6. Follow up question: Based on websearch, Which company had higher revenue in 2022, \"Apple\" or \"Microsoft\"?\n Rephrased question: `\n\n\n Apple's revenue in 2022\n \n\n Microsoft's revenue in 2022\n \n \n `\n\n 7. Follow up question: Based on knowledge, Formula of Scaled Dot-Product Attention and Multi-Head Attention?\n Rephrased question: `\n\n\n not_needed\n \n \n `\n \n\n Anything below is part of the actual conversation. Use the conversation history and the follow-up question to rephrase the follow-up question as a standalone question based on the guidelines shared above.\n\n\n \n \n\n **Use user's language to rephrase the question.**\n Follow up question: 你是谁?\n\n Rephrased question:\n"
}
]
}
将content翻译成中文,可以看出这个是cherry studio揉了一大堆提示词 + 原始用户问题(“你是谁?”)组合成了最终的问题。这一堆提示词,是让LLM作为“搜索引擎前置处理器”,当用户提问时,先用这个提示词去判断这个问题需要上网去搜索吗?如果需要搜索,它负责把用户口语化表达或者模糊的上下文,改写成适合搜索引擎的关键词。
你是一个AI问题重述器。你的任务是将对话中的后续查询重述为独立的查询,以便另一个LLM能够通过网络搜索来检索信息。
**使用用户的语言来重述问题。**
请遵循以下准则:
1. 如果问题是一个简单的写作任务、问候语(例如,嗨,你好,你好吗),或者不需要搜索信息(除非问候语中包含后续问题),请在'question' XML块中返回'not_needed'。这表示不需要进行搜索。
2. 如果用户询问与特定URL、PDF或网页相关的问题,请在'links' XML块中包含链接,并在'question' XML块中包含问题。如果请求是总结来自URL或PDF的内容,请在'question' XML块中返回'summarize',并在'links' XML块中包含相关链接。
3. 对于网络搜索,你需要将关键词提取到'question' XML块中。
4. 始终将重述后的问题放在'question' XML块中。如果后续问题中没有链接,请不要在响应中插入'links' XML块。
5. 始终将重述后的问题包裹在适当的XML块中:对于需要实时或外部信息的查询,使用。确保重述后的问题始终包含在包装器内的块中。
6. *使用网络搜索来重述问题*
以下'examples' XML块中附有几个示例供你参考。
1. 后续问题:法国的首都是什么
重述后的问题:`
法国首都
`
2. 后续问题:嗨,你好吗?
重述后的问题:`
not_needed
`
3. 后续问题:Docker是什么?
重述后的问题:`
Docker是什么
`
4. 后续问题:你能告诉我https://example.com上的X是什么吗
重述后的问题:`
X是什么
https://example.com
`
5. 后续问题:总结https://example1.com和https://example2.com的内容
重述后的问题:`
summarize
https://example1.com
https://example2.com
`
6. 后续问题:根据网络搜索,2022年哪家公司的收入更高,"Apple"还是"Microsoft"?
重述后的问题:`
Apple 2022年收入
Microsoft 2022年收入
`
7. 后续问题:根据知识,缩放点积注意力和多头注意力的公式是什么?
重述后的问题:`
not_needed
`
以下内容是实际对话的一部分。请使用对话历史和后续问题,根据上述准则将后续问题重述为一个独立的问题。
**使用用户的语言来重述问题。**
后续问题:你是谁?
重述后的问题:
然后,第一次模型请求返回的结果为如下,提取content内容为\n\nnot_needed\n\n,说明LLM认为无需联网。
{
"id": "ec190584-30b7-498f-a288-cd2d516ea236",
"object": "chat.completion",
"created": 1773151232,
"model": "deepseek-chat",
"choices": [
{
"index": 0,
"message": {
"role": "assistant",
"content": "\n\nnot_needed\n\n"
},
"logprobs": null,
"finish_reason": "stop"
}
],
"usage": {
"prompt_tokens": 865,
"completion_tokens": 18,
"total_tokens": 883,
"prompt_tokens_details": {
"cached_tokens": 832
},
"prompt_cache_hit_tokens": 832,
"prompt_cache_miss_tokens": 33
},
"system_fingerprint": "fp_eaab8d114b_prod0820_fp8_kvcache"
}
cherry studio应该是获得返回结果进行解析,发现无需联网,然后去发起了第二次LLM 请求。这次的请求日志如下,这次是非常干净的请求。
{
"model": "deepseek-chat",
"temperature": 1,
"top_p": 1,
"messages": [
{
"role": "user",
"content": "你是谁?"
}
],
"stream": true,
"stream_options": {
"include_usage": true
}
}
然后,第二次LLM 请求的响应SSE数据处理后的内容如下:
你好!我是DeepSeek,由深度求索公司创造的AI助手!
我是一个纯文本模型,虽然不支持多模态识别功能,但我有文件上传功能,可以帮你处理图像、txt、pdf、ppt、word、excel等文件,并从中读取文字信息进行分析处理。我完全免费使用,拥有128K的上下文长度,还支持联网搜索(需要你在Web/App中手动点开联网搜索按键)。
你可以通过官方应用商店下载我的App来使用。我很乐意为你解答问题、协助处理各种任务,或者就是简单地聊聊天!
有什么我可以帮助你的吗?无论是学习、工作还是生活上的问题,我都很愿意为你提供帮助!✨
这个内容与cherry studio界面上展示给用户的内容完全一致。
为了避免上下文影响,新开一个会话,询问问题“今天几月几号?”
cherry studio界面上的交互展示如下,从对话界面上来看,LLM先回复了“我来帮您查询今天的日期。”,然后cherry studio展示了5个搜索结果,最后再回复了查询的结果的内容。
【强子】
今天是几月几号?
【deepseek/deepseek-v3.2 | OpenRouter_LLM中转服务器】
我来帮您查询今天的日期。
【5个搜索结果】
【额外展示5条引用内容】
我来帮您查询今天的日期。
根据搜索结果,今天是**2026年3月10日**,星期二[1][2]。
具体信息如下:
- **公历(阳历)**:2026年3月10日,星期二[1][2]
- **农历(阴历)**:丙午年正月廿二[1][2]
- **生肖**:马年[1][2]
- **星座**:双鱼座[2]
- **本周是2026年的第11周**[1]
所以,今天是2026年3月10日。
日志记录来看,本次交互发起了三次模型请求。第一次的模型请求日志如下,与之前询问“你是谁”的问题相似。
{
"model": "deepseek-chat",
"messages": [
{
"role": "user",
"content": "\n You are an AI question rephraser. Your role is to rephrase follow-up queries from a conversation into standalone queries that can be used by another LLM to retrieve information through web search.\n **Use user's language to rephrase the question.**\n Follow these guidelines:\n 1. If the question is a simple writing task, greeting (e.g., Hi, Hello, How are you), or does not require searching for information (unless the greeting contains a follow-up question), return 'not_needed' in the 'question' XML block. This indicates that no search is required.\n 2. If the user asks a question related to a specific URL, PDF, or webpage, include the links in the 'links' XML block and the question in the 'question' XML block. If the request is to summarize content from a URL or PDF, return 'summarize' in the 'question' XML block and include the relevant links in the 'links' XML block.\n 3. For websearch, You need extract keywords into 'question' XML block.\n 4. Always return the rephrased question inside the 'question' XML block. If there are no links in the follow-up question, do not insert a 'links' XML block in your response.\n 5. Always wrap the rephrased question in the appropriate XML blocks: usefor queries requiring real-time or external information. Ensure that the rephrased question is always contained within ablock inside the wrapper.\n 6. *use websearch to rephrase the question*\n\n There are several examples attached for your reference inside the below 'examples' XML block.\n\n\n 1. Follow up question: What is the capital of France\n Rephrased question:`\n\n\n Capital of France\n \n \n `\n\n 2. Follow up question: Hi, how are you?\n Rephrased question:`\n\n\n not_needed\n \n \n `\n\n 3. Follow up question: What is Docker?\n Rephrased question: `\n\n\n What is Docker\n \n \n `\n\n 4. Follow up question: Can you tell me what is X from https://example.com\n Rephrased question: `\n\n\n What is X\n \n\n https://example.com\n \n \n `\n\n 5. Follow up question: Summarize the content from https://example1.com and https://example2.com\n Rephrased question: `\n\n\n summarize\n \n\n https://example1.com\n \n\n https://example2.com\n \n \n `\n\n 6. Follow up question: Based on websearch, Which company had higher revenue in 2022, \"Apple\" or \"Microsoft\"?\n Rephrased question: `\n\n\n Apple's revenue in 2022\n \n\n Microsoft's revenue in 2022\n \n \n `\n\n 7. Follow up question: Based on knowledge, Formula of Scaled Dot-Product Attention and Multi-Head Attention?\n Rephrased question: `\n\n\n not_needed\n \n \n `\n \n\n Anything below is part of the actual conversation. Use the conversation history and the follow-up question to rephrase the follow-up question as a standalone question based on the guidelines shared above.\n\n\n \n \n\n **Use user's language to rephrase the question.**\n Follow up question: 今天几月几号?\n\n Rephrased question:\n"
}
]
}
第一次模型请求的回复日志结果如下,由此可见,LLM推理后认为需要联网查询,并给出了联网查询的Query为“今天几月几号”。
{
"id": "938a8093-7dfd-434c-819c-9b32e832e40a",
"object": "chat.completion",
"created": 1773152349,
"model": "deepseek-chat",
"choices": [
{
"index": 0,
"message": {
"role": "assistant",
"content": "\n\n今天几月几号\n\n"
},
"logprobs": null,
"finish_reason": "stop"
}
],
"usage": {
"prompt_tokens": 869,
"completion_tokens": 20,
"total_tokens": 889,
"prompt_tokens_details": {
"cached_tokens": 832
},
"prompt_cache_hit_tokens": 832,
"prompt_cache_miss_tokens": 37
},
"system_fingerprint": "fp_eaab8d114b_prod0820_fp8_kvcache"
}
然后,cherry studio发起了第二次LLM请求,请求日志如下:
{
"model": "deepseek-chat",
"temperature": 1,
"top_p": 1,
"messages": [
{
"role": "user",
"content": "今天几月几号?"
}
],
"tools": [
{
"type": "function",
"function": {
"name": "builtin_web_search",
"description": "Web search tool for finding current information, news, and real-time data from the internet.\n\nThis tool has been configured with search parameters based on the conversation context:\n- Prepared queries: \"今天几月几号\"\n\nYou can use this tool as-is to search with the prepared queries, or provide additionalContext to refine or replace the search terms.",
"parameters": {
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"properties": {
"additionalContext": {
"description": "Optional additional context, keywords, or specific focus to enhance the search",
"type": "string"
}
},
"additionalProperties": false
}
}
}
],
"tool_choice": "auto",
"stream": true,
"stream_options": {
"include_usage": true
}
}
由此可见,本次请求除了带入用户原始问题外,还额外增加了一个内置联网工具tool,这个工具的描述信息description的翻译如下。由此可见,在工具描述信息内包含了上一次LLM请求分析需要待查询的Query,帮助LLM进行function call推理。
用于从互联网查找当前信息、新闻和实时数据的网络搜索工具。
该工具已根据对话上下文配置了搜索参数:
- 预设查询:"今天几月几号"
您可以直接使用此工具执行预设查询进行搜索,或提供额外上下文以优化或替换搜索词。
为了专门测试联网搜索的原理,因此我在提问时并没有额外开启其他内置工具或MCP Server。所以,我大胆猜测,假如我同时开启了其他工具,这次请求tools列表内应该会有其他工具。
第二次LLM请求返回日志如下。可以看到LLM回复了内容“我来帮您查询今天的日期。”和一个工具调用指令。回复内容与在cherry studio上的第一条回复完全相同。
我来帮您查询今天的日期。
{
"tool_calls": [
{
"index": 0,
"id": "call_00_QEKAMdSuP92PmyzZhSc8MYkz",
"type": "function",
"function": {
"name": "builtin_web_search",
"arguments": "{}"
}
}
]
}
猜测,cherry studio获得工具调用指令后,就调用内置的搜索工具(Travily)API执行搜索查询任务。搜索工具配置的搜索参数是“今天几月几号”,是第一次LLM请求时返回的Query,而第二次LLM推理并没有返回更多查询参数。
这段时间,cherry studio调用内置搜索工具,拿到结果后,在用户界面上展示搜索结果,这与在用户界面上出现5条搜索结果和引用结果的用户体验顺序一致。
然后,cherry studio发起第三次LLM 请求,请求日志如下:
{
"model": "deepseek-chat",
"temperature": 1,
"top_p": 1,
"messages": [
{
"role": "user",
"content": "今天几月几号?"
},
{
"role": "assistant",
"content": "我来帮您查询今天的日期。",
"tool_calls": [
{
"id": "call_00_QEKAMdSuP92PmyzZhSc8MYkz",
"type": "function",
"function": {
"name": "builtin_web_search",
"arguments": "{}"
}
}
]
},
{
"role": "tool",
"tool_call_id": "call_00_QEKAMdSuP92PmyzZhSc8MYkz",
"content": "[{\"type\":\"text\",\"text\":\"This tool searches for relevant information and formats results for easy citation. The returned sources should be cited using [1], [2], etc. format in your response.\"},{\"type\":\"text\",\"text\":\"Found 5 relevant sources. Use [number] format to cite specific information.\"},{\"type\":\"text\",\"text\":\"Please answer the question based on the reference materials\\n\\n## Citation Rules:\\n- Please cite the context at the end of sentences when appropriate.\\n- Please use the format of citation number [number] to reference the context in corresponding parts of your answer.\\n- If a sentence comes from multiple contexts, please list all relevant citation numbers, e.g., [1][2]. Remember not to group citations at the end but list them in the corresponding parts of your answer.\\n- If all reference content is not relevant to the user's question, please answer based on your knowledge.\\n\\n## My question is:\\n\\nBased on the search results, please answer the user's question with proper citations.\\n\\n## Reference Materials:\\n\\n```json\\n[\\n {\\n \\\"number\\\": 1,\\n \\\"title\\\": \\\"2026年3月10日是今天第几周\\\",\\n \\\"content\\\": \\\"今天是2026年的第11周,星期二,3月的第3周,3月份有31天。 今日是2026年3月10 日,农历丙午年正月廿二, 2026年是马年, 2026年生肖是马。\\\",\\n \\\"url\\\": \\\"https://dijizhoum.100xgj.com/zhou/20260310\\\"\\n },\\n {\\n \\\"number\\\": 2,\\n \\\"title\\\": \\\"今天是农历几月几日星期几_今天是什么日子_今天几号\\\",\\n \\\"content\\\": \\\"公历(阳历) : 2026年3月10日星期二农历(阴历) : 2026年正月廿二黄历: 丙午年辛卯月癸未日生肖: 马节气: 星座: 双鱼座节日: 3节日大全 · 2026年在线日历表.\\\",\\n \\\"url\\\": \\\"https://www.jintianjihao.com/\\\"\\n },\\n {\\n \\\"number\\\": 3,\\n \\\"title\\\": \\\"西元2026年3月10日黃歷宜忌吉兇,丙午馬年辛卯月癸未日是皇歷哪天\\\",\\n \\\"content\\\": \\\"答西歷2026年3月10日星期二雙魚座是農民歷正月二十二號,歲次幹支日期丙午馬年辛卯月癸未日日。 問2026年農民歷1月22號是西歷幾月幾日?陰歷一月廿二號是陽歷什麽\\\",\\n \\\"url\\\": \\\"https://calendar.8s8s.net/calendar/2026/2026-3_10.html\\\"\\n },\\n {\\n \\\"number\\\": 4,\\n \\\"title\\\": \\\"2026年3月日期第几周一览表\\\",\\n \\\"content\\\": \\\"今天是2026年的第10周,星期二,3月的第2周,3月份有31天。 · 今日是2026年3月3 日,农历丙午年正月十五, 2026年是马年, 2026年生肖是马。 · 2026年有53个周,\\\",\\n \\\"url\\\": \\\"https://dijizhou.zzhuangli.com/zhou/20260303\\\"\\n },\\n {\\n \\\"number\\\": 5,\\n \\\"title\\\": \\\"今天是第几周 - 日历精灵\\\",\\n \\\"content\\\": \\\"今天是2026年的第11周,星期一,3月的第3周。 今日是2026年3月9日,农历丙午[马]年正月廿一。 2026年有53个周,\\\",\\n \\\"url\\\": \\\"http://dijizhou.5adanci.com/\\\"\\n }\\n]\\n```\\n\\nPlease respond in the same language as the user's question.\\n\"}]"
}
],
"tools": [
{
"type": "function",
"function": {
"name": "builtin_web_search",
"description": "Web search tool for finding current information, news, and real-time data from the internet.\n\nThis tool has been configured with search parameters based on the conversation context:\n- Prepared queries: \"今天几月几号\"\n\nYou can use this tool as-is to search with the prepared queries, or provide additionalContext to refine or replace the search terms.",
"parameters": {
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"properties": {
"additionalContext": {
"description": "Optional additional context, keywords, or specific focus to enhance the search",
"type": "string"
}
},
"additionalProperties": false
}
}
}
],
"tool_choice": "auto",
"stream": true,
"stream_options": {
"include_usage": true
}
}
相比于上次请求,本次LLM请求的message里增加了一个tool调用结果,即搜索工具调用结果,内容结构化处理后如下。
### 结构化数据展示
| 编号 | 标题 | 内容摘要 | URL |
|------|------|----------|-----|
| 1 | 2026年3月10日是今天第几周 | 今天是2026年第11周,星期二,3月第3周,3月有31天。农历丙午年正月廿二,马年。 | https://dijizhoum.100xgj.com/zhou/20260310 |
| 2 | 今天是农历几月几日星期几_今天是什么日子_今天几号 | 公历2026年3月10日星期二,农历正月廿二,黄历丙午年辛卯月癸未日,生肖马,星座双鱼座。 | https://www.jintianjihao.com/ |
| 3 | 西元2026年3月10日黃歷宜忌吉兇,丙午馬年辛卯月癸未日是皇歷哪天 | 西曆2026年3月10日星期二,雙魚座,農民曆正月廿二,歲次丙午馬年辛卯月癸未日。 | https://calendar.8s8s.net/calendar/2026/2026-3_10.html |
| 4 | 2026年3月日期第几周一览表 | 此条实际描述2026年3月3日(第10周),但提及2026年有53周,3月有31天。 | https://dijizhou.zzhuangli.com/zhou/20260303 |
| 5 | 今天是第几周 - 日历精灵 | 此条实际描述2026年3月9日(第11周星期一),农历正月廿一,并提及2026年有53周。 | http://dijizhou.5adanci.com/ |
由此可见,调用Tavily搜索工具,获得了5篇搜索的摘要信息,包含标题、摘要和URL。cherry studio第三次调用LLM时,将搜索工具执行结果作为上下文,给到LLM。
LLM第三次请求的响应,将SSE数据处理后的内容展示如下:
根据搜索结果,今天是**2026年3月10日**,星期二[1][2]。
具体信息如下:
- **公历(阳历)**:2026年3月10日,星期二[1][2]
- **农历(阴历)**:丙午年正月廿二[1][2]
- **生肖**:马年[1][2]
- **星座**:双鱼座[2]
- **本周是2026年的第11周**[1]
所以,今天是2026年3月10日。
这个内容与cherry studio界面上展示给用户的内容完全一致。
由此可以得出结论:使用联网搜索API 时,cherry studio首先会让LLM判断是否需要联网查询,如果需要则返回要联网查询的关键词Query。cherry studio解析LLM的联网查询推理结果,如果不需要联网,则将用户原始问题发送给LLM,就像用户没有开启联网搜索API功能一样。假如LLM判断需要联网查询,cherry studio再把联网搜索API作为工具,让LLM执行function call判断。最后,cherry studio再执行function call,并将工具执行结果作为上下文,给到LLM,生成最终的回复内容。
从工具执行结果来看,至少Tavily这个搜索API服务商的搜索结果质量,不如自带联网功能LLM API的搜索结果参考内容。
LLM + 本地搜索
cherry studio支持本地搜索,免费获得联网搜索的能力,现已支持Google、Bing、Baidu,这些都是客户端搜索引擎。因此,猜测cherry studio的本地搜索实现方式,是使用计算机本地机器打开这些搜索网站,执行搜索,然后将搜索结果作为上下文给到LLM生成回复。
我选择Bing搜索作为联网搜索的引擎。首先,我询问“你是谁?”。cherry studio界面上的交互展示如下:
【强子】
你是谁?
【deepseek-chat | DeepSeek-LLM中转服务器】
你好!我是DeepSeek,由深度求索公司创造的AI助手!
我是一个纯文本模型,虽然不支持多模态识别功能,但我有文件上传功能,可以帮你处理图像、txt、pdf、ppt、word、excel等各种文件,从中读取文字信息进行分析处理。
我的一些特点:
- 完全免费使用,没有收费计划
- 上下文长度达到128K,可以处理很长的对话
- 支持联网搜索(需要你手动点开联网搜索按键)
- 可以通过官方应用商店下载App使用
- 知识截止到2024年7月
我很乐意帮助你解答问题、协助思考、处理文档内容等等。有什么我可以帮你的吗?无论是学习、工作还是日常生活中的疑问,我都很愿意和你一起探讨!✨
日志记录来看,本次交互发起了两次模型请求。第一次的模型请求日志如下,这个请求与测试LLM + 联网搜索API的第一次请求完全相同。
{
"model": "deepseek-chat",
"messages": [
{
"role": "user",
"content": "\n You are an AI question rephraser. Your role is to rephrase follow-up queries from a conversation into standalone queries that can be used by another LLM to retrieve information through web search.\n **Use user's language to rephrase the question.**\n Follow these guidelines:\n 1. If the question is a simple writing task, greeting (e.g., Hi, Hello, How are you), or does not require searching for information (unless the greeting contains a follow-up question), return 'not_needed' in the 'question' XML block. This indicates that no search is required.\n 2. If the user asks a question related to a specific URL, PDF, or webpage, include the links in the 'links' XML block and the question in the 'question' XML block. If the request is to summarize content from a URL or PDF, return 'summarize' in the 'question' XML block and include the relevant links in the 'links' XML block.\n 3. For websearch, You need extract keywords into 'question' XML block.\n 4. Always return the rephrased question inside the 'question' XML block. If there are no links in the follow-up question, do not insert a 'links' XML block in your response.\n 5. Always wrap the rephrased question in the appropriate XML blocks: usefor queries requiring real-time or external information. Ensure that the rephrased question is always contained within ablock inside the wrapper.\n 6. *use websearch to rephrase the question*\n\n There are several examples attached for your reference inside the below 'examples' XML block.\n\n\n 1. Follow up question: What is the capital of France\n Rephrased question:`\n\n\n Capital of France\n \n \n `\n\n 2. Follow up question: Hi, how are you?\n Rephrased question:`\n\n\n not_needed\n \n \n `\n\n 3. Follow up question: What is Docker?\n Rephrased question: `\n\n\n What is Docker\n \n \n `\n\n 4. Follow up question: Can you tell me what is X from https://example.com\n Rephrased question: `\n\n\n What is X\n \n\n https://example.com\n \n \n `\n\n 5. Follow up question: Summarize the content from https://example1.com and https://example2.com\n Rephrased question: `\n\n\n summarize\n \n\n https://example1.com\n \n\n https://example2.com\n \n \n `\n\n 6. Follow up question: Based on websearch, Which company had higher revenue in 2022, \"Apple\" or \"Microsoft\"?\n Rephrased question: `\n\n\n Apple's revenue in 2022\n \n\n Microsoft's revenue in 2022\n \n \n `\n\n 7. Follow up question: Based on knowledge, Formula of Scaled Dot-Product Attention and Multi-Head Attention?\n Rephrased question: `\n\n\n not_needed\n \n \n `\n \n\n Anything below is part of the actual conversation. Use the conversation history and the follow-up question to rephrase the follow-up question as a standalone question based on the guidelines shared above.\n\n\n \n \n\n **Use user's language to rephrase the question.**\n Follow up question: 你是谁?\n\n Rephrased question:\n"
}
]
}
同理,第一次模型响应与测试LLM + 联网搜索API的响应也相同。\n\nnot_needed\n\n,说明LLM认为无需联网。
{
"id": "09ffdb39-734e-45a8-9e50-3a2db4725606",
"object": "chat.completion",
"created": 1773157025,
"model": "deepseek-chat",
"choices": [
{
"index": 0,
"message": {
"role": "assistant",
"content": "\n\nnot_needed\n\n"
},
"logprobs": null,
"finish_reason": "stop"
}
],
"usage": {
"prompt_tokens": 865,
"completion_tokens": 18,
"total_tokens": 883,
"prompt_tokens_details": {
"cached_tokens": 832
},
"prompt_cache_hit_tokens": 832,
"prompt_cache_miss_tokens": 33
},
"system_fingerprint": "fp_eaab8d114b_prod0820_fp8_kvcache"
}
cherry studio应该是获得返回结果进行解析,发现无需联网,然后去发起了第二次LLM 请求。这次的请求日志如下,这次是非常干净的请求。与测试LLM + 联网搜索API问相同问题时,第二次LLM请求也完全相同。
{
"model": "deepseek-chat",
"temperature": 1,
"top_p": 1,
"messages": [
{
"role": "user",
"content": "你是谁?"
}
],
"stream": true,
"stream_options": {
"include_usage": true
}
}
然后,第二次LLM 请求的响应SSE数据处理后的内容如下:
你好!我是DeepSeek,由深度求索公司创造的AI助手!
我是一个纯文本模型,虽然不支持多模态识别功能,但我有文件上传功能,可以帮你处理图像、txt、pdf、ppt、word、excel等各种文件,从中读取文字信息进行分析处理。
我的一些特点:
- 完全免费使用,没有收费计划
- 上下文长度达到128K,可以处理很长的对话
- 支持联网搜索(需要你手动点开联网搜索按键)
- 可以通过官方应用商店下载App使用
- 知识截止到2024年7月
我很乐意帮助你解答问题、协助思考、处理文档内容等等。有什么我可以帮你的吗?无论是学习、工作还是日常生活中的疑问,我都很愿意和你一起探讨!✨
这个内容与cherry studio界面上展示给用户的内容完全一致。
同样,为了避免上下文影响,新开一个会话,询问问题“今天几月几号?”
cherry studio界面上的交互展示如下,从对话界面上来看,LLM先回复了“我来帮您查询今天的日期。”,然后cherry studio展示了5个搜索结果,由于可能搜索结果不符合LLM预期,因此,cherry studio又展示了5个搜索结果,然后总结回答。
然后,可能因为两次查询结果的上下文都有问题,LLM最终回复是错误的!
【强子】
今天是几月几号?
【deepseek/deepseek-v3.2 | OpenRouter_LLM中转服务器】
我来帮您查询今天的日期。
【5个搜索结果】
【额外展示5条引用内容】
根据搜索结果,我注意到这些主要是中国知网(CNKI)的网页内容,其中包含了一些日期信息。从搜索结果中可以看到,中国知网动态部分显示了一些日期信息,包括"01-16 2026"、"01-13 2026"、"11-20 2025"、"10-10 2025"和"10-09 2025"等[1](https://chnbeta.oversea.cnki.net/index/)[2](https://cnki.net/index/)[3](https://c61.oversea.cnki.net/)[4](https://trabeta.oversea.cnki.net/index/)[5](https://www-cnki-net-s.vpn.gzucm.edu.cn/)。
然而,这些日期是网站内容的发布日期,并不代表今天的日期。让我重新搜索一下今天的准确日期。
【5个搜索结果】
【额外展示5条引用内容】
根据搜索结果,从Steam商店页面可以看到最新的游戏发布日期信息。搜索结果显示了多个游戏发布日期,包括"2026 年 3 月 9 日"、"2026 年 3 月 8 日"、"2026 年 3 月 6 日"、"2026 年 3 月 5 日"等[1](https://store.steampowered.com/)。
从这些信息可以看出,今天的日期应该是**2026年3月9日**。Steam商店页面显示"每日亲亲洛丽塔"等游戏的发布日期为"2026 年 3 月 9 日"[1](https://store.steampowered.com/),这表明今天是2026年3月9日。
所以,今天是**2026年3月9日**。
让我们来详细分析日志。
首先,cherry studio发起第一次LLM请求,这个请求与之前完全相同,就是一次搜索引擎前置处理器”,当用户提问时,先用这个提示词去判断这个问题是否需要上网去搜索。
{
"model": "deepseek-chat",
"messages": [
{
"role": "user",
"content": "\n You are an AI question rephraser. Your role is to rephrase follow-up queries from a conversation into standalone queries that can be used by another LLM to retrieve information through web search.\n **Use user's language to rephrase the question.**\n Follow these guidelines:\n 1. If the question is a simple writing task, greeting (e.g., Hi, Hello, How are you), or does not require searching for information (unless the greeting contains a follow-up question), return 'not_needed' in the 'question' XML block. This indicates that no search is required.\n 2. If the user asks a question related to a specific URL, PDF, or webpage, include the links in the 'links' XML block and the question in the 'question' XML block. If the request is to summarize content from a URL or PDF, return 'summarize' in the 'question' XML block and include the relevant links in the 'links' XML block.\n 3. For websearch, You need extract keywords into 'question' XML block.\n 4. Always return the rephrased question inside the 'question' XML block. If there are no links in the follow-up question, do not insert a 'links' XML block in your response.\n 5. Always wrap the rephrased question in the appropriate XML blocks: usefor queries requiring real-time or external information. Ensure that the rephrased question is always contained within ablock inside the wrapper.\n 6. *use websearch to rephrase the question*\n\n There are several examples attached for your reference inside the below 'examples' XML block.\n\n\n 1. Follow up question: What is the capital of France\n Rephrased question:`\n\n\n Capital of France\n \n \n `\n\n 2. Follow up question: Hi, how are you?\n Rephrased question:`\n\n\n not_needed\n \n \n `\n\n 3. Follow up question: What is Docker?\n Rephrased question: `\n\n\n What is Docker\n \n \n `\n\n 4. Follow up question: Can you tell me what is X from https://example.com\n Rephrased question: `\n\n\n What is X\n \n\n https://example.com\n \n \n `\n\n 5. Follow up question: Summarize the content from https://example1.com and https://example2.com\n Rephrased question: `\n\n\n summarize\n \n\n https://example1.com\n \n\n https://example2.com\n \n \n `\n\n 6. Follow up question: Based on websearch, Which company had higher revenue in 2022, \"Apple\" or \"Microsoft\"?\n Rephrased question: `\n\n\n Apple's revenue in 2022\n \n\n Microsoft's revenue in 2022\n \n \n `\n\n 7. Follow up question: Based on knowledge, Formula of Scaled Dot-Product Attention and Multi-Head Attention?\n Rephrased question: `\n\n\n not_needed\n \n \n `\n \n\n Anything below is part of the actual conversation. Use the conversation history and the follow-up question to rephrase the follow-up question as a standalone question based on the guidelines shared above.\n\n\n \n \n\n **Use user's language to rephrase the question.**\n Follow up question: 今天几月几号?\n\n Rephrased question:\n"
}
]
}
然后,符合我们预期的,LLM推理后响应需要联网查询。
{
"id": "9e980af9-2ff7-4166-8bcf-1cfdc9b7cfdf",
"object": "chat.completion",
"created": 1773157445,
"model": "deepseek-chat",
"choices": [
{
"index": 0,
"message": {
"role": "assistant",
"content": "\n\n 今天几月几号\n \n"
},
"logprobs": null,
"finish_reason": "stop"
}
],
"usage": {
"prompt_tokens": 869,
"completion_tokens": 23,
"total_tokens": 892,
"prompt_tokens_details": {
"cached_tokens": 832
},
"prompt_cache_hit_tokens": 832,
"prompt_cache_miss_tokens": 37
},
"system_fingerprint": "fp_eaab8d114b_prod0820_fp8_kvcache"
}
然后,跟测试LLM + 联网搜索API相同,紧接着cherry studio发起第二次LLM请求:
{
"model": "deepseek-chat",
"temperature": 1,
"top_p": 1,
"messages": [
{
"role": "user",
"content": "今天几月几号?"
}
],
"tools": [
{
"type": "function",
"function": {
"name": "builtin_web_search",
"description": "Web search tool for finding current information, news, and real-time data from the internet.\n\nThis tool has been configured with search parameters based on the conversation context:\n- Prepared queries: \"今天几月几号\"\n\nYou can use this tool as-is to search with the prepared queries, or provide additionalContext to refine or replace the search terms.",
"parameters": {
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"properties": {
"additionalContext": {
"description": "Optional additional context, keywords, or specific focus to enhance the search",
"type": "string"
}
},
"additionalProperties": false
}
}
}
],
"tool_choice": "auto",
"stream": true,
"stream_options": {
"include_usage": true
}
}
与测试LLM + 联网搜索API 询问“今天几月几号”的第二次LLM请求一样,,本次请求除了带入用户原始问题外,还额外增加了一个内置联网工具tool,在工具描述信息内包含了上一次LLM请求分析需要待查询的Query,帮助LLM进行function call推理。
第二次LLM请求返回日志如下。可以看到LLM回复了内容“我来帮您查询今天的日期。”和一个工具调用指令。
我来帮您查询今天的日期。
{
"tool_calls": [
{
"index": 0,
"id": "call_00_QEKAMdSuP92PmyzZhSc8MYkz",
"type": "function",
"function": {
"name": "builtin_web_search",
"arguments": "{}"
}
}
]
}
同样的,cherry studio获得工具调用指令后,就调用本地搜索工具(Bing)区执行搜索查询任务。
然后,cherry studio发起第三次LLM 请求,请求日志如下:
{
"model": "deepseek-chat",
"temperature": 1,
"top_p": 1,
"messages": [
{
"role": "user",
"content": "今天几月几号?"
},
{
"role": "assistant",
"content": "我来帮您查询今天的日期。",
"tool_calls": [
{
"id": "call_00_M7LG7aX5FvWK8zqb00yph2Lk",
"type": "function",
"function": {
"name": "builtin_web_search",
"arguments": "{}"
}
}
]
},
{
"role": "tool",
"tool_call_id": "call_00_M7LG7aX5FvWK8zqb00yph2Lk",
}
],
"tools": [
{
"type": "function",
"function": {
"name": "builtin_web_search",
"description": "Web search tool for finding current information, news, and real-time data from the internet.\n\nThis tool has been configured with search parameters based on the conversation context:\n- Prepared queries: \"今天几月几号\"\n\nYou can use this tool as-is to search with the prepared queries, or provide additionalContext to refine or replace the search terms.",
"parameters": {
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"properties": {
"additionalContext": {
"description": "Optional additional context, keywords, or specific focus to enhance the search",
"type": "string"
}
},
"additionalProperties": false
}
}
}
],
"tool_choice": "auto",
"stream": true,
"stream_options": {
"include_usage": true
}
}
同样的,相比于上次请求,本次LLM请求的message里增加了一个tool调用结果。这个tool(Bing搜索结果)执行结果的内容结构化解析如下:
根据您提供的搜索结果,共找到5条相关记录,全部指向中国知网(CNKI)的首页,内容基本一致,仅在URL上存在差异。以下是对这些搜索结果的详细解析:
### 搜索结果概览
这些结果均来自中国知网的主页,展示了知网平台的核心功能和资源布局。虽然URL不同(包括海外镜像站、主站及高校VPN访问入口等),但页面内容高度相似,主要包含以下模块:
1. **检索功能**
页面顶部提供了文献检索入口,支持按“主题”检索,并集成了语音输入功能[1][2][3][4][5]。同时,知网AI助手支持文档(Word、PDF、PPT、TXT,最大50MB)和图片(JPG、PNG、JPEG,最大3MB)的智能解读[1][2][3][4][5]。
2. **资源类型**
知网涵盖多种学术资源,包括学术期刊、学位论文、会议论文、报纸、年鉴、专利、标准、成果、学术辑刊、图书、文库、法律法规等[1][2][3][4][5]。此外,还提供工具书、引文库、学术图片、学术视频、统计数据(AI知数)、政府文件、科技报告等特色资源[1][2][3][4][5]。
3. **特色服务**
- **知网文献**:支持全库问答、核心期刊筛选、中英文献检索、个人资料管理[1][2][3][4][5]。
- **AI辅助工具**:包括文献计量分析、智能研读、辅助创作、学术趋势分析、全文翻译、学术PPT生成等[1][2][3][4][5]。
- **联网搜索与深度思考(R1)**:增强检索能力,提供更精准的学术探索[1][2][3][4][5]。
4. **下载热榜与评价机制**
页面设有“下载热榜”,基于全平台文献下载数据和PDSI指数,动态呈现高学术价值、高影响力的文献,并引入人工审核与同行评议确保科学性[1][2][3][4][5]。榜单按学科分类(自然科学、社会科学、哲学与人文科学)及时间(周/月)展示[1][2][3][4][5]。
5. **其他板块**
- **热词榜**:反映近期学术热点[1][2][3][4][5]。
- **知网推荐**:包括主编推荐、追踪关注、图书推荐(纸质/电子)[1][2][3][4][5]。
- **知网动态**:更新平台新闻(如2026年1月16日、13日等日期信息)[1][2][3][4][5]。
- **新品速递**:展示新功能或服务[1][2][3][4][5]。
### 来源差异说明
尽管5条结果内容相同,但URL指向不同的访问入口:
- [1] `https://chnbeta.oversea.cnki.net/index/`(海外beta版)
- [2] `https://cnki.net/index/`(主站)
- [3] `https://c61.oversea.cnki.net/`(海外镜像)
- [4] `https://trabeta.oversea.cnki.net/index/`(海外beta版)
- [5] `https://www-cnki-net-s.vpn.gzucm.edu.cn/`(通过高校VPN访问)
这表明用户可能通过不同途径访问知网,但获取的核心信息一致,均为知网首页的标准化内容。
### 总结
本次搜索结果集中展示了中国知网作为学术资源平台的主要功能和资源体系,包括文献检索、AI辅助工具、多种学术资源类型、下载热榜评价机制等。所有来源均可相互印证,为回答相关问题提供了统一且全面的参考依据[1][2][3][4][5]。
调用Bing本地搜索查询出来的结果,似乎不匹配Query“今天几月几号”关键词,简直是驴唇不对马嘴。
因此,LLM发起第三次请求的响应,将SSE数据处理后的内容展示如下。LLM回复了本次搜索结果作为上下文,无法回答用户问题,还进一步给出tool调用的指令,给出了新的搜索关键词"当前日期 今天日期 北京时间"。
根据搜索结果,我注意到这些主要是中国知网(CNKI)的网页内容,其中包含了一些日期信息。从搜索结果中可以看到,中国知网动态部分显示了一些日期信息,包括"01-16 2026"、"01-13 2026"、"11-20 2025"、"10-10 2025"和"10-09 2025"等[1][2][3][4][5]。
然而,这些日期是网站内容的发布日期,并不代表今天的日期。让我重新搜索一下今天的准确日期。
{
"id": "652844cc-0049-44dc-a426-bc5691e7ab65",
"object": "chat.completion.chunk",
"created": 1773157500,
"model": "deepseek-chat",
"choices": [
{
"index": 0,
"delta": {
"tool_calls": [
{
"index": 0,
"id": "call_00_VRF0cU4k4wJOFov4Icx10Ni0",
"type": "function",
"function": {
"name": "builtin_web_search",
"arguments": "{\"additionalContext\":\"当前日期 今天日期 北京时间\"}"
}
}
]
},
"finish_reason": "tool_calls"
}
]
}
然后,cherry studio再次去调用Bing搜索,将搜索结果作为上下文,发起第四次LLM调用。
{
"model": "deepseek-chat",
"temperature": 1,
"top_p": 1,
"messages": [
{
"role": "user",
"content": "今天几月几号?"
},
{
"role": "assistant",
"content": "我来帮您查询今天的日期。",
"tool_calls": [
{
"id": "call_00_M7LG7aX5FvWK8zqb00yph2Lk",
"type": "function",
"function": {
"name": "builtin_web_search",
"arguments": "{}"
}
}
]
},
{
"role": "tool",
"tool_call_id": "call_00_M7LG7aX5FvWK8zqb00yph2Lk",
},
{
"role": "assistant",
"content": "根据搜索结果,我注意到这些主要是中国知网(CNKI)的网页内容,其中包含了一些日期信息。从搜索结果中可以看到,中国知网动态部分显示了一些日期信息,包括\"01-16 2026\"、\"01-13 2026\"、\"11-20 2025\"、\"10-10 2025\"和\"10-09 2025\"等[1][2][3][4][5]。\n\n然而,这些日期是网站内容的发布日期,并不代表今天的日期。让我重新搜索一下今天的准确日期。",
"tool_calls": [
{
"id": "call_00_VRF0cU4k4wJOFov4Icx10Ni0",
"type": "function",
"function": {
"name": "builtin_web_search",
"arguments": "{\"additionalContext\":\"当前日期 今天日期 北京时间\"}"
}
}
]
},
{
"role": "tool",
"tool_call_id": "call_00_VRF0cU4k4wJOFov4Icx10Ni0",
}
],
"tools": [
{
"type": "function",
"function": {
"name": "builtin_web_search",
"description": "Web search tool for finding current information, news, and real-time data from the internet.\n\nThis tool has been configured with search parameters based on the conversation context:\n- Prepared queries: \"今天几月几号\"\n\nYou can use this tool as-is to search with the prepared queries, or provide additionalContext to refine or replace the search terms.",
"parameters": {
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"properties": {
"additionalContext": {
"description": "Optional additional context, keywords, or specific focus to enhance the search",
"type": "string"
}
}, 拼多多帮助力入口
"additionalProperties": false
}
}
}
],
"tool_choice": "auto",
"stream": true,
"stream_options": {
"include_usage": true
}
}
不幸的是,本次搜索结果也有问题。LLM 从游戏发布日期推测今日日期,属于错误推理,说明当搜索结果不准确时,LLM 可能产生误导性答案。
根据搜索结果,从Steam商店页面可以看到最新的游戏发布日期信息。搜索结果显示了多个游戏发布日期,包括"2026 年 3 月 9 日"、"2026 年 3 月 8 日"、"2026 年 3 月 6 日"、"2026 年 3 月 5 日"等[1]。
从这些信息可以看出,今天的日期应该是**2026年3月9日**。Steam商店页面显示"每日亲亲洛丽塔"等游戏的发布日期为"2026 年 3 月 9 日"[1],这表明今天是2026年3月9日。
所以,今天是**2026年3月9日**。
由此可见,LLM + 本地搜索工具,与LLM + 联网搜索API的业务流程完全相同,只不过本地搜索工具可能耗时更长,搜索结果的准确性更差。