From 34467f504eeb6dab0ecce72c2bbce5282290b51d Mon Sep 17 00:00:00 2001 From: Apurva Koti Date: Thu, 4 Apr 2024 14:10:02 -0700 Subject: [PATCH] stable Signed-off-by: Apurva Koti --- mlflow/metrics/genai/genai_metric.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mlflow/metrics/genai/genai_metric.py b/mlflow/metrics/genai/genai_metric.py index b555dadcfa5a6..6af43470ec641 100644 --- a/mlflow/metrics/genai/genai_metric.py +++ b/mlflow/metrics/genai/genai_metric.py @@ -18,7 +18,7 @@ UNAUTHENTICATED, ErrorCode, ) -from mlflow.utils.annotations import experimental +from mlflow.utils.annotations import experimental, developer_stable from mlflow.utils.class_utils import _get_class_from_string if TYPE_CHECKING: @@ -56,6 +56,7 @@ def _format_args_string(grading_context_columns: Optional[List[str]], eval_value # Function to extract Score and Justification +@developer_stable def _extract_score_and_justification(text): if text: text = re.sub(r"score", "score", text, flags=re.IGNORECASE)