Tell doc search actor to not generate online queries for doc search

This can pick up irrelevant details from notes
This commit is contained in:
Debanjum Singh Solanky 2024-04-11 19:48:03 +05:30
parent 15a78b19ad
commit d15b9bc272

View file

@ -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.