Background

ChatPol: Police AI

Transforming a slow monolithic chatbot into a high-speed multi-agent RAG system for police inquiries.

View project
Multi-Agent RAG System-80% Response Latency4 weeksRAG ArchitectureMulti-Agent SystemsSemantic SearchLatency OptimizationLegal Documentation

See more

01. The Challenge

The original system was inefficient: a single overwhelmed agent attempting to manage over 40 complex legal documents in a single database. This resulted in unacceptable response times of 40-50 seconds, hindering police operations.

Monolithic architecture and document overload were collapsing response times.

BEFORE
Legacy System

Input: User_Query.json

02. The Solution: Multi-Agent RAG

We redesigned the system by dividing cognitive load into a specialized agent architecture with RAG:

RAG Implementation

Integration of Retrieval-Augmented Generation to connect the LLM with the document base. The system retrieves precise legal snippets before generating a response, eliminating hallucinations.

RAG Process

Domain-Specific Agents

Multi-agent architecture where a 'router' classifies the query and delegates it to the corresponding specialist agent (Traffic, Penal, Immigration), radically improving accuracy.

MODEL: MULTI-AGENT RAG
OUTPUT
Multi-Agent System
03. Business Impact

ROI & Results

Extreme Speed

Response time reduced from 50s to under 10s, enabling real-time inquiries.

Legal Precision

RAG agent segmentation eliminated hallucinations by narrowing search context.

Operational Efficiency

The system now scales without performance degradation when adding more regulations.

ChatPol: Police AI | Artekia