pinecone-io / pinecone-ts-client

The official TypeScript/Node client for the Pinecone vector database
https://www.pinecone.io
Apache License 2.0
166 stars 36 forks source link

[Bug] <update method does not add new metadata property to existing embedding> #198

Closed younessouilmi closed 5 months ago

younessouilmi commented 5 months ago

Is this a new bug?

Current Behavior

await index.update({ id: embeddingId, metadata: { property1: val1 // Update existing metadata property property2: val2, // Add new metadata property } }); property1 is modified property2 is not added

Expected Behavior

property1 is modified property2 is added

Steps To Reproduce

  1. upsert an embedding
  2. add a new metadata property to the above embedding using the update method

Relevant log output

No response

Environment

- **OS**: Windows 10
- **Language version**: nodejs 18
- **Pinecone client version**:2.0.1

Additional Context

the index seats in Pinecone serverless

younessouilmi commented 5 months ago

never mind, I had a bug in my code causing the above behaviour. Apologies for the false alert!