Downloads · 30 days
21
51% of all-time downloads
xtenzr/ms-marco-MiniLM-L-6-v2_finetuned_20241120_2220
ms-marco-MiniLM-L-6-v2_finetuned_20241120_2220 is a machine learning model from xtenzr. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
This model is a fine-tuned version of ms-marco-MiniLM-L-6-v2 for relevancy evaluation in RAG scenarios.
Downloads · 30 days
21
51% of all-time downloads
All-time downloads
41
Public
Parameters
22.7M
90.9 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors90.9 MB · 99%
From the Hugging Face model README
This model is a fine-tuned version of ms-marco-MiniLM-L-6-v2 for relevancy evaluation in RAG scenarios.
The model was trained on a specialized dataset for evaluating RAG responses, containing pairs of (context, response) with relevancy labels. Dataset size: 4505 training examples, 5006 validation examples.
Validation Metrics:
- NDCG: 0.9996 ± 0.0001
- MAP: 0.9970 ± 0.0009
- Accuracy: 0.9766 ± 0.0033
from sentence_transformers import CrossEncoder
# Load model
model = CrossEncoder('xtenzr/ms-marco-MiniLM-L-6-v2_finetuned_20241120_2220')
# Prepare inputs
texts = [
["Context: {...}
Query: {...}", "Response: {...}"],
]
# Get predictions
scores = model.predict(texts) # Returns relevancy scores [0-1]