Skip to content

[Bug] Cannot upsert second column of questions with current behavior of load.ts #9

@zeke-emerson

Description

@zeke-emerson

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

When I run npm start -- load --csvPath=test.csv --column=question2, I get the following error:

PineconeUnmappedHttpError: An unexpected error occured while calling the https://controller.us-east4-gcp.pinecone.io/databases endpoint.  index semantic-search already exists Status: 409.

After discussion with Roie, there should be a simple fix in load.ts that can properly check for the existence of the index and properly connect to the existing index to allow for the upload of the second column.

Expected Behavior

The npm start -- load --csvPath=test.csv --column=question2 command in the ReadMe executes without issue and the second column of questions is uploaded.

Steps To Reproduce

  1. Clone the repository and execute npm run build.
  2. Run npm start -- load --csvPath=test.csv --column=question1
  3. Run npm start -- load --csvPath=test.csv --column=question2 and observe the error noted above.

Relevant log output

No response

Environment

- **OS**:
- **Language version**:
- **Pinecone client version**:

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