From 26e46ac75041242b7a76a3136199139f4d3d6911 Mon Sep 17 00:00:00 2001 From: Basil Chen <192173459+rastagan-git@users.noreply.github.com> Date: Tue, 8 Sep 2026 22:40:55 +0800 Subject: [PATCH 1/2] fix: use the canonical Hugging Face source for BGE-small --- fastembed/text/onnx_embedding.py | 2 +- tests/test_common.py | 10 ++++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/fastembed/text/onnx_embedding.py b/fastembed/text/onnx_embedding.py index 0d36e118f..f9f875d21 100644 --- a/fastembed/text/onnx_embedding.py +++ b/fastembed/text/onnx_embedding.py @@ -77,7 +77,7 @@ ), license="mit", size_in_GB=0.067, - sources=ModelSource(hf="qdrant/bge-small-en-v1.5-onnx-q"), + sources=ModelSource(hf="Qdrant/bge-small-en-v1.5-onnx-Q"), model_file="model_optimized.onnx", ), DenseModelDescription( diff --git a/tests/test_common.py b/tests/test_common.py index f7cae5ba5..c970b190d 100644 --- a/tests/test_common.py +++ b/tests/test_common.py @@ -33,6 +33,16 @@ def test_text_list_supported_models(): assert "hf" in description["sources"] or "url" in description["sources"] +def test_bge_small_canonical_huggingface_source(): + description = next( + model + for model in TextEmbedding.list_supported_models() + if model["model"] == "BAAI/bge-small-en-v1.5" + ) + # Avoid the case-normalizing redirect, which lacks X-Repo-Commit metadata. + assert description["sources"]["hf"] == "Qdrant/bge-small-en-v1.5-onnx-Q" + + def test_last_token_pooling(): token_embeddings = np.array( [ From cfa3d492f0e5ae0c0fcc5e5e6e22866d03deb76d Mon Sep 17 00:00:00 2001 From: George Date: Wed, 9 Sep 2026 17:14:54 +0700 Subject: [PATCH 2/2] tests: remove excess test --- tests/test_common.py | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/tests/test_common.py b/tests/test_common.py index c970b190d..f7cae5ba5 100644 --- a/tests/test_common.py +++ b/tests/test_common.py @@ -33,16 +33,6 @@ def test_text_list_supported_models(): assert "hf" in description["sources"] or "url" in description["sources"] -def test_bge_small_canonical_huggingface_source(): - description = next( - model - for model in TextEmbedding.list_supported_models() - if model["model"] == "BAAI/bge-small-en-v1.5" - ) - # Avoid the case-normalizing redirect, which lacks X-Repo-Commit metadata. - assert description["sources"]["hf"] == "Qdrant/bge-small-en-v1.5-onnx-Q" - - def test_last_token_pooling(): token_embeddings = np.array( [