Skip to content

MB-65473: Extend VectorReader interface to get the EligibleDocumentSelector#66

Merged
abhinavdangeti merged 1 commit intomasterfrom
refactorInterface
Apr 1, 2025
Merged

MB-65473: Extend VectorReader interface to get the EligibleDocumentSelector#66
abhinavdangeti merged 1 commit intomasterfrom
refactorInterface

Conversation

@CascadingRadium
Copy link
Member

@CascadingRadium CascadingRadium changed the title Refactor interfaces Extend VectorReader interface to get the EligibleDocumentSelector Mar 27, 2025
Copy link
Contributor

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

The PR refactors the vector index interfaces to extend the VectorReader interface with a new method for retrieving an EligibleDocumentSelector and updates the EligibleDocumentSelector interface accordingly.

  • Added a NewEligibleDocumentSelector method in the VectorIndexReader interface.
  • Revised the EligibleDocumentSelector interface to include an AddEligibleDocumentMatch method and updated its comments to reflect its filtering behavior.

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
vector_index.go Added NewEligibleDocumentSelector and documented the selector functionality for KNN search.
index.go Updated EligibleDocumentSelector documentation and added AddEligibleDocumentMatch.

@abhinavdangeti abhinavdangeti changed the title Extend VectorReader interface to get the EligibleDocumentSelector MB-65473: Extend VectorReader interface to get the EligibleDocumentSelector Mar 27, 2025
@abhinavdangeti abhinavdangeti merged commit ca32b8c into master Apr 1, 2025
9 checks passed
@abhinavdangeti abhinavdangeti deleted the refactorInterface branch April 1, 2025 15:57
abhinavdangeti added a commit to blevesearch/bleve that referenced this pull request Apr 2, 2025
- Refactor pre-filtered vector search to enhance performance and reduce
memory footprint.
- Replace the current bitmap-based approach for calculating segment
local document numbers with a more direct method, where the local
document numbers are mapped directly to the segment ID during the
execution of the eligible collector.
- Requires: 
    - blevesearch/bleve_index_api#63
    - blevesearch/bleve_index_api#66
    - blevesearch/zapx#317
    - blevesearch/go-faiss#41
    - blevesearch/faiss#49

---------

Co-authored-by: Abhinav Dangeti <abhinav@couchbase.com>
CascadingRadium added a commit that referenced this pull request Apr 7, 2025
CascadingRadium added a commit to blevesearch/bleve that referenced this pull request Apr 7, 2025
- Refactor pre-filtered vector search to enhance performance and reduce
memory footprint.
- Replace the current bitmap-based approach for calculating segment
local document numbers with a more direct method, where the local
document numbers are mapped directly to the segment ID during the
execution of the eligible collector.
- Requires:
    - blevesearch/bleve_index_api#63
    - blevesearch/bleve_index_api#66
    - blevesearch/zapx#317
    - blevesearch/go-faiss#41
    - blevesearch/faiss#49

---------

Co-authored-by: Abhinav Dangeti <abhinav@couchbase.com>
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.

4 participants