-
Notifications
You must be signed in to change notification settings - Fork 751
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: new aspect critic metrics #1286
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Member
shahules786
commented
Sep 12, 2024
•
edited
Loading
edited
1. Add Non LLM based context precision 2. Rename and introduce naming convention to metrics - <llm_or_non_llm><metric_name><with_or_without_reference> ```python from ragas import SingleTurnSample from ragas.metrics._context_precision import NonLLMContextPrecisionWithReference context_precision = NonLLMContextPrecisionWithReference() sample = SingleTurnSample( retrieved_contexts=["The Eiffel Tower is located in Paris."], reference_contexts=["Paris is the capital of France.", "The Eiffel Tower is one of the most famous landmarks in Paris."] ) await context_precision.single_turn_ascore(sample) ``` --------- Co-authored-by: Jithin James <jamesjithin97@gmail.com>
…1279) Hello there 👋 I noticed that there was no way to disable the progress bar and thought it'd nice to have the option to silence the `tqdm` call in the executor, as it doesn’t play nicely with logs and adds noise. I've added the following changes: Add `show_progress` flag to `Executor` class and update `evaluate` function to use it. * **Executor Class Changes:** - Add `show_progress` flag to the `Executor` class in `src/ragas/executor.py`. - Use the `show_progress` flag to control the display of the progress bar. - If `show_progress` is set to False, disable `tqdm` usage for displaying progress bars. * **Evaluate Function Changes:** - Add `show_progress` parameter to the `evaluate` function in `src/ragas/evaluation.py`. - Pass the `show_progress` flag to the `Executor` class during initialization in the `evaluate` function.
dosubot
bot
added
the
size:L
This PR changes 100-499 lines, ignoring generated files.
label
Sep 12, 2024
Apologies for the mess in commit section, this branch was cut not from main. |
jjmachan
approved these changes
Sep 13, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.