Commit ·
339275d
1
Parent(s): 9ed4050
Update app.py
Browse files
app.py
CHANGED
|
@@ -25,7 +25,7 @@ def construct_index(directory_path):
|
|
| 25 |
return index
|
| 26 |
|
| 27 |
def chatbot(input_text):
|
| 28 |
-
predetermined_text = "- at all times please only answer using information contained in documents in the 'docs' directory
|
| 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 = "- at all times please only answer using information contained in documents in the 'docs' directory"
|
| 29 |
input_text = input_text + predetermined_text
|
| 30 |
index = GPTSimpleVectorIndex.load_from_disk('index.json')
|
| 31 |
response = index.query(input_text, response_mode="compact")
|