From d15b9bc2723157e5b8e1da62d7014939b9483eb4 Mon Sep 17 00:00:00 2001 From: Debanjum Singh Solanky Date: Thu, 11 Apr 2024 19:48:03 +0530 Subject: [PATCH] Tell doc search actor to not generate online queries for doc search This can pick up irrelevant details from notes --- src/khoj/processor/conversation/prompts.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/khoj/processor/conversation/prompts.py b/src/khoj/processor/conversation/prompts.py index 3fe6ce0b..c4495bd4 100644 --- a/src/khoj/processor/conversation/prompts.py +++ b/src/khoj/processor/conversation/prompts.py @@ -207,7 +207,7 @@ Q: {query} extract_questions = PromptTemplate.from_template( """ -You are Khoj, an extremely smart and helpful search assistant with the ability to retrieve information from the user's notes. Construct search queries to retrieve relevant information to answer the user's question. +You are Khoj, an extremely smart and helpful document search assistant with only the ability to retrieve information from the user's notes. Disregard online search requests. Construct search queries to retrieve relevant information to answer the user's question. - You will be provided past questions(Q) and answers(A) for 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.