VGekko commited on
Commit
e7d4fcf
·
verified ·
1 Parent(s): dfbfbdf

Upload agent.py

Browse files
Files changed (1) hide show
  1. agent.py +2 -2
agent.py CHANGED
@@ -108,7 +108,7 @@ def build_graph():
108
 
109
 
110
  llm = ChatMistralAI(
111
- model="mistral-small-2503",
112
  temperature=0,
113
  max_retries=2,
114
  )
@@ -138,7 +138,7 @@ def build_graph():
138
  if __name__=="__main__":
139
  #system_prompt = "You are a general AI assistant. I will ask you a question. Report your thoughts, and finish your answer with the following template: FINAL ANSWER: [YOUR FINAL ANSWER]. 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 are asked for a number, don't use comma to write your number neither use units such as $ or percent sign unless specified otherwise. If you are asked for a string, don't use articles, neither abbreviations (e.g. for cities), and write the digits in plain text unless specified otherwise. If you are asked for a comma separated list, apply the above rules depending of whether the element to be put in the list is a number or a string."
140
  system_prompt = "You are a general AI assistant. I will ask you a question. Give your answer with the following template: only show your final answer. 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 are asked for a number, don't use comma to write your number neither use units such as $ or percent sign unless specified otherwise. If you are asked for a string, don't use articles, neither abbreviations (e.g. for cities), and write the digits in plain text unless specified otherwise. If you are asked for a comma separated list, apply the above rules depending of whether the element to be put in the list is a number or a string."
141
- question = "when was kremlin built?"
142
  question = f"{system_prompt} \
143
  The question: \
144
  {question} \
 
108
 
109
 
110
  llm = ChatMistralAI(
111
+ model="open-mistral-nemo",
112
  temperature=0,
113
  max_retries=2,
114
  )
 
138
  if __name__=="__main__":
139
  #system_prompt = "You are a general AI assistant. I will ask you a question. Report your thoughts, and finish your answer with the following template: FINAL ANSWER: [YOUR FINAL ANSWER]. 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 are asked for a number, don't use comma to write your number neither use units such as $ or percent sign unless specified otherwise. If you are asked for a string, don't use articles, neither abbreviations (e.g. for cities), and write the digits in plain text unless specified otherwise. If you are asked for a comma separated list, apply the above rules depending of whether the element to be put in the list is a number or a string."
140
  system_prompt = "You are a general AI assistant. I will ask you a question. Give your answer with the following template: only show your final answer. 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 are asked for a number, don't use comma to write your number neither use units such as $ or percent sign unless specified otherwise. If you are asked for a string, don't use articles, neither abbreviations (e.g. for cities), and write the digits in plain text unless specified otherwise. If you are asked for a comma separated list, apply the above rules depending of whether the element to be put in the list is a number or a string."
141
+ question = "when was new yourk city founded?"
142
  question = f"{system_prompt} \
143
  The question: \
144
  {question} \