Storing metadata in pinecone cloud DB for each Resume

Hi,

I have 50 resumes in pdf format, i am able to read all pdf content as chunks and store in the vector database and able to retrieve based the LLM Query sucessfully.

The challenge is, how can i store each resume metadata(file name, last updated etc) so that i can retrieve based on the LLM Query

Ex: How many total resumes are there with skill java ?

Thanks
vijay

Hi @vijay.sagi,

Welcome to the Pinecone Forum, thanks for posting!

When you upsert or update records, you can add/update metadata fields. In your example, you can add something like the following:

PINECONE_API_KEY="YOUR_API_KEY"
INDEX_HOST="INDEX_HOST"

curl "https://$INDEX_HOST/vectors/update" \
  -H "Api-Key: $PINECONE_API_KEY" \
  -H 'Content-Type: application/json' \
  -H "X-Pinecone-API-Version: 2025-01" \
  -d '{
      "id": "id-3",
      "setMetadata": {
          "filename": "resume_1",
          "last_updated": "2025-03-17T17:20:00-05:00"
      },
      "namespace": "example-namespace"
    }'

You can read more about metadata on our docs.

Hope this helps. Let me know if you have additional questions!

Lauren

1 Like

Thanks lauren for sharing the details…

1 Like