lemonai icon indicating copy to clipboard operation
lemonai copied to clipboard

联网搜索

Open Sunlineroom opened this issue 11 months ago • 2 comments

您好,我看到他经常出现这个情况,有时候我还给他使用了

Image Image

怎么让他不进行联网搜索呢,因为我这边自己有部署通用兼容searxng的接口,想让他通过内部进行搜索 Image

Sunlineroom avatar Dec 13 '25 12:12 Sunlineroom

Hi there,

Currently, LemonAI relies on the default search mechanism, so there isn't a built-in switch to forcibly disable it in the settings. However, if you want to force the agent to use your internal MCP search instead, here are three solutions:

  1. Explicit Prompting: When asking questions, explicitly instruct the model: "Do not use websearch, please use the MCP search tool."
  2. Experience Configuration: Add this instruction to the agent's "Experience" settings so it remembers your preference automatically.
  3. Source Code Modification: You can modify src/tools/index.js by adding web_search to the ignored list.

Note: I noticed from your screenshot that you are using the gamma-3-4b model. Please be aware that for complex scenarios (like distinguishing between similar tools), this model size might not be sufficient. It may occasionally misinterpret the tool calling logic or generate incorrect code.

HexdoAI avatar Dec 15 '25 08:12 HexdoAI

OK,i'll try to fix and very thanks for U replace.

发自 Outlookhttp://aka.ms/weboutlook


发件人: Hexdo @.> 发送时间: 2025年12月15日 16:07 收件人: hexdocom/lemonai @.> 抄送: 众外人 @.>; Author @.> 主题: Re: [hexdocom/lemonai] 联网搜索 (Issue #72)

[https://avatars.githubusercontent.com/u/142013412?s=20&v=4]HexdoAI left a comment (hexdocom/lemonai#72)https://github.com/hexdocom/lemonai/issues/72#issuecomment-3654323076

Hi there,

Currently, LemonAI relies on the default search mechanism, so there isn't a built-in switch to forcibly disable it in the settings. However, if you want to force the agent to use your internal MCP search instead, here are three solutions:

  1. Explicit Prompting: When asking questions, explicitly instruct the model: "Do not use websearch, please use the MCP search tool."
  2. Experience Configuration: Add this instruction to the agent's "Experience" settings so it remembers your preference automatically.
  3. Source Code Modification: You can modify src/tools/index.js by adding web_search to the ignored list.

Note: I noticed from your screenshot that you are using the gamma-3-4b model. Please be aware that for complex scenarios (like distinguishing between similar tools), this model size might not be sufficient. It may occasionally misinterpret the tool calling logic or generate incorrect code.

― Reply to this email directly, view it on GitHubhttps://github.com/hexdocom/lemonai/issues/72#issuecomment-3654323076, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AZDXB6SZR7K6M7B5TALQC2D4BZT37AVCNFSM6AAAAACO552D4GVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZTMNJUGMZDGMBXGY. You are receiving this because you authored the thread.Message ID: @.***>

Sunlineroom avatar Dec 15 '25 08:12 Sunlineroom