Skip to content

[Bug] The required field vector_type is not found #193

Description

@rterzman

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions