feat: update aggregate tool schema description to support fusion pipline CLOUDP-367319#1294
Open
nima-taheri-mongodb wants to merge 7 commits into
Open
feat: update aggregate tool schema description to support fusion pipline CLOUDP-367319#1294nima-taheri-mongodb wants to merge 7 commits into
nima-taheri-mongodb wants to merge 7 commits into
Conversation
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Contributor
There was a problem hiding this comment.
Pull request overview
Updates the MongoDB aggregate tool’s pipeline schema description to better guide LLM-generated aggregation pipelines, especially for vector search and hybrid (lexical + vector) search patterns.
Changes:
- Clarifies when
$vectorSearchmust be the first stage vs. when$unionWithis appropriate. - Adds detailed guidance for hybrid search using
$rankFusion/$scoreFusion, including construction constraints and recommended patterns.
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
30be32a to
8bf1e42
Compare
…h_fusion' into cloudp-367319_guidance_for_search_fusion # Conflicts: # src/tools/mongodb/read/aggregate.ts
Contributor
Braintrust eval CI reportCurrent run
Accuracy timeline (historical + this run)---
config:
xyChart:
showDataLabel: true
showDataLabelOutsideBar: true
themeVariables:
xyChart:
titleColor: 'orange'
---
xychart
title "accuracy"
x-axis ["2026-07-06 10:19", "2026-07-06 10:26", "2026-07-06 10:42", "2026-07-06 10:42", "2026-07-06 10:43", "2026-07-06 10:52", "2026-07-06 13:07", "2026-07-06 13:25", "2026-07-07 08:04", "2026-07-07 22:11", "This run"]
y-axis "Accuracy (%)" 0 --> 100
bar [41.6, 43.4, 39.7, 46.8, 38.2, 43.1, 40, 42.7, 44.2, 38.2, 77.9]
line [41.6, 43.4, 39.7, 46.8, 38.2, 43.1, 40, 42.7, 44.2, 38.2, 77.9]
|
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.
No description provided.