Table of Contents

Method CreateCollectionAsync

Namespace
LMKit.Data.Storage.Qdrant
Assembly
LM-Kit.NET.Data.Connectors.Qdrant.dll

CreateCollectionAsync(string, uint, IEnumerable<string>, CancellationToken)

Asynchronously creates a new collection for storing vectors of a fixed size.

public Task CreateCollectionAsync(string collectionIdentifier, uint vectorSize, IEnumerable<string> payloadIndexFields = null, CancellationToken cancellationToken = default)

Parameters

collectionIdentifier string

The unique identifier (name) of the collection to create. An exception may be thrown if the collection already exists.

vectorSize uint

The fixed dimensionality of the vectors that will be stored. All vectors in this collection must adhere to this size.

payloadIndexFields IEnumerable<string>

An optional collection of payload field names to index. Indexes are required for filtering on these fields when using a remote Qdrant server.

cancellationToken CancellationToken

An optional cancellation token to cancel the asynchronous creation operation.

Returns

Task

A task representing the asynchronous creation operation.