IndexDefinition.WithMetric(IndexMetric) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.