Partager via


IndexDefinition.WithMetric(IndexMetric) Method

Definition

Sets metric for IndexDefinition instance.

public Microsoft.SemanticKernel.Connectors.Pinecone.IndexDefinition WithMetric (Microsoft.SemanticKernel.Connectors.Pinecone.IndexMetric metric);
member this.WithMetric : Microsoft.SemanticKernel.Connectors.Pinecone.IndexMetric -> Microsoft.SemanticKernel.Connectors.Pinecone.IndexDefinition
Public Function WithMetric (metric As IndexMetric) As IndexDefinition

Parameters

metric
IndexMetric

The index metric to use for similarity search.

Returns

Applies to