In-process vector index for Python and Rust that stores vectors at 2 or 4 bits with TurboQuant and searches them with SIMD
open sourceMITself-hostablefree
turbovec is an in-process vector index for Python and Rust. It compresses each vector to 2 or 4 bits per dimension with Google Research's TurboQuant and searches the compressed form directly with SIMD kernels on ARM and x86, using a staged search that scans one bit plane and rescores the shortlist exactly. Its benchmarks show it 7.8 times smaller than float32 at 4-bit (15.5 times at 2-bit) and faster than FAISS FastScan at a matched bit rate. There is no training step: vectors are searchable as soon as they are added and can be removed in microseconds. IdMapIndex keys vectors by your own 64-bit ids, searches can be limited to an allowlist of ids or a bitmask, and sync() writes only what changed since the last call, crash-safe. It ships drop-in vector stores for LangChain, LlamaIndex, Haystack and Agno, and runs fully offline in your process.
Problems it solves
- hold millions of embeddings in memory without needing tens of gigabytes of RAM
- a faster, smaller alternative to FAISS for vector search in Python
- an embedded vector index for Rust
- local vector search for a RAG app without running a vector database server
- filter vector search results to an allowed set of ids
Features
- 2-bit and 4-bit TurboQuant quantization
- SIMD search on ARM and x86 with exact rescoring
- no training step; online add and microsecond removes
- IdMapIndex with your own uint64 ids
- allowlist and bitmask filtering
- incremental crash-safe sync() to a file
- LangChain, LlamaIndex, Haystack and Agno integrations
- Python and Rust APIs
Limitations
- Scans every vector (no graph index), so query time grows linearly with the index size.1
- Quantization is lossy: the top result matches the exact float result 96-98% of the time at 4-bit on OpenAI embeddings.1
- A library, not a server: no network API, replication or multi-tenancy.1
- Vector dimensions must be a multiple of 8 and at most 16,384; bit widths are 2 or 4.1
Capabilities
| Has an API | plan not known |
|---|---|
| Has official SDKs | plan not known |
Alternatives
The same job
These do what turbovec does.
- Qdrant High-performance, massive-scale vector database and vector search engine for the next generation of AI
- LanceDB Developer-friendly OSS embedded retrieval library for multimodal AI. Search More; Manage Less.
- turbopuffer Vector and full-text search built on object storage: fast, 10x cheaper, and extremely scalable
- Chroma Open-source search infrastructure for AI
- Vespa AI search platform: vector, text and structured search with ranking at scale
- Milvus A high-performance, cloud-native vector database built for scalable vector ANN search
