The model maps sentences & paragraphs to sequences of 128-dimensional dense vectors and can be used for semantic textual retrieval using the MaxSim operator.
1from pylate import models
2
3# Download from the 🤗 Hub
4model = models.ColBERT(
5 model_name_or_path="rasyosef/colbert-amharic-base",
6)
7
8# Run inference
9sentences = [
10 'ለውጭ ገበያ በሚቀርበው የኢትዮጵያ ቡና ላይ የተጋረጠው ፈተና',
11 'የኢትዮጵያ ዋነኛ የውጭ ምንዛሬ ምንጭ የሆነው ወደ ውጭ የሚላክ ቡና ዘርፍ በአሁኑ ጊዜ ከፍተኛ ውጥረት ውስጥ ገብቷል።',
12 'የቻይናው ፕሬዝዳንት ዚ ጂንፒንግ ከትራምፕ ጋር ባደረጉት ጉባኤ ትኩረታቸው በሁለቱ ሀገራት መካከል ለወራት ከተፈጠረ ውጥረት እና የንግድ ጦርነት በኋላ የተረገጋጋ ግንኙነትን ማስቀጠል ነበር።',
13]
14
15embeddings = model.encode(
16 sentences,
17 is_query=True,
18)
19
20print(embeddings[0].shape)
21# (32, 128)
22
23# Get the similarity scores for the embeddings
24similarities = model.similarity(embeddings, embeddings)
25print(similarities)
1@inproceedings{alemneh2026amharicir,
2 title = {The Multilingual Curse at the Retrieval Layer: Evidence from Amharic},
3 author = {Alemneh, Yosef Worku and Mekonnen, Kidist Amde and de Rijke, Maarten},
4 booktitle = {Proceedings of the 1st Workshop on Multilinguality in the Era of Large Language Models (MeLLM), ACL 2026},
5 year = {2026},
6}