Sentence Similarity
Safetensors
sentence-transformers
Amharic
PyLate
xlm-roberta
ColBERT
feature-extraction
Generated from Trainer
dataset_size:76474
loss:Contrastive
Eval Results (legacy)
text-embeddings-inference
Instructions to use rasyosef/colbert-roberta-amharic-medium with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use rasyosef/colbert-roberta-amharic-medium with sentence-transformers:
from pylate import models queries = [ "Which planet is known as the Red Planet?", "What is the largest planet in our solar system?", ] documents = [ ["Mars is the Red Planet.", "Venus is Earth's twin."], ["Jupiter is the largest planet.", "Saturn has rings."], ] model = models.ColBERT(model_name_or_path="rasyosef/colbert-roberta-amharic-medium") queries_emb = model.encode(queries, is_query=True) docs_emb = model.encode(documents, is_query=False) - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -99,7 +99,7 @@ from pylate import indexes, models, retrieve
|
|
| 99 |
|
| 100 |
# Step 1: Load the ColBERT model
|
| 101 |
model = models.ColBERT(
|
| 102 |
-
model_name_or_path=
|
| 103 |
)
|
| 104 |
|
| 105 |
# Step 2: Initialize the Voyager index
|
|
@@ -183,7 +183,7 @@ documents_ids = [
|
|
| 183 |
]
|
| 184 |
|
| 185 |
model = models.ColBERT(
|
| 186 |
-
model_name_or_path=
|
| 187 |
)
|
| 188 |
|
| 189 |
queries_embeddings = model.encode(
|
|
|
|
| 99 |
|
| 100 |
# Step 1: Load the ColBERT model
|
| 101 |
model = models.ColBERT(
|
| 102 |
+
model_name_or_path="rasyosef/colbert-roberta-amharic-medium",
|
| 103 |
)
|
| 104 |
|
| 105 |
# Step 2: Initialize the Voyager index
|
|
|
|
| 183 |
]
|
| 184 |
|
| 185 |
model = models.ColBERT(
|
| 186 |
+
model_name_or_path="rasyosef/colbert-roberta-amharic-medium",
|
| 187 |
)
|
| 188 |
|
| 189 |
queries_embeddings = model.encode(
|