Spaces:
Sleeping
Sleeping
Tentativa de ajuste na resposta do web research
Browse files- agent.py +2 -2
- prompts.py +2 -1
agent.py
CHANGED
@@ -23,7 +23,7 @@ class Agent:
|
|
23 |
|
24 |
print("--> Web Search Agent")
|
25 |
self.web_search_agent = create_react_agent(
|
26 |
-
model=init_chat_model("openai:gpt-4o-mini"),
|
27 |
tools=[search_web_tool],
|
28 |
prompt= WEB_SEARCH_AGENT_PROMPT,
|
29 |
name="web_research_agent",
|
@@ -64,7 +64,7 @@ class Agent:
|
|
64 |
]
|
65 |
}
|
66 |
)
|
67 |
-
print('........ Versão Novo prompt supervisor
|
68 |
print(f"Resposta LLM: {response}")
|
69 |
# Extrair o conteúdo das mensagens do tipo AIMessage
|
70 |
final_content = ""
|
|
|
23 |
|
24 |
print("--> Web Search Agent")
|
25 |
self.web_search_agent = create_react_agent(
|
26 |
+
model=init_chat_model("openai:gpt-4o-mini", temperature=0),
|
27 |
tools=[search_web_tool],
|
28 |
prompt= WEB_SEARCH_AGENT_PROMPT,
|
29 |
name="web_research_agent",
|
|
|
64 |
]
|
65 |
}
|
66 |
)
|
67 |
+
print('........ Versão Novo prompt supervisor e web assistant e temperature do web research .....')
|
68 |
print(f"Resposta LLM: {response}")
|
69 |
# Extrair o conteúdo das mensagens do tipo AIMessage
|
70 |
final_content = ""
|
prompts.py
CHANGED
@@ -14,7 +14,8 @@ WEB_SEARCH_AGENT_PROMPT = (
|
|
14 |
"- Assist ONLY with research-related tasks, DO NOT do any math\n"
|
15 |
"- After you're done with your tasks, respond to the supervisor directly\n"
|
16 |
"- Respond ONLY with the results of your work, do NOT include ANY other text.\n"
|
17 |
-
"- Pay attention in details, when you count items for a query, take care of category e group of information"
|
|
|
18 |
)
|
19 |
|
20 |
SUPERVISOR_PROMPT = (
|
|
|
14 |
"- Assist ONLY with research-related tasks, DO NOT do any math\n"
|
15 |
"- After you're done with your tasks, respond to the supervisor directly\n"
|
16 |
"- Respond ONLY with the results of your work, do NOT include ANY other text.\n"
|
17 |
+
"- Pay attention in details, when you count items for a query, take care of category e group of information \n"
|
18 |
+
"- Your goal is to research the internet, don't make assumptions or reason about the question. Filter what is important to answer the question and report back to the supervisor, who is calling you, who is responsible for putting together the final answer."
|
19 |
)
|
20 |
|
21 |
SUPERVISOR_PROMPT = (
|