ChromaClient Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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. |