Back to projects
Apr 17, 2026
2 min read

Embedding Galaxy - 3D Semantic Image Explorer

A 3D image explorer that uses Google Gemini embedding models to map images into semantic space with visual clustering

A 3D image exploration application that maps uploaded images into semantic space using Google Gemini’s multimodal embedding model. Images arrange themselves dynamically into a visual galaxy where similar images cluster together and connect via similarity edges.

Embedding Galaxy Preview Image

Key Features

  • Multimodal Embeddings: Embeds images using gemini-embedding-2-preview (3072 dimensions) to capture both visual and semantic meaning.
  • 3D Interactive Space: Navigate through an interactive 3D galaxy using mouse and keyboard controls (fly, rotate, inspect).
  • Dynamic Clustering & Graph Connections: Visualizes cosine similarity thresholds as graph edges between related image nodes.
  • Interactive Controls: Adjust connection threshold cutoffs and node sizes in real time from the sidebar.
  • Image Inspector: Click any image node to view metadata and inspect its nearest neighbors.

Setup and Running

# 1. Clone repository and install dependencies with uv
uv sync

# 2. Configure Google AI Studio API key
echo "GOOGLE_API_KEY=your_key_here" > .env

# 3. Start local server
uv run python main.py

Then open http://localhost:8000 to upload and explore images in 3D.