Microsoft.Extensions.VectorData 命名空間

包含向量資料操作的類別與介面,包括向量搜尋、篩選、索引,以及儲存與資料模型間的映射。

類別

名稱 Description
AnyTagEqualToFilterClause

代表一個過濾子句,透過檢查由一串值組成的欄位是否包含特定值來進行過濾。

DistanceFunction

定義了一串已知的距離函數,可用來比較向量。

EqualToFilterClause

代表一個濾子句,該子句以欄位值的相等性進行過濾。

FilterClause

定義了濾子句的基底類別。

FilteredRecordRetrievalOptions<TRecord>.OrderByDefinition.SortInfo

提供一種定義屬性排序的方法。

FilteredRecordRetrievalOptions<TRecord>.OrderByDefinition

代表一個用於排序的建造者。

FilteredRecordRetrievalOptions<TRecord>

定義呼叫 GetAsync(Expression<Func<TRecord,Boolean>>, Int32, FilteredRecordRetrievalOptions<TRecord>, CancellationToken)的選項。

HybridSearchOptions<TRecord>

定義使用密集向量與字串關鍵字進行搜尋時的混合搜尋選項。

IndexKind

定義了一份可用於索引向量的知名索引類型清單。

RecordRetrievalOptions

定義呼叫 GetAsync(TKey, RecordRetrievalOptions, CancellationToken) 或 GetAsync(IEnumerable<TKey>, RecordRetrievalOptions, CancellationToken)的選項。

VectorSearchOptions<TRecord>

定義向量搜尋選項。SearchAsync<TInput>(TInput, Int32, VectorSearchOptions<TRecord>, CancellationToken)

VectorSearchResult<TRecord>

代表向量搜尋的單一搜尋結果。

VectorStore

代表一個包含記錄集合的向量儲存。

VectorStoreCollection<TKey,TRecord>

表示向量儲存中命名的紀錄集合,可用於搜尋和管理記錄,並可建立或刪除該集合本身。

VectorStoreCollectionDefinition

描述向量儲存集合中記錄的屬性。

VectorStoreCollectionMetadata

提供關於 VectorStoreCollection<TKey,TRecord>. 的元資料。

VectorStoreCollectionOptions

定義一個抽象基底類別,用於傳遞給集合的期權。

VectorStoreDataAttribute

定義一個屬性,將記錄類別上的屬性標記為「資料」。

VectorStoreDataProperty

定義向量儲存記錄的資料屬性。

VectorStoreException

定義了使用向量儲存時任何類型的故障的基礎例外類型。

VectorStoreKeyAttribute

定義一個屬性,將記錄類別上的屬性標記為向量儲存中記錄的鍵。

VectorStoreKeyProperty

定義向量儲存記錄上的一個關鍵屬性。

VectorStoreMetadata

提供關於 VectorStore. 的元資料。

VectorStoreProperty

定義向量儲存記錄屬性的基礎屬性類別。

VectorStoreVectorAttribute

定義一個屬性,用來標記記錄類別上的屬性為向量。

VectorStoreVectorProperty

定義向量儲存記錄上的向量屬性。

VectorStoreVectorProperty<TInput>

定義向量儲存記錄上的向量屬性。

介面

名稱 Description
IKeywordHybridSearchable<TRecord>

包含一種利用向量與關鍵字進行混合搜尋的方法。

IVectorSearchable<TRecord>

定義了一種在向量儲存庫上執行向量搜尋的介面。