Hi, I am trying to create sparse index on local Pinecone Local development with Pinecone Local - Pinecone Docs, but when I compile this lines
sparse_index_name = "sparse-index"
if not pc.has_index(sparse_index_name):
sparse_index_model = pc.create_index(
name=sparse_index_name,
vector_type="sparse",
metric="dotproduct",
spec=ServerlessSpec(cloud="aws", region="us-east-1"),
deletion_protection="disabled",
tags={"environment": "development"}
)
which I got from pinecone guide I have this error
PineconeApiException: (422)
Reason: Unprocessable Entity
HTTP response headers: HTTPHeaderDict({'content-type': 'text/plain; charset=utf-8', 'content-length': '104', 'date': 'Wed, 02 Jul 2025 11:29:37 GMT'})
HTTP response body: Failed to deserialize the JSON body into the target type: missing field `dimension` at line 1 column 213
Could someone help me what’s going on?