Semantic image retrieval · 2024
Text-to-Image Vector Search
Describe an image in words and find it. Multimodal embeddings in ChromaDB, orchestrated with LangChain and Gemini.
The vision
Search a photo library by meaning instead of by filename.
Problem
Images can't be searched by what's in them without manual tagging.
Solution
Images are embedded into ChromaDB. Natural-language queries go into the same vector space and the nearest neighbours come back. LangChain and Gemini orchestrate the flow, served through FastAPI and Gradio.
Architecture
- Text query to FastAPI / Gradio
- FastAPI / Gradio to Embedder
- Embedder to ChromaDB (kNN)
Engineering highlights
- ChromaDB vector store with HNSW indexing
- LangChain + Gemini orchestration
- FastAPI / Gradio interfaces