Model Configuration
FraudShield AI Engine is configured through a set of YAML and INI files deployed alongside the application. Configuration controls channel mapping, Base Transaction Activity (BTA) definitions, enrichment provider integration, and multi-tenant setup. This page describes each configuration file, its key parameters, and how changes are applied.
Configuration file structure
| File | Format | Purpose | Reload required |
|---|---|---|---|
fs-core.yaml |
YAML | Core engine settings: API server, database connections, profile store, enrichment provider order. | Yes — restart engine |
bta-mapping.yaml |
YAML | Maps incoming transaction_type + channel combinations to Base Transaction Activities (BTAs). |
Yes — restart engine |
enrichment-providers.yaml |
YAML | Enrichment provider credentials, endpoint URLs, timeout settings, and call order. | Yes — restart engine |
ri-config.ini |
INI | RI activation flags, score scale assignments, weight overrides, and population scope settings. | Hot-reload supported (up to 60 s lag) |
threshold-config.yaml |
YAML | Risk score thresholds and decision mapping per BTA and channel. Loaded by Decisioning Engine. | Hot-reload supported (up to 60 s lag) |
tenant-overrides.ini |
INI | Per-tenant parameter overrides for multi-tenant deployments. Values here take precedence over ri-config.ini. |
Hot-reload supported |
Core engine settings — fs-core.yaml
| Parameter | Default | Description |
|---|---|---|
server.request_timeout_ms |
3000 |
Maximum time (ms) allowed for the full scoring pipeline to complete. If exceeded, a TIMEOUT decision is returned and the transaction is approved by default (fail-open). Reduce only if your core system SLA is tighter. |
profile_store.profile_ttl_days |
90 |
How long profile data is retained. Shorter retention reduces storage cost but degrades 90-day rolling RI accuracy. |
audit_log.include_enrichment_data |
false |
When true, enrichment responses (including IP address and device fingerprint) are written to the audit log. Enable only if required for regulatory purposes, as enrichment data may be classified as PII. |
Base Transaction Activity mapping — bta-mapping.yaml
The BTA mapping file determines which detection model runs for each transaction. Every transaction_type + channel combination maps to exactly one BTA. The BTA then determines the active detection model and which RI categories are evaluated.
transaction_type or channel combination that has no BTA mapping, the engine uses the GENERIC_DEFAULT BTA and the fallback model. This generates a warning in the application log. Review unmapped combinations in the BTA Gap Report (Administration > Diagnostics).
Enrichment provider configuration — enrichment-providers.yaml
*_env_var parameter tells the engine which environment variable to read at startup.
Multi-tenant configuration
FraudShield AI supports multi-tenant deployments where multiple business units or subsidiary institutions share a single engine instance. Shared configuration applies to all tenants; tenant-specific overrides in tenant-overrides.ini take precedence.
Configuration precedence (highest to lowest)
tenant-overrides.ini— tenant-specific overridesri-config.ini— institution-wide RI settings- Built-in model defaults — factory settings
fs-core.yaml. Only scoring behavior parameters (thresholds, RI weights, model selection) should appear in tenant overrides.