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

    Interface ZVecDoc

    Represents a document in Zvec, containing scalar fields, vector fields, and a score.

    interface ZVecDoc {
        id: string;
        vectors: Record<string, ZVecVector>;
        fields: Record<string, any>;
        score: number;
    }
    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.

    score: number

    A relevance score associated with the document, often returned by search operations.