ITZMA vector database documentation
Itzma is vector retrieval on top of object storage, written in Rust, with Python bindings. Vectors are stored as plain objects in a bucket. There is no server between the caller and the data: any process that can reach the bucket can write, and any process can query. Correctness rests on two things the object store already does: put-if-absent, which writes an object only if its key is free, and conditional update, which replaces one only if nobody changed it first.
It is a library. You embed it in your process, open a namespace, and S3, GCS or Azure (or a local directory, or memory) holds the data.
What it does
- Namespaces with a fixed dimension and metric (L2, cosine, dot product).
- Dense vector search, exact or through an index: HNSW (the default) or SQ8 with clustered partitions.
- Sparse vectors, lists of (term id, weight) pairs stored beside the dense one, with an exact sparse query and an optional inverted index.
- Typed attributes, declared when the namespace is created, and filters on them, alone or narrowing a vector query.
- Upserts and deletes in batches, safe with many writers at once, with optional idempotency keys so a retry doesn’t write twice.
- S3, GCS and Azure, through adapters on each vendor’s own SDK, plus anything else
object_storesupports, local disk and in-memory stores. - Compaction, garbage collection and manifest recovery.
- A RAM and NVMe read cache and a cache of decoded structures.
- Rust and Python APIs; NumPy and Arrow input in Python.
- A read-only health report and a byte budget on every read.
User guide
- Getting started
Create a namespace, write documents and query them, in Rust or Python.
- Installation
Install the Python package from PyPI, add the Rust crate from crates.io, or build either from source.
- Concepts
Namespaces, documents and schemas, and the write-ahead log, manifest and segments they're stored as.
- Writing
Batched upserts and deletes, safe with many concurrent writers, with optional idempotency keys.
- Querying
Closest first, exact or through an index, with rerank, nprobe and filters.
- Filtering
Typed attributes, declared when the namespace is created, and predicates on them, alone or narrowing a vector query.
- Sparse vectors
(term id, weight) pairs beside the dense vector, with an exact sparse query and an optional inverted index.
- Indexing
HNSW, the default, or SQ8 with clustered partitions, built per segment.
- Maintenance
Compaction, garbage collection, the one call to schedule, recovery, and format levels.
- Caching and read budgets
A RAM and NVMe read cache, a cache of decoded structures, a byte budget on every read, and thread pools.
- Inspecting a namespace
A read-only report of what a namespace holds and what looks wrong.
Python
- Python API
The package, async handles, web servers, settings and exceptions.
Reference
- Guarantees
What a write and a query can rely on, with many writers and no coordinator.
- Storage layout and formats
The objects a namespace writes under its prefix, and their binary formats.
- Storage backends
S3, GCS, Azure or anything object_store supports, as long as it has put-if-absent and conditional update.
- Errors
The ItzmaError variants a caller usually handles, and when each happens.
- Limits
What Itzma does not do, or does only within bounds.
- Results and reports
What queries return, and what the maintenance calls report back.
- FAQ
Short answers about what Itzma is and does, each with a link to the page that covers it.
Development
- Developing Itzma
The make targets, the toolchain, and running the tests against MinIO.
Guides
- Embedded vector database for Rust and Python
How a vector database that runs inside your process works, what it asks of your application, and when it fits.
- Vector search on object storage with ITZMA
Run vector search on Amazon S3, Google Cloud Storage or Azure Blob Storage with ITZMA. Learn how writes become durable and what drives query costs.
- Build semantic search in Python with ITZMA
Embed documents with an open model, store them in ITZMA, and query them by meaning, with an attribute filter.
