Skip to content

Conversation

sswierze
Copy link
Contributor

  • Fix _generate_data call in RerankingEvaluator to include result_dir parameter
  • Fix _generate_data call in EmbeddingsEvaluator to include result_dir parameter
  • Both evaluators now properly pass reference directory path when generating ground truth data
  • Ensures consistent behavior between constructor and score method data generation

Description

Ticket:

Fixes #(issue)

Checklist:

  • Tests have been updated or added to cover the new code
  • This patch fully addresses the ticket.
  • I have made corresponding changes to the documentation

@Copilot Copilot AI review requested due to automatic review settings October 13, 2025 09:09
Copy link
Contributor

@Copilot 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 fixes missing result_dir parameter in evaluator constructors to ensure consistent behavior with the score method when generating ground truth data.

  • Add missing result_dir parameter to _generate_data calls in both evaluator constructors
  • Pass reference directory path (os.path.join(self.gt_dir, "reference")) as the third argument
  • Align constructor behavior with score method data generation

Reviewed Changes

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

File Description
tools/who_what_benchmark/whowhatbench/reranking_evaluator.py Add result_dir parameter to _generate_data call in RerankingEvaluator constructor
tools/who_what_benchmark/whowhatbench/embeddings_evaluator.py Add result_dir parameter to _generate_data call in EmbeddingsEvaluator constructor

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@github-actions github-actions bot added the category: WWB PR changes WWB label Oct 13, 2025
@as-suvorov as-suvorov enabled auto-merge October 13, 2025 11:48
- Fix _generate_data call in RerankingEvaluator to include result_dir parameter
- Fix _generate_data call in EmbeddingsEvaluator to include result_dir parameter
- Both evaluators now properly pass reference directory path when generating ground truth data
- Ensures consistent behavior between constructor and score method data generation
auto-merge was automatically disabled October 15, 2025 07:46

Head branch was pushed to by a user without write access

@sswierze sswierze force-pushed the sswierze_fix_reference_reranking branch from a9d7574 to 776caee Compare October 15, 2025 07:46
@Wovchena
Copy link
Collaborator

build_jenkins

@nikita-savelyevv nikita-savelyevv added this pull request to the merge queue Oct 15, 2025
github-merge-queue bot pushed a commit that referenced this pull request Oct 15, 2025
- Fix _generate_data call in RerankingEvaluator to include result_dir
parameter
- Fix _generate_data call in EmbeddingsEvaluator to include result_dir
parameter
- Both evaluators now properly pass reference directory path when
generating ground truth data
- Ensures consistent behavior between constructor and score method data
generation

## Description
<!-- Please include a summary of the change. Also include relevant
motivation and context. -->

<!--- Jira ticket number (e.g., 123). Delete if there's no ticket. Don't
include full link or project name. -->
Ticket: 

<!-- Remove if not applicable -->
Fixes #(issue)

## Checklist:
- [ ] Tests have been updated or added to cover the new code <!--- If
the change isn't maintenance related, update the tests at
https://github.com/openvinotoolkit/openvino.genai/tree/master/tests or
explain in the description why the tests don't need an update. -->
- [ ] This patch fully addresses the ticket. <!--- If follow-up pull
requests are needed, specify in description. -->
- [ ] I have made corresponding changes to the documentation
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Oct 15, 2025
@Wovchena Wovchena added this pull request to the merge queue Oct 16, 2025
Merged via the queue into openvinotoolkit:master with commit 33548f6 Oct 16, 2025
94 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

category: WWB PR changes WWB

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants