Views
No views yet
1from pylate import models
2
3model = models.ColBERT(
4 model_name_or_path="ozertuu/jina-colbert-v2-turkish-commerce",
5 query_prefix="[QueryMarker]",
6 document_prefix="[DocumentMarker]",
7 query_length=32,
8 document_length=128,
9 attend_to_expansion_tokens=True,
10 trust_remote_code=True,
11)
12
13query_vectors = model.encode(
14 ["erkek siyah spor ayakkabı"],
15 is_query=True,
16)pip install pylate==1.5.0 einops| Metric | Base | Fine-tuned |
|---|---|---|
| Recall@1 | 0.4949 | 0.7302 |
| Recall@3 | 0.8020 | 0.9117 |
| MRR | 0.6717 | 0.8296 |
| nDCG@5 | 0.7529 | 0.8720 |
| Pair accuracy | 0.7171 | 0.8606 |
6.56e-7 olarak ölçüldü.CC-BY-NC-4.0 kapsamındadır.