Hi, I’m learning how to build a semantic search from the typescript crash course and I’ve run into an issue that is explained here:
opened 08:19PM - 01 Oct 23 UTC
bug
### Is this a new bug?
- [X] I believe this is a new bug
- [X] I have search… ed 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
```shell
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_
Is there something I overlooked? or not included?
furthermore, the docs on pinecone which tell you to run a the embedding script needs to be updated to the correct one from the repo readme.
Would love to finally build something on pinecone, any help unblocking me here would be greatly appreciated!
I ended up finding a workaround here
opened 08:19PM - 01 Oct 23 UTC
bug
### Is this a new bug?
- [X] I believe this is a new bug
- [X] I have search… ed 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
```shell
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_
where I added cosine as a metric. However, its a bit odd why I would need to do this because based of the pinecone ts client, the metric field is optional and the value is defaulted to cosine
system
Closed
November 7, 2023, 5:15pm
3
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.