Skip to main content

VectorItem

Represents a single vector with its associated data.

Fields

Contents is a generated nullable wrapper from the internal OpenAPI models — the type is not re-exported on the public package, so most Go code leaves the field zero-valued and relies on JSON round-tripping. If you need to set it from Go, use the generated helpers on the underlying internal.VectorItem: item.SetContents(internal.Contents{String: &s}) or item.SetContents(internal.Contents{Bytes: &b}). Contents read back from Get / Query responses are accessible via the same nullable accessors.

CreateIndexParams

Parameters for creating a new encrypted DiskIVF index.

Fields

v0.17 introduces a single DiskIVF index type. The polymorphic IndexIVFFlat / IndexIVFPQ / IndexIVFSQ constructors and the IndexModel interface have been removed.

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


Constants

Error Variables

The package exports sentinel errors that callers can match against with errors.Is: