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

adding the end2end rag task #953

Draft
wants to merge 10 commits into
base: main
Choose a base branch
from
Draft

adding the end2end rag task #953

wants to merge 10 commits into from

Conversation

assaftibm
Copy link
Member

No description provided.

@@ -416,3 +416,144 @@
add_to_catalog(
metric, f"metrics.rag.response_generation.{axis}.{base_metric}", overwrite=True
)

#############################################
Copy link
Member

Choose a reason for hiding this comment

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

i think it would be nice to have any new answer correctness and context correctness metrics in these modules:
https://github.com/IBM/unitxt/blob/main/prepare/metrics/rag_answer_correctness.py
https://github.com/IBM/unitxt/blob/main/prepare/metrics/rag_context_correctness.py

splitting up the metrics across modules makes things easier to follow, and allows reuse of the testing code that exists in the above modules.

#############################################

end_to_end_artifact_names = [
TaskRagEndToEndConstants.METRICS_RAG_END_TO_END_ANSWER_CORRECTNESS,
Copy link
Member

Choose a reason for hiding this comment

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

Can these names be shortened?

For example, consider:
RagEndToEnd.ANSWER_CORRECTNESS
so RagEndToEnd is not repeated twice, being a constant is implied from the use of UPPER_CASE, Task is implied from RagEndToEnd and Metric is implied from ANSWER_CORRECTNESS.

Would makes things much more readable IMO.. WDYT?

@benjaminsznajder benjaminsznajder linked an issue Jul 23, 2024 that may be closed by this pull request
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.

Add end-to-end RAG example
4 participants