[RFC] 087 - 应用级联网搜索功能 #6447
Replies: 26 comments 61 replies
-
SearchXNG是需要自建服务接入? |
Beta Was this translation helpful? Give feedback.
-
当前已经实现的搜索,应该是拿的搜索引擎结果前5条的title和content丢给AI去分析,但是很多情况下这个体验并不好。 |
Beta Was this translation helpful? Give feedback.
-
1.该插件概率搜索失败,原因为发现调用时候似乎指定了搜索引擎导致的失败【 "arguments": "{"query": "小米15", "searchEngines": ["google", "bilibili", "bing", "duckduckgo", "z-library", "reddit", "wikipedia", "xiaomi"]}{}", |
Beta Was this translation helpful? Give feedback.
This comment has been hidden.
This comment has been hidden.
This comment has been hidden.
This comment has been hidden.
-
非常棒的功能,刚刚给我自己的实例配置好,管理员终于能统一为用户配置联网搜索了。跳了好几跳才找到这,希望文档可以跟进一下❤️ |
Beta Was this translation helpful? Give feedback.
This comment has been hidden.
This comment has been hidden.
-
另外有一个应该算小众的问题, 上游是oneapi时,再使用claude-sonnet使用联网功能时,会报错json解析失败。 原因是处理响应流时会自动把参数的值为空时替换为空字典,这里修改为空字符串即可修复,但我不太懂这里的逻辑,大佬可以看一下是否需要修复 |
Beta Was this translation helpful? Give feedback.
This comment has been hidden.
This comment has been hidden.
-
searx.space 这上面的 ready to use 的 instance 可以直接用吗 |
Beta Was this translation helpful? Give feedback.
-
请问如何指定联网搜索时使用的搜索引擎 |
Beta Was this translation helpful? Give feedback.
-
感谢!但是Zeabur目前只有付费模式,有没有大佬分享一下免费,或者更便宜的SearchXNG部署方式 |
Beta Was this translation helpful? Give feedback.
-
遇到的奇怪问题是,当我把env文件中的AUTH_URL,改成服务器IP加casdoor端口形式,此时鉴权返回到的是IP+端口的网址。同时此时可以使用联网搜索。 但是AUTH_URL使用反代的https网址后,鉴权返回https网址,此时搜索功能就始终是403错误。 想请问一下反代的时候是要额外设置什么吗。 (反代用的是1panel的openresty的反代配置,网站的https证书也添加了。) |
Beta Was this translation helpful? Give feedback.
-
使用 Claude 3.7 进行联网搜索时卡在这了,爬取 single page 没问题,但是爬多篇就卡住了😂 |
Beta Was this translation helpful? Give feedback.
-
![]() |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
兄弟,我也搭建了一个已经接入 lobechat 了,但是我刚刚试了试你这个感觉比我的强大很多,可以请教下你是怎么配置的吗我的是这个
https://sfei332f.520missliu.xyz:18888
…---原始邮件---
发件人: "Liu ***@***.***>
发送时间: 2025年3月7日(周五) 晚上6:44
收件人: ***@***.***>;
抄送: ***@***.******@***.***>;
主题: Re: [lobehub/lobe-chat] [RFC] 087 - 应用内置联网搜索功能 (Discussion #6447)
我用自己的vps搭了一个,如果不滥用应该是够用了 链接
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you commented.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
配置了联网搜索,但是为什么部分模型没有显示调用界面呢?这我的配置问题还是API的问题? |
Beta Was this translation helpful? Give feedback.
-
With my api provider I often notice this error with the chat history enabled: { What could this be related to? I would be glad to receive recommendations on the api provider. When searching, for example: the search call is called normally, but the second message causes an error due to the chat history enabled. |
Beta Was this translation helpful? Give feedback.
-
为什么现在 Claude 的模型都强制关闭了限制历史消息数😂,然后就是现在用 claude 联网搜索出现错误,之前是 claude 的联网好用,r1 不能联网,现在 r1 反而能连了,claude 又报错了🤣
|
Beta Was this translation helpful? Give feedback.
-
![]() |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
这个功能似乎没有纳入文档?我想找相关文档找不到,一路搜到这里的。 |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
搜索辅助模型是否可以改成全部模型都可以使用? 有些性能好的非推理模型还是很少去调用搜索,例如gemini和grok,辅助模型配置glm-flash调用性很积极,适合作为基本搜索模型使用 |
Beta Was this translation helpful? Give feedback.
-
私有化部署添加了环境变量,是不是还是没有联网搜索功能? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
背景
接 #6277 RFC,本 RFC 拆解应用内置联网功能的实现。
目前在 LobeChat Cloud 上实现了一个基于 SearchXNG 的插件,基于该插件的整体搜索体验非常舒服:
因此在本 RFC 中会将该插件升级为应用层的内置能力
设计思路
首先在 server 层新增一个搜索 provider 的service 并定义好通用接口
然后针对 searchXNG 实现其中的 search 接口
前端层定义为一个tools,但关于 tool 的开启则用单独字段控制
实施
配置环境变量:
SEARXNG_URL=https://searxng-instance.com
Zeabur 上有 searchXNG 的一键启动模板:https://zeabur.com/templates/77FSH6
注意:默认提供的 searxng 镜像是没有设置 json 输出的
进去searxng容器修改/etc/searxng/settings.yml文件
找到
修改为
最后重启容器
Beta Was this translation helpful? Give feedback.
All reactions