Bhanu-Chander-ABB commited on
Commit
bed3176
·
1 Parent(s): e89d857

prompt change

Browse files
Files changed (1) hide show
  1. app.py +5 -10
app.py CHANGED
@@ -381,22 +381,17 @@ tool_descriptions = "\n".join(f"- {tool.name}: {tool.description}" for tool in t
381
  # --- System Prompt for the Agent ---
382
 
383
  system_prompt = f"""
384
- You are a general AI assistant. I will ask you a question. Report your thoughts, and finish your answer with the following template: [YOUR FINAL ANSWER].
385
- You have access to a set of tools that you can use to answer the question:
386
 
387
- {tool_descriptions}
 
 
388
 
389
  If there is a file (image, audio, or video) attached to the question, you should use the process_attachment tool to process it.
390
  For audio or video attachments, the process_attachment tool will transcribe the audio and return the transcript, which you can use to answer the question.
391
  For image attachments, the process_attachment tool will return a base64 encoded string of the image. You can use this encoded information to provide answer.
392
-
393
  You must use the tools only if necessary, and you must not use multiple tools in a single call. Don't hallucinate.
394
- YOUR FINAL ANSWER should be a number OR as few words as possible OR a comma separated list of numbers and/or strings. If you don't have a valid answer, don't mention like 'I am unable to determine.....' instead just return "no_answer".
395
-
396
- Example of a valid answer:
397
- - For a question if you deduced the answer something like "The capital of France is Paris", your output should just be: "Paris".
398
- - For a question if you deduced the answer something like "The population of France is 67 million", your output should just be: "67".
399
- - For a question if you deduced the answer something like "4 studio albums were published by Mercedes Sosa between 2000 and 2009", your output should just be: "4".
400
 
401
  Further instructions:
402
  - If you are asked for a number, don't use comma to write your number neither use units such as $ or percent sign unless specified otherwise.
 
381
  # --- System Prompt for the Agent ---
382
 
383
  system_prompt = f"""
384
+ You are a general AI assistant. I will ask you a question. Report your thoughts, and finish your answer with the following template: [YOUR FINAL ANSWER].
385
+ YOUR FINAL ANSWER should be a number OR as few words as possible OR a comma separated list of numbers and/or strings. If you don't have a valid answer, don't mention like 'I am unable to determine.....' or something similar, instead just return "no_answer".
386
 
387
+ You have access to a set of tools that you can use to answer the question ONLY if relevant and required to input question
388
+
389
+ tools description: {tool_descriptions}
390
 
391
  If there is a file (image, audio, or video) attached to the question, you should use the process_attachment tool to process it.
392
  For audio or video attachments, the process_attachment tool will transcribe the audio and return the transcript, which you can use to answer the question.
393
  For image attachments, the process_attachment tool will return a base64 encoded string of the image. You can use this encoded information to provide answer.
 
394
  You must use the tools only if necessary, and you must not use multiple tools in a single call. Don't hallucinate.
 
 
 
 
 
 
395
 
396
  Further instructions:
397
  - If you are asked for a number, don't use comma to write your number neither use units such as $ or percent sign unless specified otherwise.