Inspiration
A single investigation can involve a seized phone, a laptop image, an email export and a pile of chat logs: tens of thousands of messages, browser rows, call records, photos and documents. Investigators still read most of it by hand. AI tools promise to help, but they answer like oracles: a confident paragraph, no sources, and no way to tell which piece of evidence a conclusion actually rests on.
We wanted the opposite: a general tool for any digital evidence, where every claim points to the exact record it came from, and where you can take a piece of evidence away and watch what happens to the conclusions. In forensics, "what if this message is fake?" is a normal question. Software should be able to answer it.
What it does
Blanc is case-agnostic: it works on whatever was extracted from a device, not on one dataset or one kind of crime. You import the evidence (text, CSV, JSON, email, images and PDFs, from phones, computers or exported accounts) into a case that stays on your machine. You ask a question in plain English, and Blanc returns:
- an answer, with each claim labelled observed, reported, inferred or unresolved;
- a relationship map and a timeline, where every connection and event cites its sources;
- one click from any citation to the original record: the file, its exact location, its timestamp, and the text or image itself.
Then you can exclude a record. Blanc reruns retrieval and analysis without it and shows which findings still hold, which are weakened, and which no longer have support, with the wording "the exclusion does not show it did not happen". You can restore it, ask follow-up questions, and put any two versions side by side. Every run is saved as an immutable revision, so nothing you saw is ever rewritten.
When Blanc's evidence window leaves out records that one of its searches ranked highly, it asks: "Want more evidence?", and spells out the trade-offs (slower, can be less precise, more text sent to the model) before you say yes.
We've tested it on simulated investigations from Digital Corpora, including a phone (the 2019 "Owl" scenario) and a computer (the 2019 "Narcos" scenario). Nothing about either case is hard-coded.
How we built it
- Backend: FastAPI and SQLite, with
sqlite-vecfor vectors and FTS5 for keyword search, all in one local file. - Frontend: Next.js.
- Contracts: shared JSON Schemas, plus strict Pydantic models that the backend, frontend and a standalone validator all check against.
- Model: Gemini, for multimodal embeddings (text, images and PDFs share one vector space) and for one structured analysis call per question. The model reads the retrieved images and PDFs and can cite them like any other record.
- Install: one command,
docker compose up, on a laptop. The case database lives in a local Docker volume. - Sign-in: a local server session (hashed passwords, a signed cookie) that both the app and the API check.
Retrieval is hybrid. A vector search and a keyword search each rank the case's records, and we fuse the two lists with reciprocal rank fusion:
$$ \text{score}(r) = \sum_{\text{retrievers}} \frac{w}{k + \text{rank}(r)}, \qquad k = 60 $$
The top records, up to 16 or a 32,000-character budget, become the model's evidence window. Images and PDFs get their own slots on top, so a photo-heavy case can't crowd out the text.
The model never gets the last word. The server checks every citation against the records it actually retrieved, removes any reference to excluded or unseen evidence, and retries once before marking an answer needs review. Investigator notes and review flags are stored separately and are never sent to the model.
Challenges we ran into
Fusion buried the right evidence. On one question, two texts that answered it ranked 10th and 16th by meaning alone. Weak keyword matches on JSON field names pushed them to 17th and 19th after fusion, just outside the window. Rather than ask investigators to tune a limit, we built "Want more evidence?": Blanc offers a larger window only when a record that one search ranked inside the window lost its place in fusion. Our first version, which offered whenever anything was cut, fired on every question. The final rule fires on 2 of 5 test questions.
Photos took text's place. When we added images and PDFs to retrieval, a question that matched photo file names could push almost all the text out of the window: in one test, the model received 1 of 4 relevant text records. We gave media its own slots on top of the text slots, and added that case as a regression test.
Our own checker was wrong. On the unanswerable question ("What was being delivered?"), our evaluation marked Blanc as failing. Reading the actual output, the answer was right: it said the contents weren't stated and gave only the sourced context that a delivery was arranged. The rule banned any claim, so we fixed the checker, not the model, and documented its limit.
Exclusion can still leak. A rerun sees earlier findings for context. We drop every finding that cites the excluded record, but one citing other records can still paraphrase it. We documented that limit instead of claiming it was solved.
IDs aren't identity. The model renames findings on every run, so we match them by structure: exact wording for claims, and endpoints, type and entity labels for edges. A reworded finding is linked as "possibly the same finding" and left for the investigator to confirm.
Accomplishments that we're proud of
- One pipeline, no case-specific code. A real phone image (Digital Corpora's "Owl", 32 records) ran through the pipeline with no code changes. On 5 hand-verified questions it scored 4/5 (38 of 41 checks), and 5/5 (41 of 41) once the investigator accepts "Want more evidence?". That includes the unanswerable question, where Blanc says it can't tell instead of guessing.
- We audited the demo from a clean install: every claim, connection and timeline event opened the right record, and we checked each locator against the original phone export.
- Excluding a pivotal record changes the conclusions the way a human expects: a claim that rested only on it loses support, while one with independent sources keeps it.
- Every claim, connection and event is traceable to an original record, and the server, not the model, decides what counts as a valid citation.
What we learned
- Measure before you tune. Several "obvious" fixes looked right in theory and failed on real data.
- A model's answer is a claim, not a fact. Making claims traceable mattered more than making answers sound smarter.
- Check the checker. An evaluation rule can be wrong too; read the output before blaming the model.
- Being honest about limits (paraphrase leaks, cloud compute for the model, a five-question sample) is part of the product.
What's next for blanc.
- Fully offline models, so no evidence text or image leaves the machine. Today storage is local, but the model call goes to Gemini.
- More cases with verified answer keys, so every case is measured the way we measured Owl.
- Team deployment on agency-controlled infrastructure: SSO, per-case access and an audit log of who did what.
Built With
- ajv
- docker
- fastapi
- gemini-embeddings
- github-actions
- google-gemini
- next.js
- node.js
- pydantic
- pytest
- python
- react
- react-flow
- ruff
- sqlalchemy
- sqlite
- sqlite-fts5
- sqlite-vec
- tailwind-css
- typescript
- uvicorn