Skip to content

new: add bge-reranker-v2-m3 - #743

Merged
joein merged 1 commit into
mainfrom
add-bge-reranker-v2-m3
Sep 28, 2026
Merged

joein merged 1 commit into
mainfrom
add-bge-reranker-v2-m3

Conversation

@joein

@joein joein commented Sep 28, 2026

Copy link
Copy Markdown
Member

@coderabbitai

coderabbitai Bot commented Sep 28, 2026

Copy link
Copy Markdown

Review in Change Stack →

Navigate logical layers of code changes, visualize relationships, and explore their blast radius.

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Advanced

Run ID: 7c7dd727-d08d-4899-8563-fb87f7941612

📥 Commits

Reviewing files that changed from the base of the PR and between 9bf33d5 and 4138353.

📒 Files selected for processing (2)
  • fastembed/rerank/cross_encoder/onnx_text_cross_encoder.py
  • tests/test_text_cross_encoder.py

Included review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 7 remain after this review.


📝 Walkthrough

Walkthrough

The ONNX cross-encoder registry adds multilingual and INT8 entries for BAAI/bge-reranker-v2-m3. Tests add canonical scores for both models and accept either of two expected score arrays for the INT8 model.

Priority: ⬇️ Low

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Feature

Merge Risk: ⚪ Minimal · up to 41383

The new model entries match the available artifacts, and the score checks retain meaningful assertions. No actionable merge-blocking risk remains.

Security Architecture Review

Security architecture risk: 🔵 Low · up to 41383

The new models are optional, but using either one depends on files supplied by a new external publisher. Existing loading controls still apply; the added exposure is limited to applications that select these models.

Retained concerns

  • Low · security · inferred: The newly selectable BAAI-named models obtain ONNX files from onnx-community without an immutable revision in their catalog entries. Applications selecting them consequently trust that publisher's current artifacts for inference.
Security review details

Security Blast Radius

  • inferred — The added publisher affects processes that select either new model and load its artifacts; the supplied evidence does not establish that an untrusted remote user can control model selection.

Security Findings and Attack Paths

  • inferred — If the new upstream artifacts change or their publisher is compromised, a selecting application could load different model bytes. No malicious artifact or resulting exploit is established.

Trust Boundaries and Controls

  • observed — The existing download path requests catalog-listed model files, checks cached-file presence before reuse, and supports offline operation. Its online metadata checks compare against repository-provided file metadata, not an immutable revision specified by these entries.

Hardening Proposals

  • proposed — For deployments requiring reproducible or independently approved artifacts, pin and verify the selected model revision or distribute preapproved local files before enabling these models.
🚥 Pre-merge checks | ✅ 3 | ❌ 1 | ❓ 1

❌ Failed checks (1 warning, 1 inconclusive)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 1 functions across 2 files. Write docstrings for the functions missing them to satisfy the coverage threshold.
Description check ❓ Inconclusive The description contains only an issue reference, "#494". It does not explain the model additions or test changes. Add a brief description of the added ONNX models and the related test fixtures.
✅ Passed checks (3 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly identifies the main change: adding the BGE reranker v2 M3 model. It is concise and related to the changeset.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
  • Fix all pre-merge checks with AI
✨ Finishing Touches 💡 1
📝 Generate docstrings 💡
  • Commit to this branch
  • Create a new PR
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@joein
joein merged commit 71facb0 into main Sep 28, 2026
17 checks passed
@joein
joein deleted the add-bge-reranker-v2-m3 branch September 28, 2026 16:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant