samsonleegh commited on
Commit
1dff34d
·
verified ·
1 Parent(s): fba5f2f

update with better prompt

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -63,7 +63,7 @@ query_engine = index.as_query_engine(
63
  )
64
 
65
  def retreive(question):
66
- qns_w_source = "Answer the following question: " + question + " Followed by providing the page and file name of the source document as well, thank you!"
67
  streaming_response = query_engine.query(qns_w_source)
68
  #sources = streaming_response.get_formatted_sources(length=5000)
69
  return str(streaming_response) # + "\n" + str(sources)
 
63
  )
64
 
65
  def retreive(question):
66
+ qns_w_source = "Answer the following question: " + question + " Followed by providing the page and file name of the source document as well, thank you! As the user might get the answer he or she wants, you could help provide more details and relevant information referred for your answer. This will enable/prompt them to further phrase their questions."
67
  streaming_response = query_engine.query(qns_w_source)
68
  #sources = streaming_response.get_formatted_sources(length=5000)
69
  return str(streaming_response) # + "\n" + str(sources)