Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -105,7 +105,7 @@ index = get_index(INDEX_FILE)
|
|
| 105 |
# passes the prompt to the chatbot
|
| 106 |
def chatbot(input_text, mentioned_person='Mediator John Haynes', confidence_threshold=0.5):
|
| 107 |
hyde= HyDEQueryTransform(include_original=True)
|
| 108 |
-
prompt = f"{mentioned_person}, please respond to: {input_text}. Only reply with contextual information
|
| 109 |
response = index.query(prompt, response_mode="default", verbose=True, query_transform=hyde)
|
| 110 |
store_message(input_text,response)
|
| 111 |
|
|
|
|
| 105 |
# passes the prompt to the chatbot
|
| 106 |
def chatbot(input_text, mentioned_person='Mediator John Haynes', confidence_threshold=0.5):
|
| 107 |
hyde= HyDEQueryTransform(include_original=True)
|
| 108 |
+
prompt = f"In character as {mentioned_person}, please respond to: {input_text}. Only reply with contextual information or say you cannot find an answer. End with a reflective question."
|
| 109 |
response = index.query(prompt, response_mode="default", verbose=True, query_transform=hyde)
|
| 110 |
store_message(input_text,response)
|
| 111 |
|