stephenmccartney1234 commited on
Commit
4952f77
·
1 Parent(s): e681f38

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -26,7 +26,7 @@ def construct_index(directory_path):
26
  return index
27
 
28
  def chatbot(input_text):
29
- predetermined_text = "I want you to take the statement at the start of this query and first only answer it using information contained in documents in the 'docs' directory. If you dont find any information in the 'docs' directory then please reply 'Sorry I am still learning about this topic, can you ask me later?'"
30
  input_text = input_text + predetermined_text
31
  index = GPTSimpleVectorIndex.load_from_disk('index.json')
32
  response = index.query(input_text, response_mode="compact")
 
26
  return index
27
 
28
  def chatbot(input_text):
29
+ predetermined_text = "I want you to take the statement at the start of this query and first attempt to answer it using information contained in documents in the 'docs' directory. If you dont find any information in the 'docs' directory then you may look further around please reply 'Sorry I am still learning about this topic, can you ask me later?'"
30
  input_text = input_text + predetermined_text
31
  index = GPTSimpleVectorIndex.load_from_disk('index.json')
32
  response = index.query(input_text, response_mode="compact")