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 : classParameters
collectionNamestring-
The collection name to update.
recordsIEnumerable<TRecord>-
The records to upsert.
definitionVectorStoreCollectionDefinition?-
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.