Skip to content

Conversation

@CascadingRadium
Copy link
Member

  • Replace slice-based eligible document access with an iterator-based abstraction (EligibleDocumentList / EligibleDocumentIterator), enabling storage-layer streaming/visitor-style consumption of eligible docIDs, eliminating intermediate materialization, and decoupling retrieval from underlying eligible-document storage representations.

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This pull request refactors vector search to use an iterator-based abstraction for accessing eligible documents, replacing the previous slice-based approach. The changes introduce two new interfaces (EligibleDocumentIterator and EligibleDocumentList) and modify the EligibleDocumentSelector interface to support streaming access patterns, eliminating the need for intermediate materialization of eligible document IDs.

Key Changes:

  • Introduced EligibleDocumentIterator interface for streaming document ID iteration
  • Introduced EligibleDocumentList interface as a container providing both iterator access and count information
  • Modified EligibleDocumentSelector.SegmentEligibleDocs() to return EligibleDocumentList instead of []uint64

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants