public final class PineconeClient
extends java.lang.Object
| Constructor and Description |
|---|
PineconeClient(PineconeClientConfig config)
Create a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
PineconeConnection |
connect(PineconeConnectionConfig connectionConfig)
Create a new connection to the Pinecone service or router specified in the config.
|
PineconeConnection |
connect(java.lang.String indexName)
Create a new connection to the specified Pinecone service or router.
|
PineconeConnection |
connectWithUrl(java.lang.String connectionUrl) |
public PineconeClient(PineconeClientConfig config)
PineconeValidationException if configuration is invalid.config - User-level configuration for the client.public PineconeConnection connect(java.lang.String indexName)
PineconeValidationException if configuration is invalid.indexName - The name of your pinecone Index.PineconeConnection for the service or router.public PineconeConnection connect(PineconeConnectionConfig connectionConfig)
PineconeValidationException if configuration is invalid.connectionConfig - Config for the connection to be opened.PineconeConnection for the service or router.public PineconeConnection connectWithUrl(java.lang.String connectionUrl)