diff options
author | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2024-04-24 01:10:43 +0200 |
---|---|---|
committer | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2024-04-24 01:10:43 +0200 |
commit | 95305f59df84caded50286b1a57b6075e48725a8 (patch) | |
tree | c0f0157a99da6332a3c96462b0aba2bd02dfcb33 /rag/generator/prompt.py | |
parent | 75be0914f6bd2cdeda1539f83b38fcbc854d5cfa (diff) |
Rerank working
llama3 sucks at rag
Diffstat (limited to 'rag/generator/prompt.py')
-rw-r--r-- | rag/generator/prompt.py | 4 |
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" ) |