# turbovec

> In-process vector index for Python and Rust that stores vectors at 2 or 4 bits with TurboQuant and searches them with SIMD

Source: https://talira.ai/catalog/turbovec-njsve7z6
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library
- Categories: [ai / vector search](https://talira.ai/categories/ai/vector-search), [databases / vector](https://talira.ai/categories/databases/vector)
- Platforms: macos, linux, windows[^4]
- Licence: MIT[^2]
- Pricing: Free and open source
- Free tier: yes
- Self-hostable: yes
- API: yes[^3]

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.

## Links

- GitHub: https://github.com/RyanCodrai/turbovec
- Docs: https://github.com/RyanCodrai/turbovec/blob/main/docs/api.md

## 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

## Trust

Overall: 0.20 out of 1.
Signals: backing 0.00, extensibility 0.20.

Warnings:

- GitHub activity not fetched yet

## Alternatives

- [Qdrant](https://talira.ai/catalog/qdrant-fte3azxr.md): High-performance, massive-scale vector database and vector search engine for the next generation of AI
- [LanceDB](https://talira.ai/catalog/lancedb-x2r3sbm7.md): Developer-friendly OSS embedded retrieval library for multimodal AI. Search More; Manage Less.
- [turbopuffer](https://talira.ai/catalog/turbopuffer-7knr20ha.md): Vector and full-text search built on object storage: fast, 10x cheaper, and extremely scalable
- [Chroma](https://talira.ai/catalog/chroma-m7z06vjv.md): Open-source search infrastructure for AI
- [Vespa](https://talira.ai/catalog/vespa-jxysaya7.md): AI search platform: vector, text and structured search with ranking at scale
- [Milvus](https://talira.ai/catalog/milvus-y366wb6h.md): A high-performance, cloud-native vector database built for scalable vector ANN search

## Sources

[^1]: https://github.com/RyanCodrai/turbovec#when-to-use-something-else (checked 22 Nov 2026)
[^2]: https://github.com/RyanCodrai/turbovec/blob/main/LICENSE (checked 22 Nov 2026)
[^3]: https://github.com/RyanCodrai/turbovec/blob/main/docs/api.md (checked 22 Nov 2026)
[^4]: https://pypi.org/project/turbovec/#files (checked 22 Nov 2026)
