Downloads · 30 days
23
13% of all-time downloads
MedSwin/MedSwin-Reranker-bge-gemma
MedSwin-Reranker-bge-gemma is a text ranking model from MedSwin. Use it for the text ranking task on the model card, and read the license before you ship it in a product. The card lists the license as apache-2.0.
- Developed by: Medical Swinburne University of Technology AI Team - Funded by: Swinburne University of Technology - Language(s): English - License: Apache 2.0
Downloads · 30 days
23
13% of all-time downloads
All-time downloads
174
Public
Parameters
2.5B
5 GB on disk
Likes
2
Public
Click a slice to open those files.
.safetensors5 GB · 100%
From the Hugging Face model README
RAG Context Reranking
Re-rank candidate passages retrieved from a VectorDB (initial recall via embeddings), improving final context selection for downstream medical LLM reasoning.
EMR Profile Reranking
Re-rank patient historical information (e.g., past assessments, diagnoses, medications) to surface the most clinically relevant records for a given current assessment.
The reranker outputs a direct relevance score for each (query, passage) pair and can be used as a drop-in “second-stage” ranking component after embedding-based retrieval.
Embedding retrieval is fast and scalable but may miss nuanced relevance (clinical relationships, subtle terminology, long context dependencies).
A reranker improves precision by explicitly scoring each candidate passage against the query, typically yielding better top-k context for medical QA and decision support.
The training corpus is converted into reranker triplets:
{
"query": "clinical question",
"pos": ["relevant passage 1", "relevant passage 2"],
"neg": ["irrelevant passage A", "irrelevant passage B"],
"source": "dataset_name"
}
Computes IR ranking metrics by scoring each query against its (pos + neg) candidates: