Skip to content

Fix key name of retrieved_contexts in the dataset evaluation sample#68

Merged
yisz merged 1 commit intorelari-ai:mainfrom
jmartisk:fix-dataset-evaluation-script
Jun 11, 2024
Merged

Fix key name of retrieved_contexts in the dataset evaluation sample#68
yisz merged 1 commit intorelari-ai:mainfrom
jmartisk:fix-dataset-evaluation-script

Conversation

@jmartisk
Copy link
Contributor

@jmartisk jmartisk commented Jun 11, 2024

I hope I'm not misunderstanding something, but the relevant key in https://ceevaldata.blob.core.windows.net/examples/retrieval.jsonl is retrieved_contexts


🚀 This description was created by Ellipsis for commit 3f11459

Summary:

This PR fixes the key name for retrieved contexts in the dataset evaluation sample to align with the dataset's JSON structure.

Key points:

  • Corrects key name from retrieved_context to retrieved_contexts in examples/evaluation_on_dataset.py
  • Affects PrecisionRecallF1 and RankedRetrievalMetrics classes

Generated with ❤️ by ellipsis.dev

Copy link
Contributor

@ellipsis-dev ellipsis-dev bot left a comment

Choose a reason for hiding this comment

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

👍 Looks good to me! Reviewed everything up to 3f11459 in 32 seconds

More details
  • Looked at 19 lines of code in 1 files
  • Skipped 0 files when reviewing.
  • Skipped posting 1 drafted comments based on config settings.
1. examples/evaluation_on_dataset.py:17
  • Draft comment:
    The change from retrieved_context to retrieved_contexts seems appropriate given the PR description. However, please ensure that the dataset actually contains a key named retrieved_contexts and that it is used consistently throughout the codebase. This change should also be reflected in any documentation or examples that use the old key name.
  • Reason this comment was not posted:
    Confidence changes required: 33%
    The PR author has changed the key from 'retrieved_context' to 'retrieved_contexts' in the evaluation script. This change is consistent with the description provided by the PR author, which mentions that the correct key in the dataset is 'retrieved_contexts'. I need to verify if this change is correctly applied in all relevant places in the code and if it aligns with the dataset structure.

Workflow ID: wflow_ORuKT5p6cZW9uuuT


You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet mode, and more.

@yisz
Copy link
Contributor

yisz commented Jun 11, 2024

@jmartisk that's correct! Thank you for catching that and contributing!

@yisz yisz merged commit 31c4c1c into relari-ai:main Jun 11, 2024
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.

2 participants