Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -123,8 +123,9 @@ def generate_answer(question):
|
|
123 |
prompt += c + '\n\n'
|
124 |
|
125 |
prompt += "Compose a comprehensive reply to the query using the search results given. "\
|
126 |
-
"Only
|
127 |
-
"
|
|
|
128 |
|
129 |
answer = generate_text(prompt, "davinci")
|
130 |
return answer
|
|
|
123 |
prompt += c + '\n\n'
|
124 |
|
125 |
prompt += "Compose a comprehensive reply to the query using the search results given. "\
|
126 |
+
"Only include information found in the results. "\
|
127 |
+
"If the text does not relate to the query, simply state 'Text Not Found in Body of Knowledge'. "\
|
128 |
+
"\n\nQuery: {question}\n Answer: "
|
129 |
|
130 |
answer = generate_text(prompt, "davinci")
|
131 |
return answer
|