-
Notifications
You must be signed in to change notification settings - Fork 2
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
chore: docs for eval #203
base: main
Are you sure you want to change the base?
chore: docs for eval #203
Conversation
Code Coverage Summary
Diff against main
Results for commit: e679ad0 Minimum allowed coverage is ♻️ This comment has been updated with latest results |
Trivy scanning results. .venv/lib/python3.10/site-packages/PyJWT-2.9.0.dist-info/METADATA (secrets)Total: 1 (MEDIUM: 1, HIGH: 0, CRITICAL: 0) MEDIUM: JWT (jwt-token) .venv/lib/python3.10/site-packages/litellm/llms/huggingface_llms_metadata/hf_text_generation_models.txt (secrets)Total: 1 (MEDIUM: 0, HIGH: 0, CRITICAL: 1) CRITICAL: HuggingFace (hugging-face-access-token) .venv/lib/python3.10/site-packages/litellm/proxy/_types.py (secrets)Total: 1 (MEDIUM: 1, HIGH: 0, CRITICAL: 0) MEDIUM: Slack (slack-web-hook) |
metrics = [SomeMetric(OmegaConf.create({...})) for SomeMetric in your_metrics] | ||
metric_set = MetricSet(*metrics) | ||
|
||
dataloader = YourDataLoaderClass(OmegaConf.create({...})) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The code in how-to's should be self-sufficient and ready to be copy-pasted and executed by yourself
|
||
To create a custom DataLoader for your specific needs, you need to implement the `load` method in a class that inherits from the `DataLoader` interface. | ||
|
||
Please find the [working example](optimize.md#define-the-data-loader) here. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think linking to the optimizer is enough here, we should have a standalone example going in-detail about data loaders.
To create a custom evaluation pipeline for your specific use case, you need to implement the `__call__` method as part of the `ragbits.evaluate.pipelines.base.EvaluationPipeline` interface. | ||
|
||
|
||
Please find the [working example](optimize.md#define-the-optimized-pipeline-structure) here |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think linking to the optimizer is enough here, we should have a standalone example going in-detail about pipelines.
on your data, however you are not limited to this. In order to implement custom ones for your specific use case you would need to inherit from `ragbits.evaluate.metrics.base.Metric` | ||
abstract class and implement `compute` method. | ||
|
||
Please find the [working example](optimize.md#define-the-metrics-and-run-the-experiment) here. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think linking to the optimizer is enough here, we should have a standalone example going in-detail about metrics.
@@ -0,0 +1,7 @@ | |||
# How to create custom Metric for Ragbits evaluation | |||
|
|||
`ragbits.evaluate` package provides the implementation of metrics that measure the quality of document search pipeline within `ragbits.evaluate.metrics.document_search` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should have an index of all metrics predefined in ragbits, with each of them described.
No description provided.