Share via


ChromaClient Class

Definition

An implementation of a client for the Chroma Vector DB. This class is used to create, delete, and get embeddings data from Chroma Vector DB instance.

public class ChromaClient : Microsoft.SemanticKernel.Connectors.Chroma.IChromaClient
type ChromaClient = class
    interface IChromaClient
Public Class ChromaClient
Implements IChromaClient
Inheritance
ChromaClient
Implements

Constructors

ChromaClient(HttpClient, String, ILoggerFactory)

Initializes a new instance of the ChromaClient class.

ChromaClient(String, ILoggerFactory)

Initializes a new instance of the ChromaClient class.

Methods

CreateCollectionAsync(String, CancellationToken)

Creates Chroma collection.

DeleteCollectionAsync(String, CancellationToken)

Removes collection by name.

DeleteEmbeddingsAsync(String, String[], CancellationToken)

Removes embeddings from specified collection.

GetCollectionAsync(String, CancellationToken)

Returns collection model instance by name.

GetEmbeddingsAsync(String, String[], String[], CancellationToken)

Returns embeddings from specified collection.

ListCollectionsAsync(CancellationToken)

Returns all collection names.

QueryEmbeddingsAsync(String, ReadOnlyMemory<Single>[], Int32, String[], CancellationToken)

Searches nearest embeddings by distance in specified collection.

UpsertEmbeddingsAsync(String, String[], ReadOnlyMemory<Single>[], Object[], CancellationToken)

Upserts embedding to specified collection.

Applies to