petrov826 commited on
Commit
7d0f3e4
·
verified ·
1 Parent(s): a1ca60d

remove custom_prompt because it does not appear to contribute to improved accuracy

Browse files
Files changed (1) hide show
  1. app.py +0 -12
app.py CHANGED
@@ -20,17 +20,6 @@ from youtube_transcript_tool import YoutubeTranscriptTool
20
  # (Keep Constants as is)
21
  # --- Constants ---
22
  DEFAULT_API_URL = "https://agents-course-unit4-scoring.hf.space"
23
- CUSTOM_PROMPT = """
24
- You are a general AI assistant. I will ask you a question.
25
- Your final response must be ONLY the answer itself and nothing else.
26
- Do not include any explanations, reasoning, or prefixes like "FINAL ANSWER:".
27
-
28
- The answer should be a number OR as few words as possible OR a comma separated list.
29
- - If the answer is a number, do not use commas for thousands separators
30
- (e.g., write 1000 not 1,000) and do not include units like '$' or '%' unless specified.
31
- - If the answer is a string, do not use articles (a, an, the) or abbreviations.
32
- - If the answer is a list, apply these rules to each element.
33
- """
34
 
35
  rate_limiter = RateLimiter()
36
 
@@ -52,7 +41,6 @@ class BasicAgent:
52
  ],
53
  model=model,
54
  step_callbacks=[rate_limiter.increment_and_sleep_if_needed],
55
- instructions=CUSTOM_PROMPT,
56
  )
57
  print("BasicAgent initialized.")
58
 
 
20
  # (Keep Constants as is)
21
  # --- Constants ---
22
  DEFAULT_API_URL = "https://agents-course-unit4-scoring.hf.space"
 
 
 
 
 
 
 
 
 
 
 
23
 
24
  rate_limiter = RateLimiter()
25
 
 
41
  ],
42
  model=model,
43
  step_callbacks=[rate_limiter.increment_and_sleep_if_needed],
 
44
  )
45
  print("BasicAgent initialized.")
46