Share via


PineconeMemoryStore.CreateCollectionAsync(String, CancellationToken) Method

Definition

Creates a new collection in the data store.

public System.Threading.Tasks.Task CreateCollectionAsync (string collectionName, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateCollectionAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task
override this.CreateCollectionAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Function CreateCollectionAsync (collectionName As String, Optional cancellationToken As CancellationToken = Nothing) As Task

Parameters

collectionName
String

in the case of Pinecone, collectionName is synonymous with indexName

cancellationToken
CancellationToken

The CancellationToken to monitor for cancellation requests. The default is None.

Returns

Implements

Remarks

Pinecone index creation is asynchronous action which should be performed before any interaction with it. To make operations within index, its state should be Ready.

Applies to