arXiv:2608.28944cs.AIAug 2026

Manuscript Offprint

arXiv:2608.28944

Oculi: A Conversational Agentic Platform for Automated Credit Risk Analysis

Vennise Ho, Kristian Diana, Sandy Mourad, Milena Pilipovic, Vineel Nagisetty, Hossein Hajimirsadeghi

Vennise Ho*

venniseho14@gmail.com

Royal Bank of Canada

Kristian Diana*

dianak@mcmaster.ca

Royal Bank of Canada

Sandy Mourad*

sandymourad05@gmail.com

Royal Bank of Canada

Milena Pilipovic*

milena.pilipovic1@gmail.com

Royal Bank of Canada

Vineel Nagisetty

vineel.nagisetty@borealisai.com

RBC Borealis

Hossein Hajimirsadeghi

hossein.hajimirsadeghi@borealisai.com

RBC Borealis

Abstract

Credit risk analysis in financial institutions traditionally requires analysts to manually write SQL queries, run statistical computations, and build visualization dashboards. This is a time-consuming workflow that limits exploration to familiar segments. We introduce Oculi, a conversational platform that transforms natural language questions into comprehensive credit risk analyses, complete with data queries, statistical testing, and interactive visualizations. Oculi employs a three-layer architecture that separates reasoning (LLM-powered agent), execution (Model Context Protocol tool servers), and presentation (agentic UI), enabling analysts to discover high-risk portfolio segments. Within Oculi, a new segment discovery pipeline is proposed that combines deterministic statistical methods with LLM-guided feature selection, leveraging LLM semantic domain knowledge alongside data-driven metrics to identify meaningful, actionable portfolio segments. Evaluated on a mortgage portfolio with 200+ features, Oculi demonstrates effectiveness in discovering material risk segments previously intractable through manual exploration, reducing time-to-insight significantly while maintaining auditability and statistical rigor.

1 Introduction

Credit risk analysis is a critical function in financial institutions, requiring analysts to continuously monitor portfolio performance, identify emerging risks, and explain deviations from expected behavior. Traditional workflows involve:

  • Writing complex SQL queries against data warehouses (Spark, Hive)

  • Running statistical analyses in SAS or Python notebooks

  • Building visualization dashboards manually

  • Repeatedly analyzing the same 10–15 familiar segments due to time constraints

*Equal contribution. This work was completed at Royal Bank of Canada as part of the RBC Amplify program.

Preprint.

This manual approach suffers from three fundamental limitations: (1) exploration bottleneck—with hundreds of portfolio features, analysts cannot exhaustively explore the billions of possible feature combinations, causing them to miss emerging risks; (2) workflow fragmentation—context is lost when switching between query tools, statistical packages, and visualization platforms; and (3) reactive analysis—insights emerge only when analysts know what questions to ask.

Recent advances in Large Language Models (LLMs) and agentic AI systems [1, 2] suggest a path forward: conversational interfaces that can reason about analytical tasks, orchestrate tool execution, and present results interactively. However, most “AI analytics” systems are limited to document summarization or basic query generation, lacking the statistical rigor and domain-specific capabilities required for production financial analysis.

We present Oculi, a system that addresses these limitations through three key contributions:

  1. Agentic Architecture for Financial Analytics. We introduce a three-layer architecture (Section 4) that cleanly separates reasoning (LLM agent with ReAct loop), execution (MCP tool servers), and presentation (generative UI), enabling independent deployment and horizontal scaling while maintaining strict auditability requirements for financial services.

  2. Segment Discovery with LLM-Guided Feature Selection. We develop a pipeline (Section 5) that discovers statistically significant, material risk segments through a combination of univariate scanning, z-score testing, contribution decomposition, and LLM-guided multivariate exploration. This help find high-value segments while avoiding combinatorial explosion.

  3. Empirical Evaluation. We evaluate the pipeline on a real anonymized mortgage portfolio (Section 8), demonstrating that context-sensitive LLM-guided feature selection achieves 63% coverage of material bivariate segments while evaluating only 74% of the segment combinations required by constrained brute-force enumeration.