Search every image, PDF, and video on your Mac by describing it — not by remembering its filename.
Local-first semantic search powered by Gemini embeddings + ChromaDB, visualized with Apple Embedding Atlas.
Every indexed file becomes a dot on the map. Similar files cluster together automatically.
This root README is the main onboarding document for the project. If someone is new to the repo, start here first. The folder-level README.md files are there to add local context once you drill into a specific part of the tree.
- See It In Action
- What This Project Does
- How The System Works
- How To Navigate The Repo
- Setup
- Reference & Developer Docs
Type what a file is about — resume for computer science, screenshots of code and terminals — and get ranked matches with thumbnails, text previews, and similarity scores. Filter by type (🖼 / 📄 / 🎬), watch matches light up on the scatter plot, and act on any result with Open, Show in Finder, or Delete. The demo below runs two different queries, applies an image-only filter, then clears the highlights:
Click any search result (or the ⬡ Graph button) to dive into a full-screen graph where semantically similar files sit next to each other. Pinning a node reveals its thumbnail, cluster, match score, and a Nearby panel of nearest neighbors — click one (or press ← →) to hop through the graph, with golden edges showing each node's connections:
Graph mode is a full navigation surface: a cluster legend that flies you to any cluster, type filter chips, a find-node search (Enter jumps straight to the best match), zoom controls, and a minimap you can click or drag to teleport across the map:
The Index Files button opens a built-in file explorer: pick default or custom folders, scan them, then browse exactly what's new vs. already indexed — with per-folder badges, name search, drill-down navigation, and bulk select. Indexing streams its progress live and the scatter plot rebuilds itself when it finishes:
The same search runs from a Raycast extension (search and index commands) and straight from the terminal:
python api/searcher.py "lecture notes about induction" --type pdf📸 More screenshots
At a high level, the project lets a user:
- index local files from selected folders
- embed those files into a shared semantic vector space
- search them with natural language
- browse them in a dashboard and graph/scatter visualization
- trigger indexing and some management actions from the UI, Raycast, or a macOS launcher
The repo is split into four main concerns:
- backend/API code in
api/ - browser and desktop-facing UI code in
ui-dashboard/ - persistent vector database storage in
chroma-db/<-- this will show up once you start indexing your file - generated metadata and Atlas artifacts in
search-index-data/<-- also will show up once you start indexing your files by running indexer.py
The normal lifecycle is:
api/indexer.pyscans files and creates embeddings.- Embeddings are written into ChromaDB under
chroma-db/. api/prepare_atlas.pyreads that indexed data and produces visualization artifacts insearch-index-data/.api/launch.pystarts the dashboard server and exposes the API routes used by the UI.
That means the project has two layers of data:
- search/index data in ChromaDB
- visualization/dashboard data in
search-index-data/atlas_data.parquetand related files
If a developer understands that split, the repo becomes much easier to navigate.
multimodal-search/
├── api/ # Python backend, indexing, search, and Atlas server
│ ├── launch.py
│ ├── indexer.py
│ ├── prepare_atlas.py
│ ├── searcher.py
│ └── paths.py
├── ui-dashboard/ # Browser UI, Raycast extension, and macOS launcher
│ ├── search_panel.js
│ ├── search_panel.css
│ ├── raycast-extension/
│ └── mac-app/
│ └── Multimodal Search.app
├── chroma-db/ # Persistent Chroma vector database
├── search-index-data/ # Generated metadata, manifests, parquet, caches
├── scripts/ # Raycast-friendly shell wrappers
├── requirements.txt
├── .env
└── README.md
If you are trying to understand the project quickly, use this order:
- Read
api/launch.pyto understand how the app is served and what routes exist. - Read
ui-dashboard/search_panel.jsto understand the main interactive UI behavior. - Read
api/indexer.pyto see how files become embeddings. - Read
api/prepare_atlas.pyto see how Chroma data becomes visualization data. - Read
api/searcher.pyto understand the simplest search flow without the dashboard. - Read
api/paths.pyto see the canonical repo layout and where generated/runtime files are supposed to live.
If your goal is more specific:
- API/backend bug: start in
api/ - dashboard or interaction bug: start in
ui-dashboard/search_panel.js - broken indexing: start in
api/indexer.py - graph/scatter data problem: start in
api/prepare_atlas.pyandsearch-index-data/ - Raycast issue: start in
ui-dashboard/raycast-extension/andscripts/ - launcher issue: start in
ui-dashboard/mac-app/
This is the source of truth for the backend.
launch.py: runs the server, injects the custom UI into Atlas, and exposes the API endpoints.indexer.py: discovers files, chunks PDFs, calls Gemini embeddings, and upserts vectors into ChromaDB.prepare_atlas.py: pulls vectors out of ChromaDB, computes visualization-friendly data, and writes Atlas artifacts.searcher.py: simple CLI entrypoint for search.paths.py: shared path constants so the repo structure is not hardcoded in multiple places.
This is the source of truth for user-facing UI outside the Python server.
search_panel.js: the main dashboard logic injected into Atlas.search_panel.css: styling for the panel, graph, modals, and controls.raycast-extension/: TypeScript-based Raycast extension.mac-app/: checked-in macOS app bundle and launcher wrapper.
This is runtime database state. It is not normal source code.
- stores vector collections and index files
- used directly by backend search/index code
- should not usually be hand-edited
This is generated metadata used by the dashboard and visualization layers.
atlas_data.parquet: main Atlas datasetcluster_meta.json: cluster labels/positions for graph overlaysmanifest.json: file hash tracking for incremental indexingrate_state.json: persisted Gemini rate-limit state.cache/and.umap_cache.json: projection/cache artifacts
This is a convenience layer for Raycast script commands and shell-based entrypoints. These scripts call into api/ rather than containing core business logic themselves.
- Python 3.11 or newer (the repo uses 3.13; 3.11/3.12 also work — 3.9/3.10 will not work)
- ffmpeg — required for video thumbnail extraction and clipping videos >20 MB before embedding. Install with Homebrew:
brew install ffmpeg - Tesseract OCR — required to index scanned PDFs that contain no extractable text. Install with Homebrew:
brew install tesseract - A Google Gemini API key — get one free at aistudio.google.com. The free tier covers 1,500 embedding calls per day, which is enough to index a few hundred files.
- Node.js — only needed if you want to work on the Raycast extension
If python3 --version returns 3.9 or 3.10, install a newer version first:
brew install [email protected]Then verify the path is available:
python3.11 --versiongit clone <your-repo-url> ~/multimodal-search
cd ~/multimodal-search
python3.11 -m venv venv
source venv/bin/activate
pip install --upgrade pip
pip install -r requirements.txt
pip install embedding-atlasNote: Use
python3.11(orpython3.12,python3.13) explicitly when creating the venv — not plainpython3, which may still point to the system 3.9. Once the venv is active,pythonandpipinside it always use the version it was created with.
Note:
embedding-atlasis not inrequirements.txtbecause it is a standalone Apple package. You must install it separately as shown above.
Create the root .env file with your API key:
echo "GOOGLE_API_KEY=your_key_here" > .envHybrid search drops results below a 0.45 reranked relevance score by default.
Set MULTIMODAL_MIN_RELEVANCE in .env to make that cutoff stricter or looser.
The startup sequence has a specific order that matters. Read through it before running anything.
This scans your files, embeds them with Gemini, and stores vectors in ChromaDB. With no arguments it defaults to Documents, Desktop, Downloads, Pictures, and Movies.
source venv/bin/activate
python api/indexer.pyOr specify folders explicitly:
python api/indexer.py ~/Desktop ~/DocumentsThis step makes API calls. The free tier allows ~1,450 calls per day. The indexer tracks this and will stop cleanly if you hit the limit — re-run it tomorrow and it will skip already-indexed files.
python api/prepare_atlas.pyThis computes UMAP coordinates, nearest neighbors, thumbnails, and k-means clustering, then writes search-index-data/atlas_data.parquet. You will see output like:
[1/6] Connecting to ChromaDB...
[2/6] Pulling vectors + metadata from ChromaDB...
[3/6] Loading UMAP coordinates...
...
✓ Saved atlas_data.parquet (1.5 MB, 953 rows)
python api/launch.pyThe server starts on http://localhost:5055 and opens the browser automatically. The dashboard is now fully operational — search works, the scatter plot shows your files, and graph mode is available.
After the first time, day-to-day use is just python api/launch.py. Only re-run the indexer and prepare_atlas.py when you have new files to add.
Always activate the venv first if it is not already active and make sure it is using python 3.11
source ~/multimodal-search/venv/bin/activatepython api/launch.py
python api/launch.py --port 8080 --no-browserDefault folders (Documents, Desktop, Downloads, Pictures, Movies):
python api/indexer.pySpecific folders or individual files:
python api/indexer.py ~/Desktop ~/Projects
python api/indexer.py ~/Documents ~/Downloads
python api/indexer.py --files ~/Desktop/resume.pdf ~/Pictures/photo.jpgAfter indexing, rebuild the visualization and restart the server:
python api/prepare_atlas.py
python api/launch.pyYou can also trigger a rebuild from inside the dashboard using the "Index Files" button — it handles this automatically.
python api/searcher.py "lecture notes on neural networks"
python api/searcher.py --type pdf "contract"
python api/searcher.py --type image "product screenshot"You usually need to:
- re-run
python api/indexer.py - re-run
python api/prepare_atlas.py - restart
python api/launch.py
You usually only need to:
- restart
python api/launch.py - refresh the browser
The UI assets are injected by api/launch.py, so dashboard changes typically do not require re-indexing.
Update api/paths.py first. That file should remain the single shared definition of where backend code expects the repo’s generated/runtime data to live.
These are the files a developer should know first:
api/launch.py: main server entrypointapi/indexer.py: main indexing entrypointapi/prepare_atlas.py: main visualization-prep entrypointapi/searcher.py: main CLI search entrypointui-dashboard/search_panel.js: main interactive dashboard frontend
The server created by api/launch.py exposes project-specific routes plus Atlas internals.
POST /gemini-searchPOST /open-filePOST /api/delete-items
GET /api/map-coordsGET /static/cluster_meta.jsonPOST /data/query
GET /api/scan-foldersGET /api/browsePOST /api/index-sessionGET /api/index-files-stream/{session_id}GET /api/index-stream
There are two Raycast integrations in the repo.
Point Raycast Script Commands at:
~/multimodal-search/scripts/Those wrappers call the Python backend directly.
The full extension lives in:
ui-dashboard/raycast-extension/To work on it:
cd ~/multimodal-search/ui-dashboard/raycast-extension
npm install
npm run devThe checked-in app bundle lives at:
ui-dashboard/mac-app/Multimodal Search.app
It is a thin launcher around api/launch.py. If the desktop launcher breaks, inspect:
- the bundle script in
ui-dashboard/mac-app/Multimodal Search.app/Contents/MacOS/ - the backend entrypoint in
api/launch.py
One of the easiest ways to get confused in this repo is mixing up authored code with generated output.
Source code folders:
api/ui-dashboard/scripts/
Generated/runtime folders:
chroma-db/search-index-data/
That distinction matters when debugging:
- if behavior is wrong, inspect source code first
- if results are stale or missing, inspect generated data next
Make sure .env exists at the repo root and contains:
GOOGLE_API_KEY=your_key_hereRun:
python api/prepare_atlas.pyThe usual fix is:
python api/indexer.py <folders>
python api/prepare_atlas.py
python api/launch.pyIf indexing ran but the graph/scatter is stale, the missing step is usually prepare_atlas.py.
Make sure ffmpeg is installed and available on PATH.
Check:
- whether the files were actually indexed into ChromaDB
- whether
search-index-data/manifest.jsonis stale or missing - whether you rebuilt
atlas_data.parquetafter indexing
If you add new backend behaviors, place them in api/.
If you add new dashboard interactions or views, place them in ui-dashboard/.
If you add new generated artifacts, they should generally live under search-index-data/ rather than the repo root.
If you add new runtime data stores, keep them separate from source folders so the codebase remains navigable.





