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.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/rag/generator/prompt.py b/rag/generator/prompt.py
index 41f264e..fa007db 100644
--- a/rag/generator/prompt.py
+++ b/rag/generator/prompt.py
@@ -3,6 +3,12 @@ from typing import List
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"
+)
+
@dataclass
class Prompt: