RedisHashSetVectorStoreRecordCollection<TRecord>.UpsertAsync 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 a record into the vector store. Does not guarantee that the collection exists. If the record already exists, it is updated. If the record does not exist, it is created.
public virtual System.Threading.Tasks.Task<string> UpsertAsync(TRecord record, System.Threading.CancellationToken cancellationToken = default);
abstract member UpsertAsync : 'Record * System.Threading.CancellationToken -> System.Threading.Tasks.Task<string>
override this.UpsertAsync : 'Record * System.Threading.CancellationToken -> System.Threading.Tasks.Task<string>
Public Overridable Function UpsertAsync (record As TRecord, Optional cancellationToken As CancellationToken = Nothing) As Task(Of String)
Parameters
- record
- TRecord
- cancellationToken
- CancellationToken