How To Find Pinecone Index Dimensions
In this article we will develop a Python script that can display the name and dimension size of indexes defined in Pinecone.
Procedure
- From the terminal install Pinecone
pip install "pinecone[grpc]"
-
Create a text file called
.env, within the text file create a variablePINECONE_API_KEY =followed by your Pinecone api key. -
Create a python script called
pinecone-list-indexes.py. -
Execute the python from the terminal
python pinecone-list-indexes.py
The output will display the index name, dimension and configured meta data.
