Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support returning the number of deleted vectors after a delete operation #199

Open
1 of 2 tasks
Tete-Xiao opened this issue Sep 16, 2023 · 1 comment
Open
1 of 2 tasks
Labels
enhancement New feature or request

Comments

@Tete-Xiao
Copy link

Is this your first time submitting a feature request?

  • I have searched the existing issues, and I could not find an existing issue for this feature
  • I am requesting a straightforward extension of existing client functionality

Describe the feature

Delete operation returns the number of deleted vectors.

Describe alternatives you've considered

No response

Who will this benefit?

No response

Are you interested in contributing this feature?

No response

Anything else?

No response

@Tete-Xiao Tete-Xiao added the enhancement New feature or request label Sep 16, 2023
@daverigby
Copy link
Contributor

This is a reasonable request, and still something we are considering, but let me give come additional context why this isn't currently supported.

The issues is that the Pinecone index doesn't necessarily know at the time of processing the delete request how many vectors are actually going to be deleted, as mutations (including deletes) are handled by initially writing to a Write-Ahead-Log for durability, then the actual index is updated asynchronously - see https://docs.pinecone.io/reference/architecture/serverless-architecture#write-path for more details.

As such, to include an actual deleted record count in the DeleteResponse would require waiting (blocking) for the result of the deletion to be appleid all the way down to the index; adding significant latency to the delete operation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants