Pinecone documentation is quite good, but when I wanted to create a free pod index in Pinecone using Python, I didn’t know what parameters I should supply.
Specifically, I couldn’t understand what values would be or environment
and pod_type
attributes
After a bit of digging (looking at the WebUI), here is how to do it
from pinecone import Pinecone, PodSpec pc = Pinecone(api_key='<<PINECONE_API_KEY>>') pc.create_index( name="example-index", dimension=1536, metric="cosine", spec=PodSpec( environment='gcp-starter', pod_type='s1.x1' ) )
More posts related to my AI journey:
n8n – The response was filtered due to the prompt triggering Azure OpenAI’s content management policy
“Create a Custom Skill for Azure AI Search” lab fails
Learning about RAG and Vector Databases
Streamlit Langchain Quickstart App with Azure OpenAI
Getting ImageAnalysisResultDetails in Azure AI Vision Python SDK
Azure: Invalid user storage id or storage type is not supported