Tanav Kolar
← Back to selected work
Conversational crime analyticsKSP Datathon 2026 / 2026

Aegis.

Lets police officers query relational and geospatial crime data by voice or text, in English or Kannada, and get citation-backed answers with no hand-written SQL.

1,100+ stations
SCRB crime repository scope
4 role views
Investigator, Supervisor, Analyst, Admin
English & Kannada
Voice or text, citation-backed
01 / Context

The problem & people.

The problem

Karnataka's State Crime Records Bureau manages a growing repository of crime data from more than 1,100 police stations. Static dashboards and manual queries limit investigators' ability to explore patterns and relationships. The KSP Datathon challenge called for a conversational AI platform that could make this data easier to investigate using natural language, including crime patterns, networks, behavioural profiles and predictive insights.

The people

Karnataka State Police. Investigating officers get a mobile field tool; supervisors, analysts and admins get a desktop analytics console. All four roles use one conversational interface.

02 / Architecture

How Aegis fits together.

Follow the data, request and answer paths across the system.

Aegis architecture: data sources feed a synthetic data pipeline and Supabase. A Next.js client connects to a FastAPI backend with authentication, a semantic layer and specialist agents. The backend connects to AI services, the database and audit records, and returns cited answers.
Solid arrows show the request and answer path; dashed arrows show authentication, model and database calls. Open the diagram at full size ↗
03 / Judgment

Trust over cleverness.

Trust over cleverness. A deterministic orchestrator routes each question to a specialist agent instead of one open-ended chatbot. Every answer carries citations back to source records, and the system says it doesn't know rather than guess. Access is enforced twice, by a Postgres row-level-security policy and by an application-level query gate, so the claim can be checked in the migrations. The cost: PDF export runs as its own Chromium service, which is heavier than an in-process renderer but renders Kannada text correctly.

Predictable routing

A deterministic orchestrator routes questions to specialist agents.

  1. Question
  2. Orchestrator
  3. Specialist agent

Tradeoff:Less open-ended autonomy, in exchange for a more predictable path from question to answer.

Evidence before confidence

Every answer cites its source records. If the system cannot support an answer, it says so.

  1. Source records
  2. Citations
  3. Answer

Tradeoff:Some questions stay unanswered rather than receive an unsupported response.

Kannada, end to end

PDF export runs in its own Chromium service so Kannada text renders correctly.

  1. Kannada text
  2. Chromium service
  3. PDF report

Tradeoff:A heavier service to operate than an in-process PDF renderer.

04 / Flow

Inside the system.

  1. 1
    Ask a questionVoice or text. English or Kannada.

    Investigating officers, supervisors, analysts, and admins use one conversational interface. The question begins in their language, without hand-written SQL.

  2. 2
    Route with intentA specialist for each question.

    A deterministic orchestrator routes the question to a specialist agent. The product decision: predictable routing instead of one open-ended chatbot.

  3. 3
    Retrieve within boundsRelational and geospatial records.

    Postgres row-level security and an application-level query gate both enforce access. A conversational interface does not bypass the permissions on the underlying records.

  4. 4
    Return the evidenceCitations back to source records.

    Each answer carries citations. When evidence is insufficient, the system says it does not know. Traceability takes priority over a confident-sounding response.

05 / Try it

Try Aegis.

The same question, answered to each rank’s remit.

Live simulation using synthetic KSP records. Select any role above to inspect its view.

Current step

Four roles share one platform. The demo opens by asking which one you are.

Synthetic demo: Layout, roles and query types follow the build; maps are drawn schematically.

06 / Stack

Built with.

  • Python
  • FastAPI
  • Next.js
  • PostgreSQL
  • Supabase
Next case studyLifeOS →Local-first personal analytics