Interface UpsertResult

The result of a vector store upsert operation.

UpsertResult

interface UpsertResult {
    upsertedCount: number;
    upsertedIds?: string[];
    failedCount?: number;
    errors?: {
        id: string;
        message: string;
        details?: any;
    }[];
}

Properties

upsertedCount: number

The number of documents successfully upserted.

upsertedIds?: string[]

Optional array of IDs of the upserted documents.

failedCount?: number

The number of documents that failed to upsert.

errors?: {
    id: string;
    message: string;
    details?: any;
}[]

Detailed information about any failures.

Type declaration

  • id: string
  • message: string
  • Optional details?: any