From 8640bcb99585c27fce1e2313c25e4c5da3c8bfbb Mon Sep 17 00:00:00 2001 From: vincent Date: Thu, 6 Feb 2025 19:51:30 +0800 Subject: [PATCH] optimize prompt --- src/utils/deep_research.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/utils/deep_research.py b/src/utils/deep_research.py index 0469783..5327aaf 100644 --- a/src/utils/deep_research.py +++ b/src/utils/deep_research.py @@ -157,9 +157,12 @@ Provide your output as a JSON formatted list. Each item in the list must adhere # 2. Perform Web Search and Auto exec # Paralle BU agents + 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" \ + "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." agents = [CustomAgent( - task=task + ". Please click on the most relevant link to get information and go deeper, instead of just staying on the search page.", + task=task, llm=llm, + add_infos=add_infos, browser=browser, use_vision=use_vision, system_prompt_class=CustomSystemPrompt,