Duke-911 commited on
Commit
cf28be0
·
1 Parent(s): 9d1352a

Update system prompt formatting and increase LLM output size

Browse files
Files changed (1) hide show
  1. app.py +7 -3
app.py CHANGED
@@ -18,7 +18,9 @@ FETCH_QUESTIONS_LOCAL = True
18
 
19
  system_prompt="""You are a general AI assistant. I will ask you a question. Report your thoughts, and finish
20
  your answer with the following template:
21
- [YOUR FINAL ANSWER].
 
 
22
  YOUR FINAL ANSWER should be a number OR as few words as possible OR a comma separated list of
23
  numbers and/or strings.
24
  If you are asked for a number, don’t use comma to write your number neither use units such as $ or percent
@@ -27,16 +29,18 @@ If you are asked for a string, don’t use articles, neither abbreviations (e.g.
27
  plain text unless specified otherwise.
28
  If you are asked for a comma separated list, apply the above rules depending of whether the element to be put
29
  in the list is a number or a string.
 
 
30
  """
31
 
32
- llm = HuggingFaceInferenceAPI(model_name='Qwen/Qwen3-32B', num_output=2048, temperature=0.01)
33
  wikipedia_tools = WikipediaToolSpec().to_tool_list()
34
  search_tool = FunctionTool.from_defaults(DuckDuckGoSearchToolSpec().duckduckgo_full_search)
35
 
36
  agent = AgentWorkflow.from_tools_or_functions(
37
  tools_or_functions=[search_tool],
38
  llm=llm,
39
- system_prompt=system_prompt,
40
  verbose=False,
41
  )
42
 
 
18
 
19
  system_prompt="""You are a general AI assistant. I will ask you a question. Report your thoughts, and finish
20
  your answer with the following template:
21
+
22
+ [YOUR FINAL ANSWER]
23
+
24
  YOUR FINAL ANSWER should be a number OR as few words as possible OR a comma separated list of
25
  numbers and/or strings.
26
  If you are asked for a number, don’t use comma to write your number neither use units such as $ or percent
 
29
  plain text unless specified otherwise.
30
  If you are asked for a comma separated list, apply the above rules depending of whether the element to be put
31
  in the list is a number or a string.
32
+
33
+ Here is the question:
34
  """
35
 
36
+ llm = HuggingFaceInferenceAPI(model_name='Qwen/Qwen3-32B', num_output=4096, temperature=0.01)
37
  wikipedia_tools = WikipediaToolSpec().to_tool_list()
38
  search_tool = FunctionTool.from_defaults(DuckDuckGoSearchToolSpec().duckduckgo_full_search)
39
 
40
  agent = AgentWorkflow.from_tools_or_functions(
41
  tools_or_functions=[search_tool],
42
  llm=llm,
43
+ #system_prompt=system_prompt,
44
  verbose=False,
45
  )
46