fix: Fix oceanbase vector_name_exists bug (#1465)

Signed-off-by: shanhaikang.shk <shanhaikang.shk@oceanbase.com>
Co-authored-by: aries_ckt <916701291@qq.com>
This commit is contained in:
GITHUBear
2024-04-25 18:09:22 +08:00
committed by GitHub
parent 71529975d8
commit 98ebfdcd7a
2 changed files with 26 additions and 12 deletions

View File

@@ -79,9 +79,8 @@ class RetrieverMRRMetric(RetrieverEvaluationMetric):
def sync_compute(
self,
prediction: Optional[List[str]] = None,
contexts: Optional[List[str]] = None,
**kwargs: Any,
prediction: List[str],
contexts: Optional[Sequence[str]] = None,
) -> BaseEvaluationResult:
"""Compute MRR metric.
@@ -118,9 +117,8 @@ class RetrieverHitRateMetric(RetrieverEvaluationMetric):
def sync_compute(
self,
prediction: Optional[List[str]] = None,
contexts: Optional[List[str]] = None,
**kwargs: Any,
prediction: List[str],
contexts: Optional[Sequence[str]] = None,
) -> BaseEvaluationResult:
"""Compute HitRate metric.