IQdrantCollectionManager
IQdrantCollectionManager arayüz dokümantasyonu
IQdrantCollectionManager
Amaç: Qdrant koleksiyonlarını ve doküman depolamayı yönetmek için arayüz
Namespace: SmartRAG.Interfaces.Storage.Qdrant
Qdrant vektör veritabanı için koleksiyon yaşam döngüsü yönetimi.
Metodlar
EnsureCollectionExistsAsync
Ana koleksiyonun var olduğundan ve işlemler için hazır olduğundan emin olur.
Task EnsureCollectionExistsAsync()
CreateCollectionAsync
Belirtilen vektör parametreleri ile yeni bir koleksiyon oluşturur.
Task CreateCollectionAsync(string collectionName, int vectorDimension)
Parametreler:
collectionName(string): Oluşturulacak koleksiyon adıvectorDimension(int): Depolanacak vektörlerin boyutu
EnsureDocumentCollectionExistsAsync
Doküman-spesifik bir koleksiyonun var olduğundan emin olur.
Task EnsureDocumentCollectionExistsAsync(
string collectionName,
Document document
)
Parametreler:
collectionName(string): Doküman koleksiyon adıdocument(Document): Depolanacak doküman
GetVectorDimensionAsync
Koleksiyonlar için vektör boyutunu alır.
Task<int> GetVectorDimensionAsync()
Döndürür: Vektör boyutu
DeleteCollectionAsync
Bir koleksiyonu tamamen siler.
Task DeleteCollectionAsync(string collectionName)
Parametreler:
collectionName(string): Silinecek koleksiyon adı
RecreateCollectionAsync
Bir koleksiyonu yeniden oluşturur (siler ve yeniden oluşturur).
Task RecreateCollectionAsync(string collectionName)
Parametreler:
collectionName(string): Yeniden oluşturulacak koleksiyon adı
İlgili Arayüzler
- Servis Arayüzleri - Tüm servis arayüzlerini görüntüle
- API Referans - API Referans ana sayfasına dön