Zvec Node.js API Reference
    Preparing search index...

    Interface ZVecDocInput

    Represents an input document in Zvec, optionally containing scalar fields and vector fields.

    interface ZVecDocInput {
        id: string;
        vectors?: Record<string, ZVecVector>;
        fields?: Record<string, any>;
    }
    Index

    Properties

    Properties

    id: string

    The unique identifier for the document.

    vectors?: Record<string, ZVecVector>

    An object mapping vector field names to their corresponding vector values. Values can be standard JavaScript arrays or typed arrays (e.g., Float32Array).

    fields?: Record<string, any>

    An object mapping scalar field names to their corresponding values. Values can be scalar primitives (number, string, boolean), arrays of primitives, or typed arrays.