First off, the documentation is wrong/outdated. The documentation says to describe an index I can use
await pinecone.describeIndex(indexName);
After TS Errors it turned out to actually be
const data = await client.describeIndex({ indexName})
Once I got it working the response is always status undefined no matter what.
I created an index and confirmed it was ready on the Web UI. I run the describe index command and I receive this reponse
{
database: {
name: 'indexName',
dimensions: undefined,
indexType: undefined,
metric: 'cosine',
pods: 1,
replicas: 1,
shards: 1,
podType: 'p1.x1',
indexConfig: undefined,
status: undefined
}
}
I mainly want the status to be working so I can check when an index is ready to be written programmatically.