Picone java client 4.0.1 must work with Pinecone local

Pinecone Local was released for local development, see documentation. Documentation shows how it works with client version 3.1.0. Currently, client version 4.0.0 doesn’t work with pinecone local. It fails creating a serverless index. It would be nice to see dogfooding of the same product to ensure local development and automated testing for users.

IMO, currently this is an issue in the pinecone-local project rather than the java client and because there is no issue tracker for it. I’m raising this here.

@eddu.melendez welcome to the community.

Can you share the code and the error message you’re seeing when using the 4.0.1 SDK with Pinecone local.

Hi @patrick1, I have created a repository with a reproducer. First commit uses 3.1.0 and works well. Meanwhile, second commit uses 4.0.1 and it fails with

java.lang.IllegalArgumentException: The required field `vector_type` is not found in the JSON string: {"name":"example-index","dimension":2,"metric":"cosine","host":"localhost:5081","deletion_protection":"disabled","spec":{"serverless":{"cloud":"aws","region":"us-east-1"}},"status":{"ready":true,"state":"Ready"}}

It works fine with Package pinecone-local · GitHub