https://discord.gg/botpress logo
Bot Searching the Internet
# 🤝help
c
How to Stop our Bot searching the internet? We want it to only have access to our KB but it keeps pulling information that doesn't exist in our KB and has been found online.
w
I can help you configure your Botpress setup so it only uses your internal knowledge base and doesn’t fetch info from the web. This usually involves adjusting the retrieval settings or disabling external connectors in your bot’s knowledge settings. Can you confirm if your bot is using the default Q&A module or connected to a web-enabled LLM agent? @cold-needle-28423
c
hi @white-father-59063 we're using gpt 4 mini is that web-enabled? I thought there would be a button we could turn on or off to give it access to the web
also thanks for your help 🙂
w
GPT-4 Mini doesn’t access the web by default. If it’s pulling outside info, there’s likely a fallback or external source enabled. Check your knowledge settings for “Web Search” or “External Source.” @cold-needle-28423
c
okay thank you, I can't find where knowledge settings are? I'm in the studio and have looked in bot settings and on the knowledge base page @white-father-59063
l
Hello @cold-needle-28423 You can be a little more strict in the instructions of your autonomous node!
hmm @wide-umbrella-5226 maybe it varies depending on the LLM you are using! For context shen and I were talking about this same subject yesterday!
w
i guess it also depends on how botpress queries the llms under the hood. when you query the completion endpoint for example i don't think you even have access to mcps
the important distinction that has to be made is if it's the AUTONOMOUS AGENT calling the search or the LLM
@loud-crowd-60573 if you manage to get your agent to search the web, i'd help a lot if you could screenshot the "inspect" screen so i can check if it's a tool being called or something
l
Let me do a quick test
my KB has a dog related website only, it shouldn't answer questions about the empire state building
w
well it's calling client.search instead of client.searchFiles from what i can see
client.searchFiles is the one called when searching in kb files i'm pretty sure
what about the "Tools" tab? does it have something search-related there?
l
Which LLM were you using
in that example where it wouldn't search the web? (from yesterday)
w
i tried a few - gpt 4o, gpt 5 and claude 4.5 haiku
w
oh yup there it is
l
global search is only KBs
w
is kbs not searchFiles?
w
oh so it's different from the API
message has been deleted
and you don't have "web search" on your kb right?
l
dude is that
nudaeng
w
LOL yeah
i love him
l
LMAO thats too funny
my kb only has that 1 dog website
w
the weird thing is, why is it even searching the KB for the empire state building
surely it has that in its training data
l
Ill ask someone about it after the AMA!
curious to see too
w
i'll do some testing of my own
what llm are you using?
l
I tried gpt4.1, 5, and gem 2.5
w
@loud-crowd-60573 i think i found the answer and it's actually quite simple
the issue is good old hallucination
using a weak model (gpt 4 mini in chris' case, and 4o mini in yours) in the "default model" part of the autonomous agent causes it to hallucinate instead of admitting it can't answer the query
even if the RAG model returns nothing, the response model just decides to answer it
it's not searching the web, it's just answering based on its own knowledge
so just pick a smarter "default" model and it's fixed
l
So @wide-umbrella-5226 a quick little update from one of the devs, that behaviour is normal. Its not really searching the web its just data the LLM was trained on.
w
yup haha same conclusion thank god
l
Yeah so I asked it about a recent event last month and it could not answer
c
Thank you both for your help!
l
of course 😄
2 Views