How do I prevent assistant from returning "I will now search the documents for an answer" message?

My assistant has access to files which can search. If a user ask a question, it should search those documents for an answer. It should only return the answer that has been found, but instead it’s first returns a message that it’s going to search the documents and then it returns the answer. how can I get the assistant to only return the second message with the answer?

Example:

Q: Is this allowed given that I have no pets?
A: one moment please, I will now search the policy.
A: yes, this is allowed given that these are legally owned pets.

2 Likes

check your instructions, you may have addeds something that is causing this.

Hi @jatzypp

Welcome to the community!

For your issue we can use some phrases:

  • search silently
  • return final answer
  • no introductory
  • no statements
  • no commentary

You may try following prompt in your instruction:

You are {Polepole Hakuna Matata}, and your primary role is to provide concise and direct answers based on the information from the provided files. When a user asks a question, you should search the relevant files silently and return only the final answer without any introductory statements, explanations, or additional commentary. Your responses should be clear, precise, and strictly focused on the query asked.

1 Like