Skip to content

知识库停留在24年12月,无法启用联网搜索模式。 #7183

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
Pel0915 opened this issue Mar 26, 2025 · 6 comments
Open

知识库停留在24年12月,无法启用联网搜索模式。 #7183

Pel0915 opened this issue Mar 26, 2025 · 6 comments
Labels
unconfirm 未被维护者确认的问题

Comments

@Pel0915
Copy link

Pel0915 commented Mar 26, 2025

📦 部署环境

Docker

📦 部署模式

服务端模式(lobe-chat-database 镜像)

📌 软件版本

v1.75.2

💻 系统环境

Ubuntu

🌐 浏览器

Chrome

🐛 问题描述

这是怎么回事?1.75.1的时候,都没这个问题,它会自动启用搜索。

Image

Image

📷 复现步骤

No response

🚦 期望结果

No response

📝 补充信息

No response

@Pel0915 Pel0915 added the unconfirm 未被维护者确认的问题 label Mar 26, 2025
@lobehubbot
Copy link
Member

👀 @Pel0915

Thank you for raising an issue. We will investigate into the matter and get back to you as soon as possible.
Please make sure you have given us as much context as possible.
非常感谢您提交 issue。我们会尽快调查此事,并尽快回复您。 请确保您已经提供了尽可能多的背景信息。

@lobehubbot
Copy link
Member

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


📦 Deployment environment

Docker

📦 Deployment mode

Server-side mode (lobe-chat-database mirror)

📌 Software version

v1.75.2

💻 System environment

Ubuntu

🌐 Browser

Chrome

🐛 Question description

What's going on? During 1.75.1, there is no problem, and it will automatically enable search.

Image

Image

📷 Reproduction steps

No response

🚦 Expected results

No response

📝 Supplementary information

No response

Copy link

dosubot bot commented Mar 26, 2025

在版本 1.75.2 中,知识库无法启用联网搜索模式的问题可能与配置设置有关。请检查以下几点:

  1. 搜索模式配置:确保 searchMode 属性在 LobeAgentChatConfig 接口中正确设置。它可以设置为 'off''on''auto'。如果设置为 'off',则搜索功能将被禁用[1][2]

  2. 环境变量:检查 FEATURE_FLAGS 环境变量是否设置为 "-online_search",这会禁用在线搜索功能[3]

  3. 版本特定功能:确认应用程序是否在一个不支持搜索功能的过时版本中运行。isDeprecatedEdition 检查可能会影响功能的启用[4]

如果这些设置都没有问题,但问题仍然存在,可能需要进一步检查代码或配置文件以确保没有其他因素影响搜索功能的启用。

To continue talking to Dosu, mention @dosu.


Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Bug Report | Other

@Pel0915
Copy link
Author

Pel0915 commented Mar 26, 2025

在版本 1.75.2 中,知识库无法启用联网搜索模式的问题可能与配置设置有关。请检查以下几点:

  1. 搜索模式配置:确保 searchMode 属性在 LobeAgentChatConfig 接口中正确设置。它可以设置为 'off''on''auto'。如果设置为 'off',则搜索功能将被禁用[1][2]
  2. 环境变量:检查 FEATURE_FLAGS 环境变量是否设置为 "-online_search",这会禁用在线搜索功能[3]
  3. 版本特定功能:确认应用程序是否在一个不支持搜索功能的过时版本中运行。isDeprecatedEdition 检查可能会影响功能的启用[4]

如果这些设置都没有问题,但问题仍然存在,可能需要进一步检查代码或配置文件以确保没有其他因素影响搜索功能的启用。

To continue talking to Dosu, mention @dosu.

Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Bug Report | Other

我并没有动过以上配置,环境变量也只添加或删减默认助手以及系统助手,以下是我添加的环境变量,其它默认环境变量我没动过

#ENABLED_OPENAI=0
ENABLED_OLLAMA=0
SYSTEM_AGENT="agentMeta=siliconflow/deepseek-ai/DeepSeek-R1-Distill-Qwen-7B,historyCompress=siliconflow/deepseek-ai/DeepSeek-R1-Distill-Qwen-7B,queryRewrite=siliconflow/deepseek-ai/DeepSeek-R1-Distill-Qwen-7B,topic=siliconflow/deepseek-ai/DeepSeek-R1-Distill-Qwen-7B,translation=siliconflow/deepseek-ai/DeepSeek-R1-Distill-Qwen-7B"
DEFAULT_AGENT_CONFIG="model=deepseek-ai/DeepSeek-R1-Distill-Qwen-7B;provider=siliconflow;chatConfig.historyCount=3"
OPENAI_MODEL_LIST=-all,+Qwen/QwQ-32B,+deepseek-ai/DeepSeek-R1=DeepSeek-R1,+deepseek-ai/DeepSeek-V3=DeepSeek-V3,+deepseek-ai/DeepSeek-R1-Distill-Qwen-32B=DeepSeek-R1/Qwen-32B,+Qwen/Qwen2.5-72B-Instruct-128K,+deepseek-ai/DeepSeek-R1-Distill-Qwen-7B=DeepSeek-R1/Qwen-7B,+deepseek-ai/deepseek-vl2,+Kwai-Kolors/Kolors
DEFAULT_FILES_CONFIG=embedding_model=openai/BAAI/bge-m3
OPENAI_API_KEY=sk-Dzf4yLYXXXXXXX
OPENAI_PROXY_URL=https://api.example.com/v1

执行时有一个报错信息日志

[rewrite] /chat -> http://127.0.0.1:3210/zh-CN__0__light/chat
(node:30) [DEP0060] DeprecationWarning: The `util._extend` API is deprecated. Please use Object.assign() instead.
(Use `node --trace-deprecation ...` to show where the warning was created)
[rewrite] /files -> http://127.0.0.1:3210/zh-CN__0__light/files
[rewrite] /discover -> http://127.0.0.1:3210/zh-CN__0__light/discover
[rewrite] /chat/settings -> http://127.0.0.1:3210/zh-CN__0__light/chat/settings
[rewrite] /settings/provider/openai -> http://127.0.0.1:3210/zh-CN__0__light/settings/provider/openai
[Error: aborted] { code: 'ECONNRESET' }
 ⨯ uncaughtException:  [Error: aborted] { code: 'ECONNRESET' }

@Pel0915
Copy link
Author

Pel0915 commented Mar 26, 2025

踩了一个坑,DEFAULT_FILES_CONFIG=embedding_model=openai/BAAI/bge-m3此处应该是只输入模型ID不能加提供商,已解决

@lobehubbot
Copy link
Member

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


I stepped on a pit, DEFAULT_FILES_CONFIG=embedding_model=openai/BAAI/bge-m3 Here, it should only enter the model ID and cannot add the provider. It has been solved

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
unconfirm 未被维护者确认的问题
Projects
None yet
Development

No branches or pull requests

2 participants