Skip to content

feat(mongodb-constants): add $rankFusion stage for 8.1+ COMPASS-9429 #545

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 2 commits into from
Jun 20, 2025

Conversation

Anemy
Copy link
Member

@Anemy Anemy commented Jun 13, 2025

description:
'Combines multiple pipelines using reciprocal rank fusion to create hybrid search results.',
comment: `/**
* input.pipelines: Required. Map from name to input pipeline. Each pipeline must be a Ranked Selection Pipeline operating on the same collection. Minimum of one pipeline.

Choose a reason for hiding this comment

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

Copy link
Member Author

@Anemy Anemy Jun 16, 2025

Choose a reason for hiding this comment

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

We don't provide explicit links inside of the comment for any of the other stages, so I would prefer we keep that pattern if we can. We link to the stage's documentation in the aggregation builder, so folks can find it there:
Screenshot 2025-06-16 at 4 41 39 PM
Is that link enough? If we feel strongly we can change it.

Choose a reason for hiding this comment

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

that works!

Comment on lines 789 to 790
\${1:searchPipeline}: \${6:number},
\${4:vectorPipeline}: \${7:number}
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
\${1:searchPipeline}: \${6:number},
\${4:vectorPipeline}: \${7:number}
\${6:searchPipeline}: \${7:number},
\${8:vectorPipeline}: \${9:number}

or else, these (search and vector pipeline) will be skipped, right?

Copy link
Member Author

Choose a reason for hiding this comment

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

Ah nice catch. pushed up a fix.

@Anemy Anemy merged commit 907605f into main Jun 20, 2025
30 checks passed
@Anemy Anemy deleted the COMPASS-9429-rankFusion-8-1 branch June 20, 2025 04:06
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