GenAICoder commited on
Commit
b37c24c
·
verified ·
1 Parent(s): c91c774

Update analytics/ai_assistant.py

Browse files
Files changed (1) hide show
  1. analytics/ai_assistant.py +1 -3
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."