Aaron “Alex” HuusLAB + SYSTEMS + SOFTWARE
← All applications

Application case study · In development

Chat Browser

A local archive for searching years of ChatGPT conversations by exact phrase or by meaning.

The problem

A useful reply can be buried years back, and the words you remember may differ from the ones you used. Related ideas can be spread across separate conversations.

The solution

Chat Browser imports ChatGPT exports into a SQLite archive on your computer. Text searches run against the local archive, and optional passage embeddings surface related ideas across independent chats. Each match links back to the original exchange.

Visual demonstration

Semantic search for keeping balcony herbs hydrated while traveling, with differently worded matches from 2023, 2026, and 2024.
One query finds three conversations about keeping plants watered while away, across a synthetic archive spanning 2023 to 2026.
Search by meaning, open the original passage, and follow a related conversation from the transcript sidebar.
A 2023 basil transcript with a sidebar linking to a parsley conversation ranked by embedding similarity.
The reader can surface related chats based on their content, even when there is no explicit link between them.
Balcony herb garden transcript with the alternate reply selected and its inline source list expanded.
The reader marks the selected path and shows imported sources alongside the reply.
Archive search for shallow planter with matching passages grouped under two conversation titles.
Literal search highlights matching text and links each passage to its transcript.
Upload receipt confirming that three synthetic conversations were added and listing links to each chat.
The upload receipt records the outcome and links to the imported chats.
Find a passage, inspect its source, and reopen it from Saved messages.

Technical implementation

Django stores the original export, normalized messages, and a conversation graph in SQLite. Literal search reads current archive rows and word search uses FTS5. A background worker prepares passage vectors on request. The app stores them in SQLite and uses cosine similarity to rank passages by how closely they match the query embedding. Results link to the original message and recover its conversation path.

Challenges & lessons learned

Keeping text search independent of the embedding model makes the archive searchable as soon as chats are imported. Semantic matches are easier to assess when each result shows the matched passage and opens its original context. A link to an alternate reply also needs to recover the path through the conversation.

In the semantic demo, the query “keep balcony herbs hydrated while traveling” has no literal match. With local Ollama embeddings, it finds discussions about basil drying out over a long weekend, a reservoir planter for parsley, and wick watering for mint. Both demos use synthetic conversations.

In a local benchmark with 100,000 synthetic messages, a one-character literal search took 11.4 ms at the 95th percentile over five warm queries. The benchmark timed archive retrieval in Python and excludes browser rendering and model inference.