profile image

LLM Fraud Detection API

Nov 2025 - Present

A backend service that receives data related to financial transactions (such as online payments, credit card usage, or e-commerce activity), analyzes that data in real time or batch mode using machine learning or heuristic rules

AILLMPython

Overview This API analyzes financial transactions and provides fraud predictions using an ensemble approach that combines: Rule-Based Detection: Fast, deterministic fraud detection using configurable thresholds - LLM Analysis: Context-aware fraud detection using local Llama 3.2 - Ensemble Methods: Multiple strategies to combine both approaches for optimal accuracy Features - 5 Detection Strategies: Choose between rules-only, LLM-only, weighted ensemble, cascade, or maximum - Real-Time Analysis: Sub-second response times for rule-based detection - Explainable AI: Detailed reasoning for each fraud prediction - Local LLM: Privacy-focused using Ollama with Llama 3.2 - RESTful API: Clean, well-documented FastAPI endpoints - Configurable: Easy-to-adjust thresholds and weights - Production-Ready: Comprehensive error handling and logging