cogcorp commited on
Commit
cefa4e1
·
1 Parent(s): 03bef98

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
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 answer what is asked. "\
127
- "Answer step-by-step. \n\nQuery: {question}\n Answer: "
 
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