VectorStore.GetCollection<TKey,TRecord> Yöntem
Tanım
Önemli
Bazı bilgiler ürünün ön sürümüyle ilgilidir ve sürüm öncesinde önemli değişiklikler yapılmış olabilir. Burada verilen bilgilerle ilgili olarak Microsoft açık veya zımni hiçbir garanti vermez.
Vektör deposundan bir koleksiyon alır.
[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)
Tür Parametreleri
- TKey
Kayıt anahtarının veri türü.
- TRecord
Koleksiyondan veri eklemek, güncelleştirmek ve almak için kullanılacak kayıt veri modeli.
Parametreler
- name
- String
Koleksiyonun adı.
- definition
- VectorStoreCollectionDefinition
Kayıt türünün şeması.
Döndürülenler
Koleksiyondaki kayıtları yönetmek için yeni VectorStoreCollection<TKey,TRecord> bir örnek.
- Öznitelikler
Açıklamalar
Bir koleksiyonu başarıyla istemek için, TRecord kayıt türünün şemasını tanımlayan özniteliklerle ek açıklama eklenmelidir veya definition sağlanmalıdır.