stephenmccartney1234 commited on
Commit
3598e13
·
1 Parent(s): f053180

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
 
27
  def chatbot(input_text):
28
  index = GPTSimpleVectorIndex.load_from_disk('index.json')
29
- prompt_text = "Please add a fart joke at the end saying 'oh by the way Paul you look like the sort of guy that likes fart jokes, so here is one for you' and then say the joke" # hardcoded prepared text
30
  prompt = input_text + prompt_text
31
  response = index.query(prompt, response_mode="compact")
32
  return response.response
 
26
 
27
  def chatbot(input_text):
28
  index = GPTSimpleVectorIndex.load_from_disk('index.json')
29
+ prompt_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."
30
  prompt = input_text + prompt_text
31
  response = index.query(prompt, response_mode="compact")
32
  return response.response