Troubleshooting vector dimension does not match the dimension of the index

Running into error upserting data to index. I followed steps from OpenAI

  1. I created index swith dimension 8 (max)
  2. Ran steps OpenAI

Getting the following error:
Reason: Bad Request

HTTP response headers: HTTPHeaderDict({‘content-type’: ‘application/json’, ‘date’: ‘Fri, 31 Mar 2023 21:56:18 GMT’, ‘x-envoy-upstream-service-time’: ‘2’, ‘content-length’: ‘101’, ‘server’: ‘envoy’})

HTTP response body: {“code”:3,“message”:“Vector dimension 1536 does not match the dimension of the index 8”,“details”:}

1 Like

Hi @sjai,

Pinecone supports up to 20,000 dimensions on your vectors. Can you let me know where you saw a max of 8, so we can get that corrected?

Please delete your index and create a new one with 1536 dimensions so it matches your OpenAI model. Thanks!

1 Like