Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add BERT_SCORE to QAAccuracySemanticRobustness #315

Merged
merged 56 commits into from
Aug 15, 2024

Conversation

kirupang-code
Copy link
Contributor

@kirupang-code kirupang-code commented Jul 24, 2024

  • Used SplitWithDelimiter transform to add BERT_SCORE and DELTA_BERT_SCORE to QAAccuracySemanticRobustness. Created a shared resource of the bertscore model to be used in the evaluate function in qa_accuracy_semantic_robustness to reduce the amount of memory consumed.
  • Created a smaller dataset, triviaQA_sample_small.jsonl, to be used in integration tests because existing integration tests timed out with the 100 records in triviaQA_sample_small.jsonl.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@kirupang-code kirupang-code changed the title feat: AddBERT_SCORE to QAAccuracySemanticRobustness + updated tests feat: Add BERT_SCORE to QAAccuracySemanticRobustness + updated tests Jul 25, 2024
@@ -105,11 +107,13 @@ class TestCaseQAAccuracySemanticRobustnessEvaluateSample(NamedTuple):
EvalScore(name=QUASI_EXACT_MATCH_SCORE, value=1.0),
EvalScore(name=PRECISION_OVER_WORDS, value=1.0),
EvalScore(name=RECALL_OVER_WORDS, value=1.0),
EvalScore(name=BERT_SCORE, value=0.48504769802093506),
Copy link
Contributor

Choose a reason for hiding this comment

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

We should be mocking the bertscore model in the unit tests. We need the unit tests to validate that all of the new logic that was added to the transform pipeline is correct. Currently, none of this logic is getting tested.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ok, will work on that

@danielezhu danielezhu changed the title feat: Add BERT_SCORE to QAAccuracySemanticRobustness + updated tests feat: add BERT_SCORE to QAAccuracySemanticRobustness Aug 15, 2024
Copy link
Contributor

@xiaoyi-cheng xiaoyi-cheng left a comment

Choose a reason for hiding this comment

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

lgtm

@xiaoyi-cheng xiaoyi-cheng merged commit a0f439a into aws:main Aug 15, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants