Intelligent CCPA Compliance Analyzer
Describe how a business handles personal data and get back whether it breaks California's privacy law, with the sections it breaks. The answer comes from the statute itself, not the model's memory.
What it is
We built this at OpenHack 2026 at IISc Bangalore. You describe, in plain language, how a business handles people’s data, and it tells you whether that breaks the California Consumer Privacy Act and which sections. The answer is grounded in the text of the law, not in whatever the model happens to remember.
It’s a retrieval-augmented generation (RAG) pipeline. I split the statute into its 212 subsections and embedded them with bge-small into ChromaDB. For each question, the five closest subsections go into a strict few-shot prompt, and the model replies with a verdict, the sections involved and an explanation.
We were a team, and I wrote most of it: 64 of the 68 commits on the main branch, covering the statute parsing, retrieval, the LLM engine, the API and the Docker packaging. After the hackathon I rebuilt the model layer on the Gemini API and added a React interface that streams answers as they’re written.
The hard parts
Legal retrieval has to be precise, so I indexed each subsection on its own. That way the model gets the exact clause it needs to reason about.
A wrong citation is worse than no citation. If the model’s output can’t be parsed, or it claims a violation without citing a real section, the system answers “not harmful” rather than guessing.
During the event, getting an open-weight reasoning model to run reliably took a lot of the time. It had to work on NVIDIA GPUs, on CPU and on Apple Silicon, and on the Mac it crashed in float16 until I switched to float32 and shortened the prompt.
What I had to work with
The core system went from the first commit to a working Docker image on the first day. The organisers’ test harness fixed the output format, allowed 120 seconds per request and expected the service to be ready within 300 seconds of starting. We had to submit a Docker image, so the model weights had to be baked in at build time. On a 24 GB machine, the first attempts had to use 3B-parameter models. The final hackathon version ran DeepSeek-R1-Distill-Llama-8B, which needed a GPU to be usable.
How it turned out
The hackathon version passed the organisers’ sample tests and got a project recognition at OpenHack 2026. Switching to the Gemini API afterwards shrank the Docker image from about 17 GB to about 200 MB, dropped the need for a GPU, and cut response time from 60–90 seconds to under two. Now anyone can run it with their own API key and pick the model.