Skip to content

Conversation

dan-rubinstein
Copy link
Member

This test randomly generates a query word count that is used to build chunking settings for reranked chunking. There are two different behaviors depending on whether the query word count generated is less than half of the elastic reranker model's token limit or greater than/equal to half the limit. This test was aiming to generate a random query word count less than half the model's limit but since randomIntBetween is inclusive on both ends, it was able to generate a query word count that was exactly half the limit. This change fixes this by making sure the upper limit on the random number is 1 less than half the limit and removes the mute on the test.

@dan-rubinstein dan-rubinstein added >test Issues or PRs that are addressing/adding tests :ml Machine learning backport Team:ML Meta label for the ML team v9.2.0 v9.3.0 labels Oct 3, 2025
@dan-rubinstein dan-rubinstein added auto-backport Automatically create backport pull requests when merged and removed backport labels Oct 6, 2025
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/ml-core (Team:ML)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto-backport Automatically create backport pull requests when merged :ml Machine learning Team:ML Meta label for the ML team >test Issues or PRs that are addressing/adding tests v9.2.0 v9.3.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants