summaryrefslogtreecommitdiff
path: root/rag/generator/prompt.py
diff options
context:
space:
mode:
authorGustaf Rydholm <gustaf.rydholm@gmail.com>2024-04-24 09:09:24 +0200
committerGustaf Rydholm <gustaf.rydholm@gmail.com>2024-04-24 09:09:24 +0200
commit9e0cbcb4e7f1f3f95f304046d3190c6ebc4d3901 (patch)
tree5d890ce2705b79f23d63988c140d08edadaf35c5 /rag/generator/prompt.py
parent2e85325639ce3827cc2eb32f9750dfa873e3a480 (diff)
Reformat and fix typo
Diffstat (limited to 'rag/generator/prompt.py')
-rw-r--r--rag/generator/prompt.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/rag/generator/prompt.py b/rag/generator/prompt.py
index 10afe7b..6523842 100644
--- a/rag/generator/prompt.py
+++ b/rag/generator/prompt.py
@@ -4,9 +4,10 @@ from typing import List
from rag.retriever.vector import Document
ANSWER_INSTRUCTION = (
- "Given the context information and not prior knowledge, answer the query."
- "If the context is irrelevant to the query or empty, then do not attempt to answer "
- "the query, just reply that you do not know based on the context provided.\n"
+ "Do not attempt to answer the query without relevant context, and do not use "
+ "prior knowledge or training data!\n"
+ "If the context does not contain the answer or is empty, only reply that you "
+ "cannot answer the query given the context."
)