Type alias UpdateOptions<T>

UpdateOptions<T>: {
    id: RecordId;
    metadata?: Partial<T>;
    sparseValues?: RecordSparseValues;
    values?: RecordValues;
}

This type is very similar to PineconeRecord, but differs because the values field is optional here. This is to allow for situations where perhaps the caller only wants to update metadata for a given record while leaving stored vector values as they are.

Type Parameters

Type declaration

  • id: RecordId

    The id of the record you would like to update

  • Optional metadata?: Partial<T>

    The metadata you would like to store with this record.

  • Optional sparseValues?: RecordSparseValues

    The sparse values you would like to store with this record.

  • Optional values?: RecordValues

    The vector values you would like to store with this record