Share via


IChromaClient.GetEmbeddingsAsync Method

Definition

Returns embeddings from specified collection.

public System.Threading.Tasks.Task<Microsoft.SemanticKernel.Connectors.Chroma.ChromaEmbeddingsModel> GetEmbeddingsAsync (string collectionId, string[] ids, string[]? include = default, System.Threading.CancellationToken cancellationToken = default);
abstract member GetEmbeddingsAsync : string * string[] * string[] * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.SemanticKernel.Connectors.Chroma.ChromaEmbeddingsModel>
Public Function GetEmbeddingsAsync (collectionId As String, ids As String(), Optional include As String() = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ChromaEmbeddingsModel)

Parameters

collectionId
String

Collection identifier generated by Chroma.

ids
String[]

Array of embedding identifiers.

include
String[]

Array of entities to include in response (e.g. "embeddings", "metadatas" "documents"). For more information see: https://github.com/chroma-core/chroma/blob/main/chromadb/api/types.py

cancellationToken
CancellationToken

The CancellationToken to monitor for cancellation requests. The default is None.

Returns

Instance of ChromaEmbeddingsModel model.

Applies to