Spaces:
Runtime error
Runtime error
Commit
·
ebb95ee
1
Parent(s):
a946efd
Update query_data.py
Browse files- query_data.py +10 -3
query_data.py
CHANGED
@@ -13,9 +13,16 @@ Follow Up Input: {question}
|
|
13 |
Standalone question:"""
|
14 |
CONDENSE_QUESTION_PROMPT = PromptTemplate.from_template(_template)
|
15 |
|
16 |
-
template = """
|
17 |
-
|
18 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
19 |
QA_PROMPT = PromptTemplate(template=template, input_variables=["question", "context"])
|
20 |
|
21 |
|
|
|
13 |
Standalone question:"""
|
14 |
CONDENSE_QUESTION_PROMPT = PromptTemplate.from_template(_template)
|
15 |
|
16 |
+
template = """Give an answer to the question based on the context below, and if you don't find the answer in
|
17 |
+
the context, then simply say "Sorry no information is present in twimbit's data", But do give an answer that fits
|
18 |
+
right, the answer can be outside of this context and at the end of the answer, do mention that this answer is not
|
19 |
+
from twimbit's data and also include sources like article links etc. And also don't use "According to the information
|
20 |
+
provided in the given links, " while giving an answer.
|
21 |
+
|
22 |
+
{context}
|
23 |
+
|
24 |
+
Question: {question}
|
25 |
+
Helpful Answer:"""
|
26 |
QA_PROMPT = PromptTemplate(template=template, input_variables=["question", "context"])
|
27 |
|
28 |
|