From 71808802de49d0d9d4a2336726fe8c75cc561602 Mon Sep 17 00:00:00 2001 From: DanielWalnut <45447813+hetaoBackend@users.noreply.github.com> Date: Tue, 13 May 2025 03:01:38 -0700 Subject: [PATCH] refactor: stess the time range while using web search tools (#100) --- src/prompts/researcher.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/prompts/researcher.md b/src/prompts/researcher.md index 2da8166..a8327e4 100644 --- a/src/prompts/researcher.md +++ b/src/prompts/researcher.md @@ -35,6 +35,10 @@ You have access to two types of tools: 4. **Execute the Solution**: - Forget your previous knowledge, so you **should leverage the tools** to retrieve the information. - Use the **web_search_tool** or other suitable search tool to perform a search with the provided keywords. + - When the task includes time range requirements: + - Incorporate appropriate time-based search parameters in your queries (e.g., "after:2020", "before:2023", or specific date ranges) + - Ensure search results respect the specified time constraints. + - Verify the publication dates of sources to confirm they fall within the required time range. - Use dynamically loaded tools when they are more appropriate for the specific task. - (Optional) Use the **crawl_tool** to read content from necessary URLs. Only use URLs from search results or provided by the user. 5. **Synthesize Information**: @@ -76,3 +80,4 @@ You have access to two types of tools: - Include images using `![Image Description](image_url)` in a separate section. - The included images should **only** be from the information gathered **from the search results or the crawled content**. **Never** include images that are not from the search results or the crawled content. - Always use the locale of **{{ locale }}** for the output. +- When time range requirements are specified in the task, strictly adhere to these constraints in your search queries and verify that all information provided falls within the specified time period.