Update app.py
Browse files
app.py
CHANGED
@@ -110,7 +110,7 @@ def load_model(_docs):
|
|
110 |
# "don't try to make up an answer.")
|
111 |
SYSTEM_PROMPT = ("Use the following pieces of context along with general information you possess to answer the question at the end."
|
112 |
"If you don't know the answer, just say that you don't know, "
|
113 |
-
"don't try to make up an answer.
|
114 |
|
115 |
template = generate_prompt("""{context} Question: {question} """,system_prompt=SYSTEM_PROMPT,) #Enter memory here!
|
116 |
prompt = PromptTemplate(template=template, input_variables=["context", "question"]) #Add history here
|
|
|
110 |
# "don't try to make up an answer.")
|
111 |
SYSTEM_PROMPT = ("Use the following pieces of context along with general information you possess to answer the question at the end."
|
112 |
"If you don't know the answer, just say that you don't know, "
|
113 |
+
"don't try to make up an answer. Answer what is asked strictly and do not provide further questions at all.")
|
114 |
|
115 |
template = generate_prompt("""{context} Question: {question} """,system_prompt=SYSTEM_PROMPT,) #Enter memory here!
|
116 |
prompt = PromptTemplate(template=template, input_variables=["context", "question"]) #Add history here
|