summaryrefslogtreecommitdiff
path: root/rag/generator/prompt.py
diff options
context:
space:
mode:
Diffstat (limited to 'rag/generator/prompt.py')
-rw-r--r--rag/generator/prompt.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/rag/generator/prompt.py b/rag/generator/prompt.py
index fa007db..f607122 100644
--- a/rag/generator/prompt.py
+++ b/rag/generator/prompt.py
@@ -5,8 +5,8 @@ from rag.retriever.vector import Document
ANSWER_INSTRUCTION = (
"Given the context information and not prior knowledge, answer the question."
- "If the context is irrelevant to the question, answer that you do not know "
- "the answer to the question given the context and stop.\n"
+ "If the context is irrelevant to the question or empty, then do not attempt to answer "
+ "the question, just reply that you do not know based on the context provided.\n"
)