Spaces:
Sleeping
Sleeping
Update analytics/ai_assistant.py
Browse files
analytics/ai_assistant.py
CHANGED
|
@@ -134,9 +134,7 @@ def generate_ai_answer(question: str, df: pd.DataFrame, as_of_month: str = None,
|
|
| 134 |
prompt = (
|
| 135 |
"You are a senior risk manager assistant responding to portfolio analytics questions. "
|
| 136 |
"Use the risk context below and answer the user clearly, describing what is happening, why it is happening, and what actions should be considered. "
|
| 137 |
-
"If you cannot answer from the data, say so clearly.
|
| 138 |
-
|
| 139 |
-
" +
|
| 140 |
"Context:\n" + summary + "\n\n" +
|
| 141 |
"Question: " + question + "\n\n" +
|
| 142 |
"Answer as a risk manager with practical, concise guidance."
|
|
|
|
| 134 |
prompt = (
|
| 135 |
"You are a senior risk manager assistant responding to portfolio analytics questions. "
|
| 136 |
"Use the risk context below and answer the user clearly, describing what is happening, why it is happening, and what actions should be considered. "
|
| 137 |
+
"If you cannot answer from the data, say so clearly." +
|
|
|
|
|
|
|
| 138 |
"Context:\n" + summary + "\n\n" +
|
| 139 |
"Question: " + question + "\n\n" +
|
| 140 |
"Answer as a risk manager with practical, concise guidance."
|