Skip to main content

VectorItem

Represents a single vector with its associated data.

Fields


CreateIndexParams

Parameters for creating a new encrypted vector index.

Fields


Index Configuration Types

IndexModel Interface

All index configuration types implement this interface.

IVFSQ Configuration

Create an IVFSQ (Scalar Quantization) index configuration that compresses each dimension independently.

Parameters

IVFFlat Configuration

Create an IVFFlat (Inverted File Flat) index configuration for higher accuracy.

Parameters

IVFPQ Configuration

Create an IVFPQ (Inverted File with Product Quantization) index configuration for memory efficiency.

Parameters


Response Types

QueryResponse

Response from similarity search operations.
Contains search results with similar vectors and their metadata.

QueryResultItem

A single result from a similarity search query.
Represents one matching vector with its similarity score and metadata.

GetResponse

Response from Get operations containing retrieved vectors.

ListIDsResponse

Response from ListIDs operations.
Contains the list of vector IDs in the index.

Fields


TrainParams

Parameters for training an encrypted vector index.

Fields


UpsertInput Interface

Sealed interface implemented by types that can be passed to Upsert.
Valid implementations: VectorItems, BinaryUpsertParams

QueryInput Interface

Sealed interface implemented by types that can be passed to Query.
Valid implementations: QueryParams, BinaryQueryParams

VectorItems

A slice of VectorItem that implements UpsertInput for type-safe upsert operations.

BinaryUpsertParams

Parameters for binary format vector upserts. More efficient than VectorItems for large batches.

Fields


BinaryQueryParams

Parameters for binary format similarity search. More efficient than QueryParams for large batch queries.

Fields


QueryParams

Parameters for similarity search queries. Supports single vector, batch, and content-based queries.

Fields