Share via


IVectorSearchable<TRecord> Interface

Definition

Defines an interface for performing vector searches on a vector store.

generic <typename TRecord>
public interface class IVectorSearchable
public interface IVectorSearchable<TRecord>
type IVectorSearchable<'Record> = interface
Public Interface IVectorSearchable(Of TRecord)

Type Parameters

TRecord

The record data model to use for retrieving data from the store.

Derived

Methods

GetService(Type, Object)

Asks the IVectorSearchable<TRecord> for an object of the specified type serviceType.

SearchAsync<TInput>(TInput, Int32, VectorSearchOptions<TRecord>, CancellationToken)

Searches the vector store for records that are similar to the given value.

Extension Methods

GetRequiredService<TRecord>(IVectorSearchable<TRecord>, Type, Object)

Asks the IVectorSearchable<TRecord> for an object of the specified type serviceType and throws an exception if one isn't available.

Applies to