Why AI context matters
Fintech data is notoriously nuanced. Without specific context, AI might:- Treat a loan balance as a positive asset for a customer
- Double-count internal ACH transfers as revenue
- Misinterpret liability-centric ledger conventions
The AI context hierarchy
Omni allows you to layer context at different levels of your data model. For fintech, this hierarchy ensures that global rules (like currency) are respected while specific logic (like loan delinquency) is applied only where relevant.| Layer | Purpose | Example |
|---|---|---|
| Model | Universal truths. Global business logic and formatting rules that apply to all queries in the model. | ”Inflows are positive and outflows are negative; use USD for all reporting” |
| Topic | The persona. Definitions for specific datasets and how views relate to each other. | ”AUM includes all positive balances; exclude internal transfers from net volume.” |
| View/Field | Field precision. Specific definitions, synonyms, and allowed values for columns. | ”This view tracks credit health; ‘delinquent’ and ‘late’ statuses are At-Risk.” |
Requirements
To implement this example in your own Omni instance, you’ll need:- Familiarity with Omni’s modeling layer
- Permissions in Omni that allow you to edit a shared model
- A connected data source that contains fintech or banking-related data
Setting universal rules in the model file
The model file is where you establish your “Golden Rules.” These rules apply across every query the AI generates, ensuring consistent handling of inflows, outflows, and reporting currencies.
Setting dataset logic in the topic
Topics represent the “Customer 360” view. Use the topic-level
ai_context to define calculated metrics like Assets Under Management (AUM) or Wallet Share so the AI doesn’t have to guess which accounts to include in a balance check.Adding precision at the view level
View-level context handles the specific quirks of your tables. For example, you can instruct the AI to ignore certain dimensions (like birth years) when analyzing business entities or define which specific statuses represent a “total loss” for the bank.
Iterating on AI context
Improving AI quality is an iterative process. As you launch new financial products or change your lending criteria, update your context. Think of AI context as living documentation for your ledger: the more precise you are, the less time your team spends making corrections. Iteration involves a feedback loop between user queries and model updates:- Monitor: Use the AI usage dashboard in the Analytics section to find queries with negative (👎) feedback.
- Identify: Did the AI fail due to a cryptic name, a missing join, or a lack of business logic?
- Tune: Update the YAML at the appropriate level (model, topic, view).
- Verify: Re-run the prompt in the Query Helper to ensure changes work as expected.
- Update for product launches: When your platform introduces a new payment rail like FedNow or a new loan product, update the
all_valuesandai_contextparameters to reflect the new taxonomy.
Next steps
- Model-level ai_context — Reference for model-level
ai_contextsyntax - Topic-level ai_context — Reference for topic-level
ai_contextsyntax - View-level ai_context — Reference for view-level
ai_contextsyntax - Optimize models for Omni AI — Broader guidance on optimizing your model for AI