02
Krexum.aiLive

Building a Finance AI Platform for 50+ Markets

How I built multilingual financial AI serving 22+ languages with sub-100ms response times.

Duration

12 months

Team

Solo build

Role

Founder & Technical Architect

22+
Languages
Including Hindi, Arabic, Tamil, Swahili
50+
Markets
India, GCC, East Africa, Southeast Asia
<100ms
API Latency
P95 response time for real-time queries
95%+
Accuracy
Financial document extraction accuracy
50K+
Documents/Month
Financial documents processed monthly
90%
Cost Reduction
Vs manual document review

Overview

Krexum.ai is a finance-first AI platform designed for emerging markets. It provides document intelligence, credit analysis, multilingual NLP, and financial data processing through a unified API. The platform processes thousands of financial documents daily across 22+ languages including Hindi, Arabic, Swahili, and regional Indian languages.

The Challenge

Financial AI in emerging markets faces unique challenges: documents come in dozens of languages and formats, credit data is sparse or non-existent, internet connectivity is unreliable, and regulatory requirements differ across 50+ countries. Existing AI platforms (OpenAI, Google) don't understand Indian financial documents, NBFC jargon, or regional language nuances.

The Solution

I built a domain-specific AI layer on top of foundation models, fine-tuned for financial documents. The key innovation is a preprocessing pipeline that normalizes documents from any format (scanned PDFs, WhatsApp images, handwritten forms) into structured financial data. Combined with a custom embedding model trained on Indian financial terminology, the system achieves 95%+ accuracy on document extraction across all supported languages.

Impact

Processing 50,000+ financial documents monthly across 22+ languages
95%+ accuracy on financial document extraction (vs 70% from generic OCR)
Sub-100ms API response time for real-time credit decisions
Serving clients across India, UAE, and East Africa
Reduced document processing costs by 90% vs manual review

AI Pipeline Architecture

A multi-stage document intelligence pipeline optimized for financial services.

1
Input Layer
REST APIWebSocketFile UploadWhatsApp Integration
2
Preprocessing
Document OCRLanguage DetectionFormat Normalization
3
AI Engine
Custom LLMsFinancial EmbeddingsNER ModelsSentiment Analysis
4
Domain Logic
Credit ScoringRisk AssessmentCompliance CheckFraud Detection
5
Output Layer
Structured JSONPDF ReportsWebhook CallbacksReal-time Streaming

Tech Stack

AI/ML

Custom LLMsLangChainOpenAIAnthropicHugging Face

Backend

FastAPIPython 3.11CeleryRedis

NLP

spaCyTransformersCustom EmbeddingsMultilingual BERT

Infrastructure

AWS LambdaECSS3SageMaker

Document Processing

Tesseract OCRpdf2imagePillowCustom Models

Development Timeline

Phase 1: Core AI

Months 1-3

Foundation model fine-tuning and document pipeline

Phase 2: Multilingual

Months 4-6

Expanding language support and accuracy tuning

Phase 3: Scale

Months 7-9

Production optimization and market expansion

Phase 4: Enterprise

Months 10-12

Enterprise features and compliance

Code Highlights

Multilingual Document Pipeline

Processes financial documents in any language and format

python
1class DocumentPipeline:
2    """Process financial documents in 22+ languages."""
3
4    async def process(self, document: UploadedDoc) -> FinancialData:
5        # Stage 1: Detect format and language
6        meta = await self.analyze(document)
7
8        # Stage 2: OCR with language-specific model
9        raw_text = await self.ocr_engine.extract(
10            document.content,
11            language=meta.language,
12            model=self.get_model(meta.language)
13        )
14
15        # Stage 3: Financial NER extraction
16        entities = await self.ner_model.extract(
17            text=raw_text,
18            domain="finance",
19            fields=["amount", "date", "account", "ifsc", "pan"]
20        )
21
22        # Stage 4: Structure and validate
23        structured = self.normalize(entities, meta.document_type)
24        confidence = self.calculate_confidence(structured)
25
26        return FinancialData(
27            data=structured,
28            confidence=confidence,
29            language=meta.language,
30            processing_time_ms=meta.elapsed
31        )

Real-time Credit Scoring

Instant credit decisions using alternative data

python
1class CreditScorer:
2    """Alternative credit scoring for thin-file borrowers."""
3
4    def score(self, applicant: Applicant) -> CreditScore:
5        signals = [
6            self.bank_statement_analysis(applicant.statements),
7            self.digital_footprint(applicant.phone_data),
8            self.social_signals(applicant.verified_accounts),
9            self.transaction_patterns(applicant.upi_history),
10        ]
11
12        # Weighted ensemble of alternative signals
13        weights = self.model.predict_weights(applicant.profile)
14        final_score = sum(s * w for s, w in zip(signals, weights))
15
16        return CreditScore(
17            score=int(final_score * 900),  # 0-900 scale
18            confidence=self.confidence(signals),
19            factors=self.explain(signals, weights),
20            recommendation=self.decide(final_score)
21        )

Continue Exploring