Skip to content

Feature/implement the amega#1188

Merged
chakravarthik27 merged 13 commits intorelease/2.7.0from
feature/implement-the-amega
Mar 19, 2025
Merged

Feature/implement the amega#1188
chakravarthik27 merged 13 commits intorelease/2.7.0from
feature/implement-the-amega

Conversation

@chakravarthik27
Copy link
Collaborator

This pull request introduces a new class AMEGA for clinical tests in the langtest/transform/clinical.py file. The class includes methods for transforming and running sample lists, generating responses, and evaluating those responses. Below are the key changes:

Introduction of AMEGA class:

New methods in AMEGA class:

  • transform: A static method to transform the sample list.
  • run: A static method to asynchronously run the sample list through the model and generate responses.
  • generate_responses: A static method to generate responses using DataRetriever and ResponseGenerator.
  • evaluate_responses: A static method to evaluate responses using ResponseEvaluator and aggregate the results.

@chakravarthik27 chakravarthik27 self-assigned this Mar 17, 2025
@chakravarthik27 chakravarthik27 linked an issue Mar 17, 2025 that may be closed by this pull request
@chakravarthik27 chakravarthik27 requested a review from Copilot March 17, 2025 07:00
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 pull request introduces the new AMEGA class for clinical tests, which implements methods for transforming, running, generating, and evaluating responses for sample lists.

  • Introduces the AMEGA class with an alias name and a list of supported tasks.
  • Implements new static methods: transform, run (async), generate_responses, and evaluate_responses.

@chakravarthik27 chakravarthik27 changed the base branch from main to release/2.7.0 March 18, 2025 18:00
@chakravarthik27 chakravarthik27 requested a review from Copilot March 19, 2025 05:18
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 introduces a new clinical test class, AMEGA, which implements methods for transforming sample lists, running tests asynchronously, generating responses, and evaluating them.

  • Introduces the AMEGA class with relevant clinical test methods.
  • Renames existing BaseClincial to BaseClinical to improve clarity.
  • Updates import references to use tqdm.auto for consistent behavior.

Reviewed Changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.

File Description
langtest/transform/clinical.py Added the AMEGA class with methods: transform, run, generate_responses, and evaluate_responses; fixed naming inconsistencies.
langtest/utils/custom_types/sample.py Added a new AMEGASample class.
langtest/transform/base.py Updated tqdm import to use tqdm.auto.
langtest/langtest.py Minor formatting change with an added newline.
Comments suppressed due to low confidence (1)

langtest/transform/clinical.py:860

  • The default value for 'progress_bar' is set to False, which may not have an 'update' method; ensure that 'progress_bar' is a valid progress bar object before calling update.
progress_bar.update(1)

@chakravarthik27 chakravarthik27 added the ⭐ Feature Indicates new feature requests label Mar 19, 2025
@chakravarthik27 chakravarthik27 merged commit d996cbc into release/2.7.0 Mar 19, 2025
5 of 6 checks passed
@chakravarthik27 chakravarthik27 deleted the feature/implement-the-amega branch September 11, 2025 11:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

⭐ Feature Indicates new feature requests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Implement the Autonomous Medical Evaluation

3 participants