Skip to main content

Core Types

Embeddings

Embeddings are represented as arrays of numbers. A single embedding is a one-dimensional array, while multiple embeddings are a two-dimensional array. Example:

Documents

Documents are text strings that can be embedded automatically. Example:

IDs

IDs are unique identifiers for items in a collection. Example:

Metadata

Metadata is a key-value object that can be attached to items. Values can be strings, numbers, or booleans. Example:

CollectionMetadata

Metadata that can be attached to a collection. Example:

Query Types

Where

Operators:
  • Comparison: $eq, $ne, $gt, $gte, $lt, $lte
  • Inclusion: $in, $nin
  • Logical: $and, $or
Example:

WhereDocument

Operators:
  • $contains - Document contains the string
  • $not_contains - Document does not contain the string
  • $and - Logical AND
  • $or - Logical OR
Example:

IncludeEnum

Specifies which fields to include in query and get responses. Example:

Response Types

GetResponse

Response from collection.get() operations. Example:

MultiQueryResponse

Response from collection.query() operations. Each array contains results for each query. Example:

SingleQueryResponse

Response from a single query operation.

QueryResponse

Union type for query responses.

Parameter Types

AddRecordsParams

Parameters for adding records to a collection. Must provide either embeddings or documents. Example:

QueryRecordsParams

Parameters for querying a collection. Must provide either queryTexts or queryEmbeddings. Example:

UpdateRecordsParams

Parameters for updating records in a collection. Example:

DeleteParams

Parameters for deleting records from a collection. Example:

Authentication Types

AuthOptions

Configuration for authentication. Example:

ClientAuthProvider

Interface for custom authentication providers. Example:

Embedding Function Types

IEmbeddingFunction

Interface for custom embedding functions. Example:

Configuration Types

ChromaClientParams

Parameters for creating a ChromaClient.

CreateCollectionParams

Parameters for creating a collection.

GetCollectionParams

Parameters for getting a collection.

DeleteCollectionParams

Parameters for deleting a collection.

ListCollectionsParams

Parameters for listing collections.

PeekParams

Parameters for peeking at collection contents.

ForkCollectionParams

Parameters for forking a collection.

Utility Types

PositiveInteger

Represents a positive integer value.

ConfigOptions

Configuration options for HTTP requests.