Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

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

Copy link
Copy link
@rterzman

Description

@rterzman
Issue body actions

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
Reactions are currently unavailable

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    Morty Proxy This is a proxified and sanitized view of the page, visit original site.