Skip to content

[Bug] Missing metric parameter in pinecone.createIndex #6

@grancalavera

Description

@grancalavera

Is this a new bug?

  • I believe this is a new bug
  • I have searched the existing issues, and I could not find an existing issue for this bug

Current Behavior

The application throws a runtime error when trying to load the column question1 into the index semantic-search

See: src/load.ts, missing parameter metric

Expected Behavior

The application should load the column question1 into the index semantic-search

Steps To Reproduce

Follow the instructions in README.md:

  1. build the application
  2. run npm start -- load --csvPath=test.csv --column=question1

Relevant log output

PineconeUnmappedHttpError: An unexpected error occured while calling the https://controller.gcp-starter.pinecone.io/databases endpoint.  Failed to deserialize the JSON body into the target type: missing field `metric` at line 1 column 42 Status: 422.

Environment

  • OS: macOS Ventura 13.6
  • Language version: typescript
  • Pinecone client version: ^1.0.0

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    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