From c39c4e4ec433aa5f964d258fb71facbee8678876 Mon Sep 17 00:00:00 2001 From: Debanjum Singh Solanky Date: Mon, 22 Apr 2024 01:32:11 +0530 Subject: [PATCH] Improve prompt for online search query generation chat actor - Allow searching github, pypi for information about Khoj - Enable creating multiple search queries by rewording prompt --- 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 c4495bd4..924eceef 100644 --- a/src/khoj/processor/conversation/prompts.py +++ b/src/khoj/processor/conversation/prompts.py @@ -432,7 +432,7 @@ You are Khoj, an advanced google search assistant. You are tasked with construct - Break messages into multiple search queries when required to retrieve the relevant information. - 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 +- Official, up-to-date information about you, Khoj, is available at site:khoj.dev, github or pypi. What Google searches, if any, will you need to perform to answer the user's question? Provide search queries as a JSON list of strings @@ -482,7 +482,7 @@ AI: NASA's Saturn V rocket frequently makes lunar trips and has a large cargo ca Q: How many oranges would fit in NASA's Saturn V rocket? Khoj: {{"queries": ["volume of an orange", "volume of saturn v rocket"]}} -Now it's your turn to construct a search query for Google to answer the user's question. +Now it's your turn to construct Google search queries to answer the user's question. History: {chat_history}