Partager via


IPineconeClient.CreateIndexAsync(IndexDefinition, CancellationToken) Method

Definition

Create index

public System.Threading.Tasks.Task CreateIndexAsync (Microsoft.SemanticKernel.Connectors.Pinecone.IndexDefinition indexDefinition, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateIndexAsync : Microsoft.SemanticKernel.Connectors.Pinecone.IndexDefinition * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Function CreateIndexAsync (indexDefinition As IndexDefinition, Optional cancellationToken As CancellationToken = Nothing) As Task

Parameters

indexDefinition
IndexDefinition

the configuration of the index.

cancellationToken
CancellationToken

Cancellation Token to cancel the request.

Returns

Task of void

Remarks

This operation creates a Pinecone index. It's possible to use it to specify the measure of similarity, the dimension of vectors to be stored in the index, the numbers of replicas to use, and more.

Applies to