beyzapehlivan commited on
Commit
6b00115
·
verified ·
1 Parent(s): af175c6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -6
app.py CHANGED
@@ -11,18 +11,17 @@ model = HfApiModel(model_id="meta-llama/Llama-3.1-70B-Instruct", token=token)
11
 
12
  class AlfredAgent:
13
  def __init__(self):
14
- # %30 BARACI İÇİN KRİTİK PROMPT
15
  CUSTOM_SYSTEM_PROMPT = """You are a world-class GAIA solver.
16
  1. Use web_search for facts.
17
  2. Use visit_webpage for specific URLs or deep reading.
18
- 3. If you find multiple numbers, verify which one exactly answers the question.
19
- 4. Your final output must be ONLY the result (e.g., '15', 'Paris', '2022-03-01'). No explanations."""
20
 
21
  self.agent = CodeAgent(
22
- tools=[VisitWebpageTool(), DuckDuckGoSearchTool()],
 
23
  model=model,
24
- max_steps=15, # Soruları yarım bırakmaması için artırdık
25
- add_base_tools=True,
26
  additional_authorized_imports=['requests', 'bs4', 'pandas', 'json', 'math'],
27
  system_prompt=CUSTOM_SYSTEM_PROMPT
28
  )
 
11
 
12
  class AlfredAgent:
13
  def __init__(self):
 
14
  CUSTOM_SYSTEM_PROMPT = """You are a world-class GAIA solver.
15
  1. Use web_search for facts.
16
  2. Use visit_webpage for specific URLs or deep reading.
17
+ 3. Your final output must be ONLY the result (e.g., '15', 'Paris'). No explanations."""
 
18
 
19
  self.agent = CodeAgent(
20
+ # DuckDuckGoSearchTool()'u buradan çıkardık çünkü base_tools ile çakışıyor
21
+ tools=[VisitWebpageTool()],
22
  model=model,
23
+ max_steps=15,
24
+ add_base_tools=True, # Arama aracı zaten bunun içinden gelecek
25
  additional_authorized_imports=['requests', 'bs4', 'pandas', 'json', 'math'],
26
  system_prompt=CUSTOM_SYSTEM_PROMPT
27
  )