Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -63,7 +63,7 @@ def get_facts(user_question: str) -> str:
|
|
| 63 |
|
| 64 |
# Формируем контекст
|
| 65 |
context = "\n\n".join([node.get_content() for node in nodes]) if nodes else "Не найдено релевантных документов."
|
| 66 |
-
full_prompt = SYSTEM_PROMPT + f"\n\n
|
| 67 |
|
| 68 |
# Отправляем сообщение модели
|
| 69 |
messages = [ChatMessage(role="system", content=full_prompt)]
|
|
|
|
| 63 |
|
| 64 |
# Формируем контекст
|
| 65 |
context = "\n\n".join([node.get_content() for node in nodes]) if nodes else "Не найдено релевантных документов."
|
| 66 |
+
full_prompt = SYSTEM_PROMPT + f"\n\nБаза знаний:\n{context}\n\nПользовательский запрос: {user_question}"
|
| 67 |
|
| 68 |
# Отправляем сообщение модели
|
| 69 |
messages = [ChatMessage(role="system", content=full_prompt)]
|