Skip to content

Commit 8640bcb

Browse files
committed
optimize prompt
1 parent abdf95c commit 8640bcb

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/utils/deep_research.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,9 +157,12 @@ async def deep_research(task, llm, **kwargs):
157157

158158
# 2. Perform Web Search and Auto exec
159159
# Paralle BU agents
160+
add_infos = "1. Please click on the most relevant link to get information and go deeper, instead of just staying on the search page. \n" \
161+
"2. When opening a PDF file, please remember to extract the content using extract_content instead of simply opening it for the user to view."
160162
agents = [CustomAgent(
161-
task=task + ". Please click on the most relevant link to get information and go deeper, instead of just staying on the search page.",
163+
task=task,
162164
llm=llm,
165+
add_infos=add_infos,
163166
browser=browser,
164167
use_vision=use_vision,
165168
system_prompt_class=CustomSystemPrompt,

0 commit comments

Comments
 (0)