mirror of
https://github.com/khoaliber/khoj.git
synced 2026-03-06 05:39:12 +00:00
Make Khoj ask clarifying questions when answer not in provided context
Previously it would just refuse ask for clarification. This improves the chat quality score for the existing director tests
This commit is contained in:
@@ -4,7 +4,7 @@ from langchain.prompts import PromptTemplate
|
||||
|
||||
## Personality
|
||||
## --
|
||||
personality = PromptTemplate.from_template("You are Khoj, a friendly, smart and helpful personal assistant.")
|
||||
personality = PromptTemplate.from_template("You are Khoj, a smart, inquisitive and helpful personal assistant.")
|
||||
|
||||
|
||||
## General Conversation
|
||||
@@ -77,7 +77,9 @@ conversation_llamav2 = PromptTemplate.from_template(
|
||||
## --
|
||||
notes_conversation = PromptTemplate.from_template(
|
||||
"""
|
||||
Using the notes and our past conversations as context, answer the following question.
|
||||
Using my personal notes and our past conversations as context, answer the following question.
|
||||
Ask crisp follow-up questions to get additional context, when the answer cannot be inferred from the provided notes or past conversations.
|
||||
These questions should end with a question mark.
|
||||
Current Date: {current_date}
|
||||
|
||||
Notes:
|
||||
|
||||
Reference in New Issue
Block a user