Search photos, voice notes and reports offline on your phone

The AI Automators build an Android app on EmbeddingGemma 2 that finds a maintenance contractor's photos, voice notes and reports from a typed description, fully offline in airplane mode.

The AI Automators · YouTube · published Oct 9, 2026 · Research & Knowledge

Search photos, voice notes and reports offline on your phone — video by The AI Automators▶ Watch on YouTube
Prompt
Build an app that indexes the photos, voice notes and documents in [folder] with EmbeddingGemma 2 so I can search them offline by describing what I'm looking for, or by taking a photo.

Sponsored

Advertise here →

Visual breakdown

He built a native Android app for a maintenance contractor that searches photos, voice notes and reports just by describing what you want, fully offline, using Google's open Embedding Gemma 2 model. Text, images, audio, video and PDFs all live in one shared search index.

The problem: Field workers like maintenance contractors need to find records spread across photos, voice notes and documents, often in a basement with no signal.

How the offline search works

  1. Mixed filesText notes, photos, PDFs, videos, audio and WhatsApp voice notes, per building
  2. Embedding Gemma 2Under 1B parameters, runs on the phone; embeds every format
  3. One shared indexAll formats in a single vector space, clustered by meaning
  4. Text, photo or voice queryType, take a camera photo, or use offline Android transcription
  5. Nearest matches + calibrationQuery is embedded and closest items returned; calibration evens out file types
    Dropped: Bias toward the query's own file type
  6. Ranked mixed resultsImage, report and voice note together, on airplane mode
InputsIndex / search logicOn-device modelResult

Other uses he suggests

  1. Marketing teams finding visuals they remember in archives
  2. Routing email attachments: damage photos to maintenance, invoices to accounts
  3. Holding uncertain cases for human review
  4. Chatting with files via an agent that calls the search as a tool

By the numbers

< 1Bmodel parameters, small enough for a phone
768embedding dimensions (can shrink to 256 or 128)
46 msto embed a query on desktop
3 GB → 1 GBindex for a million files at 256 dimensions

Build an offline multimodal search

The search itself needs no API: index a folder locally, then query it in any format.

  1. Get the open Embedding Gemma 2 model (Apache 2.0, commercial use allowed)
  2. Select a local folder and index everything nested in it
  3. Embed text, photos, audio, video and PDFs into one index
  4. Embed each query (text, photo or voice) and return the closest matches
  5. Add calibration so results aren't skewed to the query's file type
  6. Optional: add a chat model that calls the search as a tool

To let a chat model understand images or audio it finds, you must send those files to it as image or audio tokens.

What he found testing it

  • Scores favored the query's own file type: photo searches returned mostly photos, audio mostly audio.
  • Shrinking to 256 dimensions showed no noticeable quality drop on his small data set.
  • Speed was fine even on an older Samsung S21 Ultra; on desktop a text search took 39 ms on GPU and 50 ms on CPU, a photo search about 1.5 s.
  • Search is not synthesis: the embedding model only finds items, so his chat model couldn't tell what the videos showed.

Distilled from the video’s captions

How to try it

  1. Open EmbeddingGemma.
  2. Copy the prompt and fill in the [placeholders].
  3. Watch The AI Automators's video for the full walkthrough and setup.

Related use cases

Share