From 5b7d1cb49bd473c7dbcf6e89f7d1b6fc8be1f5b1 Mon Sep 17 00:00:00 2001 From: Gustaf Rydholm Date: Thu, 11 Apr 2024 08:59:41 +0200 Subject: Improve prompt --- rag/generator/prompt.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'rag/generator/prompt.py') 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: -- cgit v1.2.3-70-g09d2