Loading...

Massive embedding datasets.
Lightweight hardware.

An embedded vector database in Rust with Python bindings — delivering 10× compression, sub-millisecond search, and zero training time.

pip install tqdb

Why TurboQuantDB?

Built for teams running large embedding datasets on real hardware budgets.

Zero Training

Quantize and search from the first insert. No offline phase, no index rebuild.

🗜️

10× Smaller on Disk

Store 1M 1536-dim embeddings in ~600 MB instead of 6 GB with 2-bit compression.

🎯

Accurate Results

Random rotation + residual sketch keep inner product rankings unbiased after compression.

🔍

Metadata Filtering

MongoDB-style filters — $eq, $gt, $in, $contains — applied at query time.

🔌

Drop-in Compatible

Swap ChromaDB or LanceDB with zero code changes. First-class LangChain support.

🏎️

Sub-ms ANN Search

HNSW + AVX2/SIMD. In-process — no network hops, no serialization overhead.

Two minutes to running

No daemon, no Docker, no config files.
Just pip install tqdb and write Python.

Full API Reference →
example.py
from tqdb import Database
import numpy as np

db = Database.open("./my_db", dimension=1536)

db.insert("doc-1",
    np.random.randn(1536).astype("f4"),
    metadata={"topic": "ml", "year": 2026},
    document="Machine learning intro"
)

results = db.search(
    np.random.randn(1536).astype("f4"),
    top_k=5,
    filter={"year": {"$gte": 2026}}
)
for r in results:
    print(r["id"], r["score"], r["document"])

Not sure which config fits your use case?

Pick your dimension and priorities — get a recommendation from data across 9 public datasets.

Open Config Advisor →

Developer Ecosystem

Embedded library, HTTP server, or drop-in replacement — pick your integration style.

🦜

LangChain RAG

Drop-in TurboQuantRetriever for any LangChain pipeline. Zero boilerplate.

from tqdb import TurboQuantRetriever
View source →
🔄

ChromaDB Drop-in

Replace ChromaDB with zero code changes using the chroma_compat shim.

from tqdb import chroma_compat as chromadb
View source →
⚙️

LanceDB Compatible

Use as a backend replacement for LanceDB with native PyArrow table ingestion.

from tqdb import lancedb_compat as lancedb
View source →