VectorStore.GetCollection<TKey,TRecord> メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
ベクター ストアからコレクションを取得します。
[System.Diagnostics.CodeAnalysis.RequiresDynamicCode("This API is not compatible with NativeAOT. For dynamic mapping via Dictionary<string, object?>, use GetDynamicCollection() instead.")]
[System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("This API is not compatible with trimming. For dynamic mapping via Dictionary<string, object?>, use GetDynamicCollection() instead.")]
public abstract Microsoft.Extensions.VectorData.VectorStoreCollection<TKey,TRecord> GetCollection<TKey,TRecord>(string name, Microsoft.Extensions.VectorData.VectorStoreCollectionDefinition? definition = default) where TRecord : class;
public abstract Microsoft.Extensions.VectorData.VectorStoreCollection<TKey,TRecord> GetCollection<TKey,TRecord>(string name, Microsoft.Extensions.VectorData.VectorStoreCollectionDefinition? definition = default) where TRecord : class;
[<System.Diagnostics.CodeAnalysis.RequiresDynamicCode("This API is not compatible with NativeAOT. For dynamic mapping via Dictionary<string, object?>, use GetDynamicCollection() instead.")>]
[<System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("This API is not compatible with trimming. For dynamic mapping via Dictionary<string, object?>, use GetDynamicCollection() instead.")>]
abstract member GetCollection : string * Microsoft.Extensions.VectorData.VectorStoreCollectionDefinition -> Microsoft.Extensions.VectorData.VectorStoreCollection<'Key, 'Record (requires 'Record : null)> (requires 'Record : null)
abstract member GetCollection : string * Microsoft.Extensions.VectorData.VectorStoreCollectionDefinition -> Microsoft.Extensions.VectorData.VectorStoreCollection<'Key, 'Record (requires 'Record : null)> (requires 'Record : null)
Public MustOverride Function GetCollection(Of TKey, TRecord) (name As String, Optional definition As VectorStoreCollectionDefinition = Nothing) As VectorStoreCollection(Of TKey, TRecord)
型パラメーター
- TKey
レコード キーのデータ型。
- TRecord
コレクションからのデータの追加、更新、および取得に使用するレコード データ モデル。
パラメーター
- name
- String
コレクションの名前。
- definition
- VectorStoreCollectionDefinition
レコード型のスキーマ。
返品
コレクション内のレコードを管理するための新しい VectorStoreCollection<TKey,TRecord> インスタンス。
- 属性
注釈
コレクションを正常に要求するには、 TRecord レコード型のスキーマを定義する属性で注釈を付ける必要があります。または、 definition を指定する必要があります。