ITZMA is still taking shape, and its API can change between releases. Version 0.2.1: serde_with security fix
Docs / Reference

FAQ

Short answers about what Itzma is and does, each with a link to the page that covers it.

On this page

What is Itzma?

Itzma is vector retrieval on top of object storage, written in Rust, with Python bindings. Vectors are stored as plain objects in a bucket. It is a library: you embed it in your process, open a namespace, and S3, GCS, Azure, a local directory or memory holds the data. Concepts covers the pieces.

Does Itzma need a server or a cluster?

No. There is no server between the caller and the data, and no coordinator, lock or leader: 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 and conditional update. Maintenance starts when the application schedules it. Python also provides an explicitly started background maintainer. See the Maintenance guide for setup and backend requirements.

Which object stores does Itzma work with?

Anything that implements object_store::ObjectStore: S3, GCS, Azure, local disk and memory. Writes need put-if-absent (write only if the key is free), and every manifest change needs conditional update (replace only if unchanged). LocalFileSystem has no conditional update, so on local disk you can create, write and query, but compaction, indexing and format upgrades fail. Storage backends has the details.

Can several processes write to one namespace at once?

Yes. Each upsert or delete call is written as one object, with put-if-absent at the next sequence number. A writer that loses the race looks past that number and tries again, up to 32 times. Readers see all of a batch or none, and the higher sequence number wins for the same id. Writing and Guarantees go further.

Which index fits a namespace, HNSW or SQ8?

HNSW, the default, fetches a segment’s whole index in one request and walks the graph out of those bytes, so it is cheap once the index is warm in a cache and costs one larger read cold. SQ8 reads only the partitions a query probes, which suits uncached reads, and builds faster. A namespace can hold both. Indexing compares them.

Does Itzma support filtering and sparse vectors?

Yes. Attributes are typed and declared when the namespace is created (Bool, Number, Text, TextSet or NumberSet). A filter works alone or narrows a vector query, and the answer is the true filtered top k. A document can also carry a sparse vector of (term id, weight) pairs beside its dense one, with an exact sparse query and an optional inverted index. See Filtering and Sparse vectors.

Is Itzma on crates.io or PyPI?

Yes, both. The Python package is itzma on PyPI and the Rust crate is itzma-core on crates.io. Installation walks through both.

What doesn’t Itzma do?

Maintenance starts when the application schedules it. Python also provides an explicitly started background maintainer. See the Maintenance guide for setup and backend requirements. Vector queries do not paginate, attribute fields cannot be added after create, and one batch is at most 64 MiB. A query over unindexed segments reads every live vector in them, bounded by the read budget. Limits lists them all.

Docs
esc

Loading the docs…