GenAICoder commited on
Commit
6e48dc6
·
verified ·
1 Parent(s): 2b40c53

Update analytics/ai_assistant.py

Browse files
Files changed (1) hide show
  1. analytics/ai_assistant.py +1 -1
analytics/ai_assistant.py CHANGED
@@ -319,7 +319,7 @@ def generate_ai_answer(question: str, df: pd.DataFrame, as_of_month: str | None
319
  request_spec = _infer_data_request(question, as_of_month=as_of_month, segment=segment)
320
  context = _build_context_from_spec(df, request_spec)
321
  prompt = (
322
- "You are a senior risk manager assistant responding to portfolio analytics questions. "
323
  "Use the risk context below and answer the user clearly, describing what is happening, why it is happening, and what actions should be considered. "
324
  "If you cannot answer from the data, say so clearly.\n\n"
325
  "Data request spec:\n" + json.dumps(request_spec, indent=2) + "\n\n"
 
319
  request_spec = _infer_data_request(question, as_of_month=as_of_month, segment=segment)
320
  context = _build_context_from_spec(df, request_spec)
321
  prompt = (
322
+ "You are a senior risk manager assistant responding to portfolio analytics questions. For conext the higher the delinquency and NCL rates the worse it is. So a Y1 NCL rate of 15% is worse than a 11%. Same is true for the DPD metrics"
323
  "Use the risk context below and answer the user clearly, describing what is happening, why it is happening, and what actions should be considered. "
324
  "If you cannot answer from the data, say so clearly.\n\n"
325
  "Data request spec:\n" + json.dumps(request_spec, indent=2) + "\n\n"