huggingface / chat-ui

Open source codebase powering the HuggingChat app
https://huggingface.co/chat
Apache License 2.0
6.77k stars 950 forks source link

System prompt not taken into account when web browsing. #1159

Open CakeCrusher opened 1 month ago

CakeCrusher commented 1 month ago

I have not inspected the code but this is why I suspect this. I created an assistant that should be explicitly searching for "University of Florida": image https://hf.co/chat/assistant/664e60ae000c01b5d327de43

And when I ask for help on a college related topic I get this: image

None of the URLs were related to "University of Florida".

I tried it several times with similar prompts and nothing. This works in OpenAI's GPTs store

nsarrazin commented 1 month ago

Hey, so we indeed do not take the system prompt into account for generating the websearch query. I guess it would make sense to have it when generating the prompt as well.

neven4 commented 3 weeks ago

Hi there, @nsarrazin how do you want to approach this: by adding 'System instruction' to a web search query, or by asking a model to create a web search query from a user query and a 'System instruction'?

neven4 commented 2 weeks ago

Hi there, @nsarrazin how do you want to approach this: by adding 'System instruction' to a web search query, or by asking a model to create a web search query from a user query and a 'System instruction'?

Hi @nsarrazin, WDYT?