Skip to content

Commit

Permalink
Format
Browse files Browse the repository at this point in the history
  • Loading branch information
carlesonielfa committed Jul 19, 2024
1 parent c62fa17 commit 30d5ede
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!--- BADGES: START --->
[![HF Nuclia](https://img.shields.io/badge/%F0%9F%A4%97-models-yellow)](https://huggingface.co/nuclia)
[![HF Nuclia](https://img.shields.io/badge/%F0%9F%A4%97-nuclia_HF-yellow)](https://huggingface.co/nuclia)
[![GitHub - License](https://img.shields.io/github/license/nuclia/nuclia-eval?logo=github&style=flat&color=green)][#github-license]
[![PyPI - Python Version](https://img.shields.io/pypi/pyversions/nuclia-eval?logo=pypi&style=flat&color=blue)][#pypi-package]
[![PyPI - Package Version](https://img.shields.io/pypi/v/nuclia-eval?logo=pypi&style=flat&color=orange)][#pypi-package]
Expand Down
3 changes: 2 additions & 1 deletion src/nuclia_eval/models/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""This module contains the ML models used to evaluate the quality of the RAG experience."""

from nuclia_eval.models.remi import REMiEvaluator

__all__ = ["REMiEvaluator"]
__all__ = ["REMiEvaluator"]
2 changes: 1 addition & 1 deletion src/nuclia_eval/models/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from nuclia_eval.metrics.base import DiscreteScoreReasonResponse, DiscreteScoreResponse


class RAGEvaluator(ABC): # pragma: no cover
class RAGEvaluator(ABC): # pragma: no cover
"""Base class for all RAG evaluators"""

@abstractmethod
Expand Down
2 changes: 1 addition & 1 deletion src/nuclia_eval/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def load_lora_low_mem(
model = model.to(device)


def inherit_docstrings(cls): # pragma: no cover
def inherit_docstrings(cls): # pragma: no cover
for name, func in vars(cls).items():
if not func.__doc__ and hasattr(getattr(cls, name), "__doc__"):
func.__doc__ = getattr(cls, name).__doc__
Expand Down

0 comments on commit 30d5ede

Please sign in to comment.