共用方式為


QdrantVectorStoreRecordCollection<TRecord> Class

Definition

Service for storing and retrieving vector records, that uses Qdrant as the underlying storage.

public class QdrantVectorStoreRecordCollection<TRecord> : Microsoft.Extensions.VectorData.IKeywordHybridSearch<TRecord>, Microsoft.Extensions.VectorData.IVectorizedSearch<TRecord>, Microsoft.Extensions.VectorData.IVectorStoreRecordCollection<Guid,TRecord>, Microsoft.Extensions.VectorData.IVectorStoreRecordCollection<ulong,TRecord>
type QdrantVectorStoreRecordCollection<'Record> = class
    interface IVectorStoreRecordCollection<uint64, 'Record>
    interface IVectorizedSearch<'Record>
    interface IVectorStoreRecordCollection<Guid, 'Record>
    interface IKeywordHybridSearch<'Record>
Public Class QdrantVectorStoreRecordCollection(Of TRecord)
Implements IKeywordHybridSearch(Of TRecord), IVectorizedSearch(Of TRecord), IVectorStoreRecordCollection(Of Guid, TRecord), IVectorStoreRecordCollection(Of ULong, TRecord)

Type Parameters

TRecord

The data model to use for adding, updating and retrieving data from storage.

Inheritance
QdrantVectorStoreRecordCollection<TRecord>
Implements

Constructors

QdrantVectorStoreRecordCollection<TRecord>(QdrantClient, String, QdrantVectorStoreRecordCollectionOptions<TRecord>)

Initializes a new instance of the QdrantVectorStoreRecordCollection<TRecord> class.

Properties

CollectionName

Gets the name of the collection.

Methods

CollectionExistsAsync(CancellationToken)

Checks if the collection exists in the vector store.

CreateCollectionAsync(CancellationToken)

Creates this collection in the vector store.

CreateCollectionIfNotExistsAsync(CancellationToken)

Creates this collection in the vector store if it doesn't already exist.

DeleteAsync(Guid, CancellationToken)

Deletes a record from the vector store. Does not guarantee that the collection exists.

DeleteAsync(UInt64, CancellationToken)

Deletes a record from the vector store. Does not guarantee that the collection exists.

DeleteBatchAsync(IEnumerable<Guid>, CancellationToken)

Deletes a batch of records from the vector store. Does not guarantee that the collection exists.

DeleteBatchAsync(IEnumerable<UInt64>, CancellationToken)

Deletes a batch of records from the vector store. Does not guarantee that the collection exists.

DeleteCollectionAsync(CancellationToken)

Deletes the collection from the vector store.

GetAsync(Guid, GetRecordOptions, CancellationToken)

Gets a record from the vector store. Does not guarantee that the collection exists. Returns null if the record is not found.

GetAsync(UInt64, GetRecordOptions, CancellationToken)

Gets a record from the vector store. Does not guarantee that the collection exists. Returns null if the record is not found.

GetBatchAsync(IEnumerable<Guid>, GetRecordOptions, CancellationToken)

Gets a batch of records from the vector store. Does not guarantee that the collection exists.

GetBatchAsync(IEnumerable<UInt64>, GetRecordOptions, CancellationToken)

Gets a batch of records from the vector store. Does not guarantee that the collection exists.

HybridSearchAsync<TVector>(TVector, ICollection<String>, HybridSearchOptions<TRecord>, CancellationToken)

Performs a hybrid search for records that match the given embedding and keywords, after applying the provided filters.

UpsertAsync(TRecord, CancellationToken)

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.

UpsertBatchAsync(IEnumerable<TRecord>, CancellationToken)

Upserts a group of records 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.

VectorizedSearchAsync<TVector>(TVector, VectorSearchOptions<TRecord>, CancellationToken)

Searches the vector store for records that match the given embedding and filter.

Explicit Interface Implementations

IVectorStoreRecordCollection<Guid,TRecord>.UpsertAsync(TRecord, CancellationToken)

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.

IVectorStoreRecordCollection<Guid,TRecord>.UpsertBatchAsync(IEnumerable<TRecord>, CancellationToken)

Upserts a group of records 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.

Applies to