QdrantDocumentStore<T>
Models & Types · AiDotNet.RetrievalAugmentedGeneration.DocumentStores
Qdrant vector-database document store backed by the real Qdrant REST API.
Inheritance: DocumentStoreBase<T> → QdrantDocumentStore<T>
Implements: IDisposable
For Beginners
Qdrant is an open-source vector database. This class is a real client for it - every method here makes an HTTP call to your Qdrant server. Qdrant requires point ids to be unsigned integers or UUIDs, so each document’s string id is turned into a deterministic UUID; the original string id is kept in the payload so you always get it back.
How It Works
This store talks to a running Qdrant instance over HTTP. It manages a single collection,
upserts points (vector + payload), performs filtered vector search, deletes points and
scrolls the whole collection. Document metadata is stored under a nested metadata
payload object, while the original string document id and content are stored under the
reserved payload keys _doc_id and _content.
Constructors
| Constructor | Summary |
|---|---|
QdrantDocumentStore(string collectionName, string url, string apiKey, DistanceMetricType distanceMetric, int vectorDimension, HttpClient httpClient, HttpMessageHandler handler) |
Initializes a new instance of the QdrantDocumentStore class. |
Properties
| Property | Summary |
|---|---|
int DocumentCount { get; } |
Gets the number of documents (points) currently stored in the collection. |
int VectorDimension { get; } |
Gets the dimensionality of vectors stored in this collection. |
string CollectionName { get; } |
Gets the name of the Qdrant collection this store is bound to. |
Methods
| Method | Summary |
|---|---|
Task ClearAsync(CancellationToken cancellationToken) |
|
void Clear() |
|
void Dispose() |
Releases the HTTP client when this store created it. |