Vector Search on Android — Finding What You Mean, Not What...
summary
Shows a working on-device semantic search pipeline that returns meaning‑matching emails and images instead of keyword hits by combining an embedding model, a vector database and chunking. Uses cosine/dot/euclidean similarity, notes common embedding sizes like 768 and 3072 dimensions, and recommends 10–20% overlap between text chunks. Mentions runtimes (LightRT, ONNX, Core ML), storage options (ObjectBox, sqlite‑vec), model size limits, and that swapping models requires re‑embedding the whole index; includes an Android/iOS benchmark repo.
AI-written summary · about
chapters (13)
- 0:00Introduction to vector search
- 1:25Problems with keyword search
- 3:14What are embedding models
- 5:19Vector databases explained
- 7:05Chunking text for embeddings
- 10:40Chunking strategies and overlaps
- 12:25Embedding and storing data
- 13:30Performing similarity search
- 14:14Finding embedding models
- 15:42Runtimes for embedding models
- 16:24Where to apply vector search
- 16:46Summary and implementation
- 18:57Q&A and resources
