-
Notifications
You must be signed in to change notification settings - Fork 8
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
Conversation
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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Might suggest linking here https://deploy-preview-11066--docs-mongodb-internal.netlify.app/reference/operator/aggregation/rankFusion/#selection-pipeline when the docs publish on 6/18
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
that works!
\${1:searchPipeline}: \${6:number}, | ||
\${4:vectorPipeline}: \${7:number} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
\${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?
There was a problem hiding this comment.
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.
COMPASS-9429
Tech design for reference: https://docs.google.com/document/d/1WgwYPE64T0E-BChqLdGPw1wo5z0ZYrrcbEASOoFl81M/edit?tab=t.0#heading=h.1ivq9tntp9c