Repository navigation
feat(global-index): support hybrid search on data-evolution tables - #590
Open
SteNicholas wants to merge 1 commit into
Open
SteNicholas wants to merge 1 commit into
SteNicholas wants to merge 1 commit into
Conversation
Data-evolution tables exposed per-shard vector hits and full-text results through separate APIs. Callers had to use the same snapshot for both searches and fuse the hits before reading the matching rows. - Add table-level vector top-k. Query shards in parallel and convert Lumina distances to similarity scores. - Reuse vector plans across queries. Resolve snapshot selectors for new plans and retain snapshot metadata for reads of existing plans. - Run weighted vector and full-text routes on one snapshot with shared partition and row filters. Apply a candidate limit per route and forward vector query options to the backend. - Use scalar indexes to restrict candidates before ranking. Verify inexact candidates from table data when enabled and oversample vector hits when no scalar index can evaluate the filter. - Read deletion vectors for data files overlapping searched ranges and skip vector shards without eligible live rows. - Check query authorization and bind columns to the selected schema. - Fuse hits by row ID with rrf, weighted_score and mrr. Keep the final top-k in a heap and break ties by ascending row ID. - Cover ranking, filters, shard concurrency, snapshot expiry and scored reads in unit and integration tests. - Document route configuration and how to read fused scores.
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Purpose
Linked issue: close #407
Support hybrid search on Data Evolution tables in Paimon C++, following Paimon Java. Vector and full-text routes search one snapshot with shared partition and row filters. The fused row IDs and scores can drive a table scan that exposes
_INDEX_SCORE.VectorSearchBuilder,VectorScanandVectorReadfor table-level vector top-k. Query shards in parallel, convert Lumina distances to similarity scores and retain the selected snapshot metadata in reusable plans.HybridSearchBuilderwith weighted vector and full-text routes, per-route candidate limits and a final top-k. Forward vector query options to the backend and resolve columns against the selected schema.rrf,weighted_scoreandmrr. Keep the final top-k in a heap and break score ties by ascending row ID.Table-level vector search supports
fastmode. Full-text routes supportfast,fullanddetail.Tests
_INDEX_SCOREreads, deletion vectors and full-text search over index coverage gaps. Lumina unit tests cover native and similarity scores across distance metrics.API and Format
Table::NewVectorSearchBuilder(),Table::NewHybridSearchBuilder(), the vector scan and read interfaces, andHybridSearchRanker. Expose vector search capability throughGlobalIndexerand similarity-score requests throughVectorSearch.Documentation
Yes.
docs/source/user_guide/global_index.rstanddocs/source/api/global_index.rstcover vector and hybrid search, route configuration, filtering, snapshot selection, rankers and reading the fused scores.Generative AI tooling
Generated-by: OpenAI Codex (GPT-6)
🤖 Generated with OpenAI Codex