Pinecone TypeScript SDK - v9.0.0
    Preparing search index...

    Interface BatchUpsertDocumentsError

    One failed batch within a batched upsert.

    interface BatchUpsertDocumentsError {
        batchIndex: number;
        disposition: BatchUpsertDisposition;
        documents: DocumentRecord[];
        error: Error;
        errorMessage: string;
    }
    Index
    batchIndex: number

    Zero-based position of this batch in the chunked sequence.

    Whether sending was attempted. See BatchUpsertDisposition.

    documents: DocumentRecord[]

    The documents this batch carried, ready to be passed back in for a retry.

    error: Error

    What the attempt produced, or a Errors.PineconeBatchUpsertUnsentError for an unsent batch.

    errorMessage: string

    error.message, lifted out so a failure can be logged or serialized without unwrapping.