diff --git a/src/prompts.py b/src/prompts.py index e4e6005..fff2432 100644 --- a/src/prompts.py +++ b/src/prompts.py @@ -27,13 +27,15 @@ def build_user_prompt(q): """ user_prompt = f"""Answer the given question. \ You must conduct reasoning inside and first every time you get new information. \ -After reasoning, if you find you lack some knowledge, you can call a search engine by query . \ +You ONLY HAVE TWO CHOICES after thinking: to search or to answer but not both. +If you find you lack some knowledge, you MUST call a search engine by query . Based on the user's core intent, formulate the most effective search query using specific, descriptive keywords that differentiate the topic clearly. \ Aim for queries that resemble how an expert searcher might phrase it, like using "compare lithium-ion vs solid-state battery efficiency" rather than just "batteries". \ -The document will be provided inside and tags to you later. \ -You can search as many turns as you want, but only one search query per turn. \ -If you find no further external knowledge needed, you can directly provide the answer inside and , without detailed illustrations. \ -Only answer when you have 100% confidence in the search results, else continue searching. \ +You can search as many turns as you want, but only one search query per thinking. \ +The information will be provided when you end your response. \ +If you find no further external knowledge needed, you MUST directly provide the answer inside and , without detailed illustrations. \ +You can only answer one time, so make sure to answer when you have 100% confidence in the search results, else continue searching. \ +You MUST END YOUR RESPONSE WITH either and tags or and tags. \ Question: {q}\n""" return user_prompt