Concepts
Namespaces, documents and schemas, and the write-ahead log, manifest and segments they're stored as.
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.
Each write becomes an entry in a log. Compaction folds log entries into segments, and the manifest says which segments are live. A query reads the live segments plus the entries not folded yet.
Namespace
A namespace is a collection of documents that share a schema. On storage it is a key prefix, <id>/. Ids match [a-z0-9_-]{1,64}. A namespace is created explicitly, with Namespace.create in Python or Namespace::create in Rust, since its dimension and metric must be declared first.
Document
A document is an id (any string of 1 to 512 bytes), a vector and optional attrs, a JSON object whose fields the schema declares. Upserting an existing id replaces the whole document.
Schema
A schema is { dim, metric, attrs }: the vector dimension, the distance metric and the attribute fields. Every vector written or queried must have exactly dim finite components; under cosine an all-zero vector is refused too. The schema lives in the manifest and again in schema.json, which is written once and never changed, so losing the manifest does not lose it.
WAL entry
One upsert or delete call becomes one entry in the write-ahead log, committed as a whole. Entries are numbered 1, 2, 3, and so on.
Manifest
The manifest is the one object that is ever overwritten. It holds the schema, the live segments, how far the WAL has been folded into them, and which segments have an index.
Segment
A segment is an immutable object holding the live documents and deletions of a range of WAL entries, named by that range. A query reads the segments plus the WAL entries not folded yet (the tail).
The same id can appear in several of these places. The newest copy wins and hides the older ones, and a deletion hides them too; these docs call that shadowing.
Handle
A Namespace value holds the store, the id, the schema and a few hints. It holds no lock, so any number of handles, in one process or many, can work on one namespace.
