Class PineconeIndexConfig
java.lang.Object
com.google.genkit.plugins.pinecone.PineconeIndexConfig
Configuration for a Pinecone index used for vector storage.
This class configures how documents are stored and retrieved from a Pinecone index.
Example usage:
PineconeIndexConfig config = PineconeIndexConfig.builder().indexName("my-index")
.embedderName("googleai/text-embedding-004").namespace("production").build();
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBuilder for PineconeIndexConfig.static enumCloud providers for serverless indexes.static enumMetric types for vector similarity search. -
Method Summary
Modifier and TypeMethodDescriptionstatic PineconeIndexConfig.Builderbuilder()Creates a new builder for PineconeIndexConfig.Gets additional metadata to add to all indexed documents.getCloud()Gets the cloud provider for serverless index.intGets the vector dimension.Gets the embedder name for generating vectors.Gets the index name.Gets the similarity metric.Gets the namespace for this configuration.Gets the region for serverless index.Gets the metadata field name used to store document text.booleanReturns whether to create the index if it doesn't exist.
-
Method Details
-
builder
Creates a new builder for PineconeIndexConfig. -
getIndexName
Gets the index name. -
getEmbedderName
Gets the embedder name for generating vectors. -
getNamespace
Gets the namespace for this configuration. -
getDimension
public int getDimension()Gets the vector dimension. -
getMetric
Gets the similarity metric. -
getCloud
Gets the cloud provider for serverless index. -
getRegion
Gets the region for serverless index. -
isCreateIndexIfNotExists
public boolean isCreateIndexIfNotExists()Returns whether to create the index if it doesn't exist. -
getTextField
Gets the metadata field name used to store document text. -
getAdditionalMetadata
Gets additional metadata to add to all indexed documents.
-