Docs / Reference
Storage layout and formats
The objects a namespace writes under its prefix, and their binary formats.
Objects
<namespace>/
schema.json dimension, metric, attribute types; written once
manifest/current.json live segments, fold point, indexes, format levels
wal/00000000000000000001.json one object per batch (binary despite the name)
segments/<lo>-<hi>/data.bin a segment, named by the WAL range it covers
segments/<lo>-<hi>/index-<n>.bin its dense index (HNSW or SQ8), generation n
segments/<lo>-<hi>/sparse.bin its sparse vectors, only if a document has one
segments/<lo>-<hi>/sparse-idx-<n>.bin its sparse inverted index, generation n
segments/<lo>-<hi>/generation the highest index generation ever used
gc/fenced-through a hint for gc, only with fence_walFormats
schema.json and the manifest are JSON. Everything else is binary and starts with a four-byte magic:
| Object | Magic | Versions |
|---|---|---|
| WAL batch | ITZW | 2, or 3 with an idempotency key; 4 and 5 add a sparse column; ZSTD-compressed when smaller |
| WAL fence | ITZF | 4 |
| Segment | ITZS, ending ITZE | 2 (block-addressable, Bloom filter); 3 adds typed attribute columns and zone maps |
Sparse vectors (sparse.bin) | ITZS | 1 |
| Index | ITZI | 1, kind 1 (SQ8) or 2 (HNSW) |
| Sparse index | ITZP | 1 |
A reader that meets a version or kind it does not know refuses it instead of guessing; a segment whose index kind is unknown is scanned flat.
