Open EarningsCall opened 6 months ago
For example, let's say I create this Pinecone index like this:
const pineconeIndex = new PineconeIndex(this, 'PineconeIndex', {
indexSettings: [{
apiKeySecretName: pineconeCreationSecret.secretName, // store as a string in secrets manager, NOT a key/value secret
dimension: 1536,
removalPolicy: RemovalPolicy.RETAIN_ON_UPDATE_OR_DELETE,
// Pod Index (see python example for serverless)
podSpec: {
environment: PineConeEnvironment.GCP_STARTER,
},
}],
deploymentSettings: {
maxNumAttempts: 2,
},
},
);
I would then want to get the endpoint, maybe like this:
const pineconeEndpoint = pineconeIndex.endpoint;
Maybe also the name of the index, if it was auto-generated:
const pineconeIndexName = pineconeIndex.name;
Hey @EarningsCall! I haven't looked at this in a while (clearly). I'd love to add this feature and really appreciate the suggestion. I'm going to add this feature in the next two weeks in addition to some much needed documentation improvements. Thanks for your patience!
When the creation is successful, you have a new endpoint for your pinecone DB, such as:
However, there is no way to retrieve this information in the CDK construct (which there should be).
You can also return the name of the newly created instance, such as: