Share via


PostgresVectorStoreRecordCollection<TKey,TRecord> Class

Definition

Represents a collection of vector store records in a Postgres database.

public class PostgresVectorStoreRecordCollection<TKey,TRecord> : Microsoft.Extensions.VectorData.IVectorizedSearch<TRecord>, Microsoft.Extensions.VectorData.IVectorStoreRecordCollection<TKey,TRecord>
type PostgresVectorStoreRecordCollection<'Key, 'Record> = class
    interface IVectorStoreRecordCollection<'Key, 'Record>
    interface IVectorizedSearch<'Record>
Public Class PostgresVectorStoreRecordCollection(Of TKey, TRecord)
Implements IVectorizedSearch(Of TRecord), IVectorStoreRecordCollection(Of TKey, TRecord)

Type Parameters

TKey

The type of the key.

TRecord

The type of the record.

Inheritance
PostgresVectorStoreRecordCollection<TKey,TRecord>
Implements
Microsoft.Extensions.VectorData.IVectorizedSearch<TRecord> Microsoft.Extensions.VectorData.IVectorStoreRecordCollection<TKey,TRecord>

Constructors

PostgresVectorStoreRecordCollection<TKey,TRecord>(NpgsqlDataSource, String, PostgresVectorStoreRecordCollectionOptions<TRecord>)

Initializes a new instance of the PostgresVectorStoreRecordCollection<TKey,TRecord> class.

Properties

CollectionName Microsoft.Extensions.VectorData.IVectorStoreRecordCollection`2.CollectionName

Methods

CollectionExistsAsync(CancellationToken) Microsoft.Extensions.VectorData.IVectorStoreRecordCollection`2.CollectionExistsAsync(System.Threading.CancellationToken)
CreateCollectionAsync(CancellationToken) Microsoft.Extensions.VectorData.IVectorStoreRecordCollection`2.CreateCollectionAsync(System.Threading.CancellationToken)
CreateCollectionIfNotExistsAsync(CancellationToken) Microsoft.Extensions.VectorData.IVectorStoreRecordCollection`2.CreateCollectionIfNotExistsAsync(System.Threading.CancellationToken)
DeleteAsync(TKey, CancellationToken) Microsoft.Extensions.VectorData.IVectorStoreRecordCollection`2.DeleteAsync(`0,System.Threading.CancellationToken)
DeleteBatchAsync(IEnumerable<TKey>, CancellationToken) Microsoft.Extensions.VectorData.IVectorStoreRecordCollection`2.DeleteBatchAsync(System.Collections.Generic.IEnumerable{`0},System.Threading.CancellationToken)
DeleteCollectionAsync(CancellationToken) Microsoft.Extensions.VectorData.IVectorStoreRecordCollection`2.DeleteCollectionAsync(System.Threading.CancellationToken)
GetAsync(TKey, GetRecordOptions, CancellationToken) Microsoft.Extensions.VectorData.IVectorStoreRecordCollection`2.GetAsync(`0,Microsoft.Extensions.VectorData.GetRecordOptions,System.Threading.CancellationToken)
GetBatchAsync(IEnumerable<TKey>, GetRecordOptions, CancellationToken) Microsoft.Extensions.VectorData.IVectorStoreRecordCollection`2.GetBatchAsync(System.Collections.Generic.IEnumerable{`0},Microsoft.Extensions.VectorData.GetRecordOptions,System.Threading.CancellationToken)
UpsertAsync(TRecord, CancellationToken) Microsoft.Extensions.VectorData.IVectorStoreRecordCollection`2.UpsertAsync(`1,System.Threading.CancellationToken)
UpsertBatchAsync(IEnumerable<TRecord>, CancellationToken) Microsoft.Extensions.VectorData.IVectorStoreRecordCollection`2.UpsertBatchAsync(System.Collections.Generic.IEnumerable{`1},System.Threading.CancellationToken)
VectorizedSearchAsync<TVector>(TVector, VectorSearchOptions<TRecord>, CancellationToken) Microsoft.Extensions.VectorData.IVectorizedSearch`1.VectorizedSearchAsync``1(``0,Microsoft.Extensions.VectorData.VectorSearchOptions{`0},System.Threading.CancellationToken)

Applies to