Partager via


PineconeUtils Class

Definition

Utils for Pinecone connector.

public static class PineconeUtils
type PineconeUtils = class
Public Class PineconeUtils
Inheritance
PineconeUtils

Fields

DefaultDimension

The default dimension for Pinecone vectors. Equivalent to text-embeddings-ada-002 dimension.

DefaultIndexMetric

Defaults to cosine similarity.

DefaultIndexName

Default index name.

DefaultPodType

The standard index type for Pinecone vectors.

MaxMetadataSize

The maximum size of the metadata associated with each vector. See https://docs.pinecone.io/docs/metadata-filtering#supported-metadata-size

Methods

ConvertFilterToPineconeFilter(Dictionary<String,Object>)

Utility method to convert a dictionary of filters to the format expected by Pinecone.

EnsureValidMetadataAsync(IAsyncEnumerable<PineconeDocument>)

Utility method to ensure that the metadata size is not too large. This is necessary because Pinecone has a limit on the size of the metadata associated with each vector.

MetricTypeToString(IndexMetric)

Maps IndexMetric to its string representation.

PodTypeToString(PodType)

Maps PodType to its string representation.

Applies to