My grandfather photographed Gran Canaria for sixty years. I wanted a way to explore those photographs, and to learn more about the life and the career he lived.
A gift, and the work that made it usable
Jaime O'Shanahan donated his archive of more than 30,000 photographs to the ULPGC while he was alive, so that anyone could see it. Then the university did the hard part. For several years before he died, they spent their weekends with him, hundreds of hours, going through the photographs and cataloguing as much as they could. I am very, very grateful to them. Everything on this page is built on their work.
What they catalogued is his professional collection: 33,411 photographs in 10,795 albums, from 1940 to 2009, filed under seven themes from the environment and urban landscape to archaeology, ethnography and his travels. His personal photographs are not in it yet. I hope to do those one day.
What I wanted from it
The catalogue only answers a search for the words in a title, and most titles are an album name repeated down the roll. I wanted something the family could move through on their phones. Type what you remember and get the photo. Follow one person across fifty years. See where a picture was taken when it never had a location. Everything below is in service of those three questions.
Built with agents
I built Bravo the way I build most things now: I set the direction and coding agents wrote most of the code. I split the work into small parts that each made sense alone, such as the face pass, the embeddings, the location parser, search, and the map. Each part got a written spec, and I reviewed what came back before the next part started. The parts were then joined into one pipeline and one app.
My job was the decisions an agent can't make. That meant choosing what to ask of a vision model, judging whether search results were actually right, deciding where people should be able to correct the data, and checking everything against photos I know. The agents made it cheap to try ideas and throw them away. The direction stayed with me.
The pipeline
Nothing in the catalogue was enough on its own, so every photo goes through one offline pass that adds what the catalogue is missing. The GPU work runs on an RTX 4080 at home. The Pi only serves the results.
- Source ULPGC archive · 33,411 photos · 10,795 albums · 1940–2009
- Phase 1 · per photo, on the GPU Faces · InsightFace→ 72,320 facesImage embeddings · SigLIP 2→ 33,403 vectorsKeywords and text · Qwen2.5-VL→ 17,296 photos so far
- Phase 2 · locations Filename and folder tokens → geocoder → human review
- Phase 3 · post-processing on CPU Face clustering (HDBSCAN)→ 29 people namedDates consolidated→ 29,047 datedLocations propagated→ 11,850 on the map
- Store Postgres + pgvector
- Serve · on the Raspberry Pi Search by meaning (SigLIP text tower) · by face · by place
- Faces. InsightFace finds and embeds every face (72,320 of them). HDBSCAN clusters the embeddings, so one person can be followed across decades before anyone types a name.
- Image embeddings. SigLIP 2 (
siglip2-so400m) turns each photo into a 1152-dimension vector, stored in Postgres with pgvector and an HNSW index. - Keywords and visible text. Qwen2.5-VL reads each photo for what it shows and any writing in the frame: shop signs, labels, captions on a slide mount. 17,296 photos so far.
- Locations. Filenames and folder names carry places. A tokenizer pulls them out and sends them to a geocoder, and a curated list of places he kept returning to (the Jardín Canario, the Tafira campus, the municipalities) catches the dozen ways each one was spelled. 11,850 photos are now on the map.
Search that blends two kinds of match
The home search box runs two queries at once and merges them in the client.
- Semantic. The query goes through the SigLIP 2 text tower and the database returns the nearest image vectors. Text-to-image cosine distances are tightly bunched, so a fixed "top k" is wrong for half the queries. Instead the API returns everything within a small margin (0.03) of the best match: a narrow query returns a few photos and a broad one returns many.
- Text. Postgres trigram search over titles, albums, places, named people and the vision model's extracted text. It tolerates typos, so "Sventeniuz" still finds Sventenius.
Semantic results carry full weight and text adds 0.7 × text_score on top. A weak substring hit (the "pig" inside Spanish espigas) scores around 0.1, so it can't bury a real match. Every photo also has a "more like this" strip, a plain nearest-neighbour lookup on its own vector with no model inference at request time.
This is what made the stories possible. Only two photos have "jeep" in the title. A semantic search for "jeep" returns dozens.
