IChromaClient.UpsertEmbeddingsAsync Method
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.
Upserts embedding to specified collection.
public System.Threading.Tasks.Task UpsertEmbeddingsAsync (string collectionId, string[] ids, ReadOnlyMemory<float>[] embeddings, object[]? metadatas = default, System.Threading.CancellationToken cancellationToken = default);
abstract member UpsertEmbeddingsAsync : string * string[] * ReadOnlyMemory<single>[] * obj[] * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Function UpsertEmbeddingsAsync (collectionId As String, ids As String(), embeddings As ReadOnlyMemory(Of Single)(), Optional metadatas As Object() = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task
Parameters
- collectionId
- String
Collection identifier generated by Chroma.
- ids
- String[]
Array of embedding identifiers.
- embeddings
- ReadOnlyMemory<Single>[]
Array of embedding vectors.
- metadatas
- Object[]
Array of embedding metadatas.
- cancellationToken
- CancellationToken
The CancellationToken to monitor for cancellation requests. The default is None.