hams-gte-reranker-ar-en
Fine-tuned from Alibaba-NLP/gte-multilingual-reranker-base for Arabic (MSA) / English / mixed and
cross-lingual retrieval over an enterprise knowledge bank, as part of the Hams.AI self-hosted RAG assessment.
from sentence_transformers import CrossEncoder
m = CrossEncoder("AbdelrahmanHassan/hams-gte-reranker-ar-en", trust_remote_code=True)
print(m.predict([("ما هي مدة الضمان؟", "The warranty period is 5 years.")])) # sigmoid relevance
Training
Binary cross-entropy, lr 2e-6, fp32, 2 epochs, 4 denoised hard negatives per query, word embeddings frozen.
Held-out test results (10 unseen documents, 138 questions; RTX 3050 Laptop)
Full hybrid pipeline (BM25 + fine-tuned e5 → RRF → this reranker), base vs fine-tuned pipeline:
| Metric | Base | Fine-tuned |
|---|---|---|
| Recall@1 | 0.717 | 0.783 |
| MRR | 0.786 | 0.849 |
| nDCG@10 | 0.810 | 0.873 |
Full details, including what went wrong and how it was fixed: model_card.md in the project repository.
Trained on a small synthetic corpus: expect smaller gains on very different domains.