diff options
author | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2024-04-11 08:59:41 +0200 |
---|---|---|
committer | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2024-04-11 08:59:41 +0200 |
commit | 5b7d1cb49bd473c7dbcf6e89f7d1b6fc8be1f5b1 (patch) | |
tree | 41a19d0ff59cb00eca6e30511bbe2d54996b4b2a /rag/generator/prompt.py | |
parent | 98f8d1d535c30d8c1ca6c7b52e634a99b88acf10 (diff) |
Improve prompt
Diffstat (limited to 'rag/generator/prompt.py')
-rw-r--r-- | rag/generator/prompt.py | 6 |
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: |