Skip to content

Serverless: Delete all records for a parent document #293

Closed

Description

@bdonkey

The online documentation under the Delete all records for a parent document heading tells us to first fetch the vectors then delete:

To delete all records representing chunks of a single document, 
first fetch the record IDs based on their common ID prefix and then delete the records by ID.

The fetch documentation gives us the curl command:

PINECONE_API_KEY="YOUR_API_KEY"
INDEX_HOST="INDEX_HOST"

curl -X POST "https://$INDEX_HOST/vectors/list" \
  -H "Api-Key: $PINECONE_API_KEY" \
  -H 'Content-Type: application/json' \
  -d '{
        "namespace": "ns1",
        "prefix": "doc1#",
        "pagination_token": "c2Vjb25kY2FsbA=="
      }'

This command does not work and doesn't make sense?

If we change the POST to a --request GET then fetch works.

Activity

  1. opbenesh commented on Feb 4, 2024

    @opbenesh

    Hi @bdonkey, thanks for reporting this. There was a mismatch in the documentation, but the rag page has been fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions