Skip to content

fix: fix regressed search index creation eval cases CLOUDP-424118#1360

Open
JimmyChoiMDB wants to merge 2 commits into
mainfrom
CLOUDP-424118
Open

fix: fix regressed search index creation eval cases CLOUDP-424118#1360
JimmyChoiMDB wants to merge 2 commits into
mainfrom
CLOUDP-424118

Conversation

@JimmyChoiMDB

@JimmyChoiMDB JimmyChoiMDB commented Jul 15, 2026

Copy link
Copy Markdown
Collaborator

Proposed changes

Expand search index creation schema to include fields that were not accounted for such as analyzers, storedSource etc

Checklist

@JimmyChoiMDB JimmyChoiMDB added the braintrust-evals Runs search eval suite on Braintrust label Jul 15, 2026
@github-actions

This comment has been minimized.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR expands the create-index tool’s Atlas Search index definition schema to cover additional Atlas Search options (custom analyzers, synonyms, stored source, and type sets) and adds accuracy-test coverage for these newly supported index shapes.

Changes:

  • Extend the Atlas Search index Zod schema to support analyzers, synonyms, storedSource, typeSets, richer mappings.dynamic, and multi-definition field mappings.
  • Include the new Atlas Search definition fields in the request payload sent to createSearchIndexes.
  • Add accuracy test cases for custom analyzers, synonyms mappings, facet fields, multi-type field definitions, stored source, and type-set-based dynamic mapping.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 5 comments.

File Description
src/tools/mongodb/create/createIndex.ts Expands the Atlas Search index definition schema and wires new definition fields into index creation.
tests/accuracy/createIndex.test.ts Adds accuracy scenarios validating tool-call construction for the newly supported Atlas Search index options.

Comment thread src/tools/mongodb/create/createIndex.ts Outdated
Comment thread src/tools/mongodb/create/createIndex.ts
Comment thread src/tools/mongodb/create/createIndex.ts
Comment thread src/tools/mongodb/create/createIndex.ts
Comment thread src/tools/mongodb/create/createIndex.ts
@JimmyChoiMDB
JimmyChoiMDB marked this pull request as ready for review July 15, 2026 22:27
@JimmyChoiMDB
JimmyChoiMDB requested a review from a team as a code owner July 15, 2026 22:27
@JimmyChoiMDB
JimmyChoiMDB requested review from ciprian-tibulca, himanshusinghs and nirinchev and removed request for a team July 15, 2026 22:27
@github-actions

Copy link
Copy Markdown
Contributor

Braintrust eval CI report

Current run

Field Value
Status passed
Eval exit code 0
llm_judge (accuracy %) 90.34%
Experiment HEAD-1784154132
Experiment ID b81d02b4-3f99-42df-8883-d98cc55bc388
Experiment URL link
Baseline main-1784135185

Accuracy timeline (historical + this run)

---
config:
   xyChart:
       showDataLabel: true
       showDataLabelOutsideBar: true
   themeVariables:
       xyChart:
           titleColor: 'orange'
---
xychart
    title "accuracy"
    x-axis ["2026-07-09 15:42", "2026-07-12 14:50", "2026-07-12 18:03", "2026-07-13 10:40", "2026-07-13 15:31", "2026-07-13 15:48", "2026-07-14 08:59", "2026-07-14 09:31", "2026-07-14 11:21", "2026-07-15 17:06", "This run"]
    y-axis "Accuracy (%)" 0 --> 100
    bar [48.5, 53.4, 49.4, 49.7, 51.6, 50.6, 49, 52.8, 47, 77.8, 90.3]
    line [48.5, 53.4, 49.4, 49.7, 51.6, 50.6, 49, 52.8, 47, 77.8, 90.3]
Loading
Date / id Commit Accuracy Experiment
2026-07-09 15:42 1d1d0c7 48.49% main-1783611761
2026-07-12 14:50 2bf8513 53.43% main-1783867854
2026-07-12 18:03 2ceb4ca 49.35% main-1783879422
2026-07-13 10:40 c2862ce 49.72% main-1783939205
2026-07-13 15:31 3094b92 51.60% main-1783956712
2026-07-13 15:48 c33fd3d 50.56% main-1783957716
2026-07-14 08:59 b7d2a8e 48.98% main-1784019571
2026-07-14 09:31 1525ccb 52.83% main-1784021500
2026-07-14 11:21 af282e8 47.04% main-1784028098
2026-07-15 17:06 f45d7c7 77.78% main-1784135185
This run 90.34% HEAD-1784154132

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

braintrust-evals Runs search eval suite on Braintrust type: bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants