Table of Contents

Method UpdateBatchAsync<TKey, TRecord>

Namespace
Oscova.Agents.Vector
Assembly
Oscova.Agents.dll

UpdateBatchAsync<TKey, TRecord>(string, IEnumerable<TRecord>, VectorStoreCollectionDefinition?)

Upserts a batch of records into a vector collection.

public Task UpdateBatchAsync<TKey, TRecord>(string collectionName, IEnumerable<TRecord> records, VectorStoreCollectionDefinition? definition = null) where TKey : notnull where TRecord : class

Parameters

collectionName string

The collection name to update.

records IEnumerable<TRecord>

The records to upsert.

definition VectorStoreCollectionDefinition?

An optional collection definition used when opening the collection.

Returns

Task

A task that completes when the batch has been upserted.

Type Parameters

TKey

The record key type.

TRecord

The vector record type.