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

Create method in Index class for fetching IDs of all vectors in index #190

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

Tylersuard
Copy link

Problem

Pinecone does not have any way for users to fetch all IDs of all vectors in an index.

Solution

Loop and query until the number of unique IDs matches the number of vectors in the index.

Type of Change

  • [ X] Bug fix (non-breaking change which fixes an issue)
  • [ X] New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • [X ] This change requires a documentation update
  • Infrastructure change (CI configs, etc)
  • Non-code change (docs, etc)
  • None of the above: (explain here)

Test Plan

Try it.

@Tylersuard
Copy link
Author

@rajat08 @benjaminran

@daverigby
Copy link
Contributor

Note that v3.1 has introduced the list and list_pagnated API methods (Serverless only) which use a server-side implementation which should be significantly quicker than the brute-force search approach used above.

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

Successfully merging this pull request may close these issues.

2 participants