-
Notifications
You must be signed in to change notification settings - Fork 13
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
There is not way to create stateless index with pinecone-client
Error information
java.lang.IllegalArgumentException: The required field `vector_type` is not found in the JSON string: {"name":"integration-controller-test-index","dimension":2,"metric":"cosine","host":"localhost:5081","deletion_protection":"disabled","spec":{"serverless":{"cloud":"aws","region":"us-east-1"}},"status":{"ready":true,"state":"Ready"}}
Steps to reproduce the issue locally
- create a client
Pinecone pinecone = new Pinecone.Builder("API-KEY")
.withHost("http://localhost:5324")
.withTlsEnabled(false)
.build()- send create index request
pinecone.createServerlessIndex(indexName, "cosine", 2, "aws", "us-east-1", DeletionProtection.DISABLED, new HashMap<>())Environment
- OS Version: MacOS
- Java version: 21
- Pinecone-local: 0.7.0
- pinecone-client: 5.1.0
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working