From 62a83dc9bbfe3ecaed7dff0be18b2efbb444d4d4 Mon Sep 17 00:00:00 2001 From: Debanjum Singh Solanky Date: Fri, 15 Mar 2024 21:50:14 +0530 Subject: [PATCH] Fix online search actor to use natural dates not after: operator The recently added after: operator to online search actor was too restrictive, gave worse results than when just use natural language dates in search query --- src/khoj/processor/conversation/prompts.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/khoj/processor/conversation/prompts.py b/src/khoj/processor/conversation/prompts.py index 6a917a0e..b6465ca5 100644 --- a/src/khoj/processor/conversation/prompts.py +++ b/src/khoj/processor/conversation/prompts.py @@ -386,7 +386,7 @@ You are Khoj, an advanced google search assistant. You are tasked with construct - You will receive the conversation history as context. - Add as much context from the previous questions and answers as required into your search queries. - Break messages into multiple search queries when required to retrieve the relevant information. -- Use site: and after: google search operators when appropriate +- Use site: google search operators when appropriate - You have access to the the whole internet to retrieve information. - Official, up-to-date information about you, Khoj, is available at site:khoj.dev @@ -401,7 +401,7 @@ User: I like to use Hacker News to get my tech news. AI: Hacker News is an online forum for sharing and discussing the latest tech news. It is a great place to learn about new technologies and startups. Q: Summarize posts about vector databases on Hacker News since Feb 2024 -Khoj: {{"queries": ["site:news.ycombinator.com after:2024/02/01 vector database"]}} +Khoj: {{"queries": ["site:news.ycombinator.com vector database since 1 February 2024"]}} History: User: I'm currently living in New York but I'm thinking about moving to San Francisco.