I am trying to create an index programmatically. Checked the pinecone’s documentation from here.
This is my code:
from pinecone import ServerlessSpec
pc.create_index(
name="quickstart",
dimension=8,
metric="cosine",
spec=ServerlessSpec(
cloud='gcp-starter',
region='us-central-1'
)
)
I am on starter plan but it’s not executing. It’s giving me this error:
HTTP response body: {"error":{"code":"NOT_FOUND","message":"Resource cloud: gcp-starter region: us-central-1 not found"},"status":404}
Tried checking this page as well but didn’t work.