TexAi logo

Texas Law
Training with AI

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.

TexAi

Features

Everything you need to research Texas law & city ordinances

Built for law enforcement officers, academy trainees, and legal professionals who need fast, accurate information on state statutes and municipal codes.

Cited Answers

Every response references specific Penal Code sections or city ordinance numbers so you can verify the source material yourself.

Fully Private

Runs on a local LLM via Ollama. Your queries never leave your machine — no cloud, no tracking.

Mobile-First

Built with React Native and Expo for a smooth experience on both iOS and Android.

Instant Answers

RAG-powered retrieval finds the most relevant statutes and delivers concise summaries in seconds.

Officer Training

Ideal for academy cadets and field officers to study penal code classifications, city ordinance violations, penalties, and elements of offenses.

Smart Retrieval

Semantic search finds the most relevant statutes and ordinances even when you don't know the exact legal terminology.

How It Works

From question to cited answer in seconds

TexAi uses Retrieval-Augmented Generation to ground every answer in real statutory text and municipal code.

1

Ask a Question

Type a plain-English question about the Texas Penal Code or a local city ordinance.

2

Statutes Retrieved

A vector search finds the most relevant Penal Code sections and city ordinances.

3

Cited Answer

A local LLM synthesizes the statutes and ordinances into a clear answer citing specific section numbers.

Live Demo

On the ground at Coppell Police Station

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

Built with a modern stack

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