Spaces:
Runtime error
Runtime error
bhaskartripathi
commited on
Commit
•
ffffc8f
1
Parent(s):
608ee8d
Update app.py
Browse files
app.py
CHANGED
@@ -133,7 +133,7 @@ def generate_answer(question, openAI_key,model):
|
|
133 |
"Citation should be done at the end of each sentence. If the search results mention multiple subjects "\
|
134 |
"with the same name, create separate answers for each. Only include information found in the results and "\
|
135 |
"don't add any additional information. Make sure the answer is correct and don't output false content. "\
|
136 |
-
"If the text does not relate to the query, simply state 'Found Nothing'. Ignore outlier "\
|
137 |
"search results which has nothing to do with the question. Only answer what is asked. The "\
|
138 |
"answer should be short and concise. \n\nQuery: {question}\nAnswer: "
|
139 |
|
@@ -210,8 +210,8 @@ def generate_answer_text_davinci_003(question,openAI_key):
|
|
210 |
|
211 |
# pre-defined questions
|
212 |
questions = [
|
213 |
-
"
|
214 |
-
"
|
215 |
"what are the methodologies used in this study?",
|
216 |
"what are the data intervals used in this study? Give me the start dates and end dates?",
|
217 |
"what are the main limitations of this study?",
|
|
|
133 |
"Citation should be done at the end of each sentence. If the search results mention multiple subjects "\
|
134 |
"with the same name, create separate answers for each. Only include information found in the results and "\
|
135 |
"don't add any additional information. Make sure the answer is correct and don't output false content. "\
|
136 |
+
"If the text does not relate to the query, simply state 'Found Nothing.Please select text-davinci-003 model.'. Ignore outlier "\
|
137 |
"search results which has nothing to do with the question. Only answer what is asked. The "\
|
138 |
"answer should be short and concise. \n\nQuery: {question}\nAnswer: "
|
139 |
|
|
|
210 |
|
211 |
# pre-defined questions
|
212 |
questions = [
|
213 |
+
"What did the study investigate?",
|
214 |
+
"Can you provide a summary of this document?",
|
215 |
"what are the methodologies used in this study?",
|
216 |
"what are the data intervals used in this study? Give me the start dates and end dates?",
|
217 |
"what are the main limitations of this study?",
|