stephenmccartney1234 commited on
Commit
6cc9026
·
1 Parent(s): 000cee2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -25,7 +25,7 @@ def construct_index(directory_path):
25
  return index
26
 
27
  def chatbot(input_text):
28
- 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 'doc1' directory and say 'this is what I find in Doc1'. Then I want you to do the same but only answer it using information contained in documents in the 'doc1' directory and say this is what I find in Doc2."
29
  input_text = input_text + predetermined_text
30
  index = GPTSimpleVectorIndex.load_from_disk('index.json')
31
  response = index.query(input_text, response_mode="compact")
 
25
  return index
26
 
27
  def chatbot(input_text):
28
+ 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 'doc1' directory and say 'this is what I find in Doc1'. Then I want you to do the same but only answer it using information contained in documents in the 'doc2' directory and say this is what I find in Doc2."
29
  input_text = input_text + predetermined_text
30
  index = GPTSimpleVectorIndex.load_from_disk('index.json')
31
  response = index.query(input_text, response_mode="compact")