MicroNN: An On-device Disk-resident Updatable Vector Database
Authors:
- Jeffrey PoundJPJeffrey Pound
- Floris ChabertFCFloris Chabert
- Arjun BhushanABArjun Bhushan
- Ankur GoswamiAGAnkur Goswami
- Anil PacaciAPAnil Pacaci
- Shihabur Rahman ChowdhurySCShihabur Rahman Chowdhury
Preprint
Abstract
Nearest neighbour search over dense vector collections has important applications in information retrieval, retrieval augmented generation (RAG), and content ranking. Performing efficient search over large vector collections is a well studied problem with many existing approaches and open source implementations. However, most state-of-the-art systems are generally targeted towards scenarios using large servers with an abundance of memory, static vector collections that are not updatable, and nearest neighbour search in isolation of other search criteria. We present Micro Nearest Neighbour (MicroNN), an embedded nearest-neighbour vector search engine designed for scalable similarity search in low-resource environments. MicroNN addresses the problem of on-device vector search for real-world workloads containing updates and hybrid search queries that combine nearest neighbour search with structured attribute filters. In this scenario, memory is highly constrained and disk-efficient index structures and algorithms are required, as well as support for continuous inserts and deletes. MicroNN is an embeddable library that can scale to large vector collections with minimal resources. MicroNN is used in production and powers a wide range of vector search use-cases on-device. MicroNN takes less than 7 ms to retrieve the top-100 nearest neighbours with 90% recall on publicly available million-scale vector benchmark while using ~10 MB of memory.Keywords
All Related Versions
This publication has 18 references indexed in Scilit:
- Survey of vector database management systemsThe VLDB Journal, 2024
- Filtered-DiskANN: Graph Algorithms for Approximate Nearest Neighbor Search with Filters2023
- Amazon Shop the Look: A Visual Search System for Fashion and Home2022
- Milvus2021
- Billion-Scale Similarity Search with GPUsIEEE Transactions on Big Data, 2019
- Revisiting the Inverted Indices for Billion-Scale Approximate Nearest Neighbors2018
- Billion-scale Commodity Embedding for E-commerce Recommendation in Alibaba2018
- The Inverted Multi-IndexIEEE Transactions on Pattern Analysis and Machine Intelligence, 2014
- Searching in one billion vectors: Re-rank with source coding2011
- Product Quantization for Nearest Neighbor SearchIEEE Transactions on Pattern Analysis and Machine Intelligence, 2010