← Back to Projects
Hackathon · WeMakeDevs × Cognee

ColdCache (Cold Case Connector)

Turns scattered case evidence (reports, statements, photos, audio, video, spreadsheets) into one searchable knowledge graph that links people, places and events across documents and police departments.

Links GitHub
Technologies
Python FastAPI Cognee Kuzu LanceDB SQLite Groq Ollama React Docker

What it is

Cold cases often stall because the people who could connect the dots never see the same evidence. A detective in one county has half the picture, and a detective in the next county has the other half. ColdCache is meant to be the memory they share.

You upload evidence, and an AI pipeline extracts text from it, transcribes it or describes it. A person checks the result and confirms it, and it goes into a knowledge graph for that case. From there an investigator can chat with the case, see a timeline, try what-if scenarios, and run an “Alibi Break” check that compares an alibi against everything else that’s been confirmed.

We built it for the WeMakeDevs × Cognee Hackathon, in the “Best Use of Open Source” track, which meant running Cognee ourselves. Our bet was that following links in a graph would beat plain vector search on questions that need several documents at once, like working out whether the suspect described in one report is the person named in another. The baseline in the repo shows why: vector search’s Recall@3 drops from 0.500 on single-document questions to 0.401 on multi-document ones.

There were three of us. I led the team and worked on the AI and backend side with Jesh, while Benjy did the frontend and product. Early on I added a benchmark for Cognee’s improve() step, scaled ingestion up to the full test corpus, and switched image, video and PDF understanding from a paid API to a local vision model (llava, on Ollama). In the last two days I moved the app from one demo dataset to proper multi-case workspaces, then went back over it for correctness. I made reindexing atomic, tied every graph node to its source, grounded the case chat in actual evidence, and stopped unknown dates from scrambling the timeline. All the case data is made up.

The hard parts

Uploads go through a job pipeline that streams, hashes, deduplicates and stages each file before any analysis starts. A background worker claims jobs with leases that expire, so if the server crashes or restarts, the work gets picked up again instead of getting stuck.

Groq’s free tier rate-limits you, so when it does, the app falls back to a local model on Ollama, for both text and the image and audio work. The /health endpoint shows when that’s happening.

Before anything goes into Cognee, it’s wrapped with its case ID, evidence ID, filename, type and source, so every node in the graph points back to a real document. Each of Cognee’s main operations has a job: cognify builds the graph, recall handles retrieval and the benchmark, improve folds a detective’s hunches into the graph when a case is closed, and forget deletes one case’s data without touching the rest.

What I had to work with

We had six days, June 30 to July 5. The track meant self-hosting Cognee with its built-in storage (Kuzu for the graph, LanceDB for vectors, SQLite for everything else). Groq’s free tier was why we needed the local fallback, and the local models then ran short of memory on ordinary laptops, so image and video processing had to be trimmed for low-RAM machines. The deployment we documented runs on an Oracle Cloud free VM with 2 CPUs and 12 GB of RAM.

How it turned out

We shipped on time with about 3,500 lines of backend Python, and the case workspaces were solid enough to use rather than just demo. The benchmark (26 questions over 261 made-up documents) is in the repo with the vector-search baseline measured. The graph and Cognee-vector runs on the full corpus haven’t been done yet, so “graph beats vector” is still a hypothesis.