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

universal-query: Add OrderBy scoring, and add scrolls to PlannedQuery #4261

Merged
merged 1 commit into from
May 18, 2024

Conversation

coszio
Copy link
Contributor

@coszio coszio commented May 17, 2024

Tracked in #4225

  • Adds ScoringQuery::OrderBy variant
  • Modifies PlannedQuery to also store a list of scroll alongside the core search batch
  • Adjusts the try_from conversion accordingly
  • Internal grpc QueryShardPoints also gets the order-by variant

@coszio coszio requested review from agourlay and generall May 17, 2024 21:59
@coszio coszio mentioned this pull request May 17, 2024
27 tasks
@@ -241,7 +241,7 @@ message QueryShardPoints {
oneof score {
RawQuery vector = 1; // (re)score against a vector query
bool rrf = 2; // Reciprocal Rank Fusion
Copy link
Member

Choose a reason for hiding this comment

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

Not related to this PR, but it might be better to use

enum Fusion {
  RRF
}

instead of boolean?

Copy link
Contributor Author

@coszio coszio May 18, 2024

Choose a reason for hiding this comment

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

I considered that but I thought it would be too much nesting. I wasn't aware if the other fusion techniques are configurable

Copy link
Member

Choose a reason for hiding this comment

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

booleans are much harder to extend

@generall generall merged commit f3f8c3b into dev May 18, 2024
17 checks passed
@generall generall deleted the scroll-in-shard-query-request branch May 18, 2024 11:07
generall pushed a commit that referenced this pull request May 26, 2024
* add `OrderBy` scoring, and add `scrolls` to `PlannedQuery`
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.

None yet

2 participants