[model-gateway] address embedding similarity threshold in ut (#16321)

This commit is contained in:
Simo Lin
2026-01-02 16:46:55 -08:00
committed by GitHub
parent 24c91001cf
commit 31ed68e7c1
@@ -227,7 +227,7 @@ class TestEmbeddingCorrectness(CustomTestCase):
logging.info(f"Semantic similarity test set {i + 1} passed\n")
def test_relevance_scores(self, tolerance: float = 1e-2):
def test_relevance_scores(self, tolerance: float = 0.05):
"""Compare relevance scores between gateway and HF implementations."""
logging.info(
f'Comparing relevance scores between {self.config["server_engine"]} and HF'