Class PineconeVectorStore.PineconeVectorStoreConfig.Builder
java.lang.Object
org.springframework.ai.vectorstore.PineconeVectorStore.PineconeVectorStoreConfig.Builder
- Enclosing class:
PineconeVectorStore.PineconeVectorStoreConfig
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Returns the immutable configuration.withApiKey
(String apiKey) Pinecone api key.withEnvironment
(String environment) Pinecone environment name.withIndexName
(String indexName) Pinecone index name.withNamespace
(String namespace) Pinecone Namespace.withProjectId
(String projectId) Pinecone project id.withServerSideTimeout
(Duration serverSideTimeout) Pinecone server side timeout.
-
Method Details
-
withApiKey
Pinecone api key.- Parameters:
apiKey
- key to use.- Returns:
- this builder.
-
withProjectId
Pinecone project id.- Parameters:
projectId
- Project id to use.- Returns:
- this builder.
-
withEnvironment
Pinecone environment name.- Parameters:
environment
- Environment name (e.g. gcp-starter).- Returns:
- this builder.
-
withIndexName
Pinecone index name.- Parameters:
indexName
- Pinecone index name to use.- Returns:
- this builder.
-
withNamespace
Pinecone Namespace. The free-tier (gcp-starter) doesn't support Namespaces. For free-tier leave the namespace empty.- Parameters:
namespace
- Pinecone namespace to use.- Returns:
- this builder.
-
withServerSideTimeout
public PineconeVectorStore.PineconeVectorStoreConfig.Builder withServerSideTimeout(Duration serverSideTimeout) Pinecone server side timeout.- Parameters:
serverSideTimeout
- server timeout to use.- Returns:
- this builder.
-
build
Returns the immutable configuration.- Returns:
- the immutable configuration
-