Spaces:
Runtime error
Runtime error
Commit ·
3598e13
1
Parent(s): f053180
Update app.py
Browse files
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 = "
|
| 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
|