Member Junction
    Preparing search index...

    Everything a reader on another thread needs to score a store, plus version stamps.

    interface VectorStoreSnapshot {
        Data: VectorArray;
        Dims: number;
        Generation: number;
        Live: Uint8Array<ArrayBufferLike>;
        LiveCount: number;
        Norms: Float64Array<ArrayBufferLike>;
        Precision: VectorPrecision;
        RowCount: number;
        StoreID: number;
        Version: number;
    }

    Hierarchy (View Summary)

    Index

    Properties

    Packed row data, RowCount * Dims meaningful elements

    Dims: number

    Dimensions per row

    Generation: number

    Changes when rows are renumbered (compaction, clear)

    Live: Uint8Array<ArrayBufferLike>

    1 for a live row, 0 for a removed one

    LiveCount: number

    Live rows (RowCount minus tombstones)

    Norms: Float64Array<ArrayBufferLike>

    Sum of squares of each row, precomputed so cosine needs only a dot product

    Precision: VectorPrecision
    RowCount: number

    Number of rows written, including tombstones

    StoreID: number

    Process-unique identity of the store, stable for its lifetime

    Version: number

    Changes on every mutation