Commit ·
3723c07
1
Parent(s): 5b2b9d2
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 = "I want you to take the statement at the start of this query and answer it using
|
| 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 answer it using information contained in documents in the 'docs' directory. I want you to answer as a highly experienced insurance industry expert."
|
| 29 |
input_text = input_text + predetermined_text
|
| 30 |
index = GPTSimpleVectorIndex.load_from_disk('index.json')
|
| 31 |
response = index.query(input_text, response_mode="compact")
|