Spaces:
Sleeping
Sleeping
Commit
·
689eb17
1
Parent(s):
6a06672
enhanced the prompt with metadata
Browse files
utils.py
CHANGED
|
@@ -166,7 +166,7 @@ def answer_question(question, query_engine, reranker, current_model, chunks_df=N
|
|
| 166 |
|
| 167 |
answer_with_time = f"""<div style='background-color: #2d3748; color: white; padding: 20px; border-radius: 10px; margin-bottom: 10px;'>
|
| 168 |
<h3 style='color: #63b3ed; margin-top: 0;'>Ответ (Модель: {current_model}):</h3>
|
| 169 |
-
<div style='line-height: 1.6; font-size: 16px;'>{response.
|
| 170 |
<div style='margin-top: 15px; padding-top: 10px; border-top: 1px solid #4a5568; font-size: 14px; color: #a0aec0;'>
|
| 171 |
Время обработки: {processing_time:.2f} секунд
|
| 172 |
</div>
|
|
|
|
| 166 |
|
| 167 |
answer_with_time = f"""<div style='background-color: #2d3748; color: white; padding: 20px; border-radius: 10px; margin-bottom: 10px;'>
|
| 168 |
<h3 style='color: #63b3ed; margin-top: 0;'>Ответ (Модель: {current_model}):</h3>
|
| 169 |
+
<div style='line-height: 1.6; font-size: 16px;'>{response.response}</div>
|
| 170 |
<div style='margin-top: 15px; padding-top: 10px; border-top: 1px solid #4a5568; font-size: 14px; color: #a0aec0;'>
|
| 171 |
Время обработки: {processing_time:.2f} секунд
|
| 172 |
</div>
|