Spaces:
Sleeping
Sleeping
arabellastrange
commited on
Commit
•
986fbe3
1
Parent(s):
cdd3710
editing conversation history use
Browse files- generate_response.py +1 -1
generate_response.py
CHANGED
@@ -50,7 +50,7 @@ def generate_query_response(index, message):
|
|
50 |
|
51 |
logger.info(f'Input user message: {message}')
|
52 |
response = query_engine.query(f"Write a comprehensive but concise response to this query, if conversation history "
|
53 |
-
f"is irrelevant to this query, ignore conversation
|
54 |
|
55 |
response_text = []
|
56 |
for text in response.response_gen:
|
|
|
50 |
|
51 |
logger.info(f'Input user message: {message}')
|
52 |
response = query_engine.query(f"Write a comprehensive but concise response to this query, if conversation history "
|
53 |
+
f"is irrelevant to this query, ignore conversation history: \n '{message}'")
|
54 |
|
55 |
response_text = []
|
56 |
for text in response.response_gen:
|