#Suppress source links in LLM responses when using web search in Assist

1 messages · Page 1 of 1 (latest)

dim fractal
#

Hi,
I’m using Assist in Home Assistant with the gpt-4o-mini model and the web search option enabled. I have customized my prompt to include instructions like:

“Do not include any source links, URLs, or website names in your response, even if you used them. Focus only on delivering the information to the user.”

Despite this, the model still appends a source URL at the end of the answer whenever it uses web search. This breaks immersion and goes against the conversational tone I’m trying to maintain.

What I want:

I’d like to keep using the web search functionality (since it’s very helpful), but I do not want any links or source references included in the final response.

What I tried:
• Prompting the model explicitly not to include sources (didn’t help)
• Verified that the links are added even though the prompt forbids it.

Question:

Is there a way to prevent Assist from appending source URLs to LLM responses?
Can I intercept or strip this part in the current architecture — or do I need to implement a custom proxy/middleware for full control?

Thanks in advance!

jovial perch
opaque pecan
#

I've recently learned it doesn't work when you tell an LLM NOT to do something. Try to tell it what it should do

#

Maybe try:

When providing an answer based on a web search, only provide the answer to the question, keep it short and simple without providing information about the source.