Skip to content

Conversation

@himanshusinghs
Copy link
Collaborator

Proposed changes

This PR extends describeAccuracyTests interface to accept user config and cluster config to allow for running accuracy tests against different cluster configuration and user configuration.

This will come in handy to write accuracy tests against feature flags and different cluster configurations.

Checklist

@himanshusinghs himanshusinghs requested a review from a team as a code owner October 15, 2025 17:06
Copilot AI review requested due to automatic review settings October 15, 2025 17:06
Copy link
Contributor

Copilot AI left a comment

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 extends the accuracy testing framework to support custom user configurations and cluster configurations, enabling more flexible test scenarios including vector search functionality.

Key changes:

  • Modified describeAccuracyTests to accept optional userConfig and clusterConfig parameters
  • Updated the accuracy testing client to use a generic user config object instead of individual API parameters
  • Enhanced MongoDB cluster process to include directConnection=true in connection strings

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.

File Description
tests/accuracy/sdk/describeAccuracyTests.ts Extended function signature to accept user and cluster configurations, refactored to use generic config handling
tests/accuracy/sdk/accuracyTestingClient.ts Simplified initialization to accept a generic user config object instead of individual parameters
tests/accuracy/createIndex.test.ts Updated to use new API with explicit user config and cluster config for vector search testing
tests/integration/tools/mongodb/mongodbClusterProcess.ts Added directConnection=true to MongoDB connection string for better cluster compatibility

@himanshusinghs himanshusinghs added the no-title-validation Add this label to disable the title check for this PR. label Oct 15, 2025
@himanshusinghs himanshusinghs changed the title chore: extend accuracy tests with vector search chore: extend accuracy tests to support custom user and cluster config Oct 15, 2025
@github-actions

This comment has been minimized.

Extends describeAccuracyTests interface to accept user config and
cluster config to allow for running accuracy tests against different
cluster configuration and user configuration.
@github-actions
Copy link
Contributor

📊 Accuracy Test Results

📈 Summary

Metric Value
Commit SHA b3734bec1df2ccf4b5599af7250d36b582b77e80
Run ID ad368023-cdf6-499e-8963-5a9f2530adeb
Status done
Total Prompts Evaluated 75
Models Tested 1
Average Accuracy 97.0%
Responses with 0% Accuracy 2
Responses with 75% Accuracy 1
Responses with 100% Accuracy 72

📊 Baseline Comparison

Metric Value
Baseline Commit a8c6425a8d6f04f87f90acca2395c592407c86eb
Baseline Run ID 61223839-720f-4e14-a89b-c8f49965f112
Baseline Run Status done
Responses Improved 1
Responses Regressed 1

📎 Download Full HTML Report - Look for the accuracy-test-summary artifact for detailed results.

Report generated on: 10/15/2025, 5:54:12 PM

@himanshusinghs himanshusinghs merged commit 87ce0cf into main Oct 16, 2025
27 of 35 checks passed
@himanshusinghs himanshusinghs deleted the chore/extend-accuracy-tests branch October 16, 2025 06:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

accuracy-tests no-title-validation Add this label to disable the title check for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants