Skip to main content
Adds new vectors to the index or updates existing ones. Supports both dictionary format and separate arrays for IDs and vectors.

Parameters

Option 1: Dictionary Format

Where each dictionary can contain:
The contents field accepts both strings and bytes. Bytes are automatically base64-encoded before encryption, while strings are passed as-is. Contents are returned in their original format (string or bytes) when retrieved with get().

Option 2: Separate Arrays

When np.ndarray is passed as vectors, they are automatically sent in an optimized binary format for better performance with large batches.

Returns

None

Example Usage

Dictionary Format

Separate Arrays