dleandro commited on
Commit
2576a9a
·
1 Parent(s): eaa0030

Update: Error correction in app.py and prompt improvement

Browse files
Files changed (2) hide show
  1. app.py +1 -0
  2. system_prompt.txt +2 -0
app.py CHANGED
@@ -16,6 +16,7 @@ DEFAULT_API_URL = "https://agents-course-unit4-scoring.hf.space"
16
  class BasicAgent:
17
  def __init__(self):
18
  print("BasicAgent initialized.")
 
19
  def __call__(self, question: str) -> str:
20
  print(f"Agent received question (first 50 chars): {question[:50]}...")
21
  # fixed_answer = "This is a default answer."
 
16
  class BasicAgent:
17
  def __init__(self):
18
  print("BasicAgent initialized.")
19
+ self.graph = build_graph()
20
  def __call__(self, question: str) -> str:
21
  print(f"Agent received question (first 50 chars): {question[:50]}...")
22
  # fixed_answer = "This is a default answer."
system_prompt.txt CHANGED
@@ -8,5 +8,7 @@ If you are asked for a string, don’t use articles, neither abbreviations (e.g.
8
  digits in plain text unless specified otherwise.
9
  If you are asked for a comma separated list, apply the above rules depending of whether the element
10
  to be put in the list is a number or a string, ensure there is exactly one space after each comma.
 
 
11
  Your answer should only start with "FINAL ANSWER: ", then follows with the answer.
12
 
 
8
  digits in plain text unless specified otherwise.
9
  If you are asked for a comma separated list, apply the above rules depending of whether the element
10
  to be put in the list is a number or a string, ensure there is exactly one space after each comma.
11
+ If you believe you have enough context to answer the question without processing any additional file,
12
+ if one exists, go ahead and do so.
13
  Your answer should only start with "FINAL ANSWER: ", then follows with the answer.
14