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

Index operations #4

Merged
merged 8 commits into from
Aug 20, 2024
Merged

Index operations #4

merged 8 commits into from
Aug 20, 2024

Conversation

mrjleo
Copy link
Owner

@mrjleo mrjleo commented Aug 20, 2024

  • Index.add: Change type of IDs to be added from Sequence[str] to Sequence[Optional[str]] (allowing individual IDs to be None).
  • Implement Index.batch_iter and Index.__iter__ methods that allow for iteration over indexes.
  • Indexer.index_dicts: handle cases correctly where some vectors have document IDs and some have passage IDs.

@mrjleo mrjleo merged commit 5c3f8e3 into main Aug 20, 2024
4 checks passed
@mrjleo mrjleo deleted the index-ops branch August 20, 2024 09:57
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.

1 participant