A private AI assistant for officers and trainees to quickly reference the Texas Penal Code and local city ordinances. Get instant, cited answers without leaving the field.
Features
Built for law enforcement officers, academy trainees, and legal professionals who need fast, accurate information on state statutes and municipal codes.
Every response references specific Penal Code sections or city ordinance numbers so you can verify the source material yourself.
Runs on a local LLM via Ollama. Your queries never leave your machine — no cloud, no tracking.
Built with React Native and Expo for a smooth experience on both iOS and Android.
RAG-powered retrieval finds the most relevant statutes and delivers concise summaries in seconds.
Ideal for academy cadets and field officers to study penal code classifications, city ordinance violations, penalties, and elements of offenses.
Semantic search finds the most relevant statutes and ordinances even when you don't know the exact legal terminology.
How It Works
TexAi uses Retrieval-Augmented Generation to ground every answer in real statutory text and municipal code.
Type a plain-English question about the Texas Penal Code or a local city ordinance.
A vector search finds the most relevant Penal Code sections and city ordinances.
A local LLM synthesizes the statutes and ordinances into a clear answer citing specific section numbers.
Live Demo
We brought TexAi directly to the officers who will use it. Here's a look at our demo session with the Coppell Police Department, where we showcased real-time statute and ordinance retrieval.
Presented on the ground by Charvi Vorha.
Coppell PD · Demo with Charvi Vorha
Charvi walks officers through cited answers drawn from the Texas Penal Code and Coppell city ordinances.
Technology
Designed for speed, privacy, and portability.
React Native
Mobile UI
Expo
Cross-platform framework
FastAPI
Python backend
Ollama
Local LLM inference
LangChain
RAG orchestration
FAISS
Vector search