8000 feat: rerank by fetching vectors in heap table by usamoi · Pull Request #189 · tensorchord/VectorChord · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

feat: rerank by fetching vectors in heap table #189

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

Merged
merged 1 commit into from
Feb 13, 2025

Conversation

usamoi
Copy link
Contributor
@usamoi usamoi commented Feb 12, 2025

closes #136

@usamoi usamoi marked this pull request as draft February 12, 2025 08:53
@usamoi usamoi force-pushed the reranking-in-heap-table-v2 branch 8 times, most recently from 3b8d53f to 428aa39 Compare February 13, 2025 02:13
@usamoi usamoi marked this pull request as ready for review February 13, 2025 02:13
@usamoi usamoi force-pushed the reranking-in-heap-table-v2 branch 3 times, most recently from dbd2576 to 6f30472 Compare February 13, 2025 02:47
Signed-off-by: usamoi <usamoi@outlook.com>
@usamoi usamoi force-pushed the reranking-in-heap-table-v2 branch from 6f30472 to b637c0f Compare February 13, 2025 02:53
@usamoi usamoi merged commit 0f5b544 into tensorchord:main Feb 13, 2025
13 checks passed
@usamoi usamoi requested a review from Copilot March 12, 2025 03:52
9F50 Copy link
Contributor
@Copilot 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 PR implements a new reranking feature by introducing both index‐ and heap‐based rerank methods, while also updating tuple formats and configuration options to support this functionality and adjusting related workflows.

  • Introduces new rerank functions (rerank_index and rerank_heap) in the algorithm crate
  • Updates tuple version and metadata to include rerank_in_heap support
  • Adjusts configuration options, search function error handling, and CI workflows for new environments

Reviewed Changes

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

Show a summary per file
File Description
crates/algorithm/src/rerank.rs Implements and exports rerank_index and rerank_heap functions
.github/workflows/check.yml Adds conditional steps for ubuntu-24.04 and ubuntu-24.04-arm runners
src/index/am/am_build.rs Updates sample extraction logic with labeled block usage
src/index/gucs.rs Refines probe extraction logic
crates/algorithm/src/insert.rs Applies conditional handling based on rerank_in_heap flag
src/index/types.rs Modifies validation for internal build options and tuple fields
crates/algorithm/src/lib.rs Exports new rerank functions and introduces the RerankMethod enum
crates/algorithm/src/tuples.rs Updates tuple version from 1 to 2 and adds rerank_in_heap field
crates/algorithm/src/search.rs Adjusts search function return type and error handling for probe counts
crates/k_means/src/lib.rs Adds edge-case handling in quick_centers
crates/algorithm/src/types.rs Adds new rerank_in_table configuration field to index options
crates/algorithm/src/build.rs Passes rerank configuration into the build process
Comments suppressed due to low confidence (1)

src/index/am/am_build.rs:135

  • [nitpick] Consider using a more descriptive label instead of 'a to improve code clarity and maintainability.
let samples = 'a: {

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.

Research: Experiment with retrieving the original vector from the heap table instead of storing it in the index.
1 participant
0