This is a
sentence-transformers model finetuned from
dicta-il/neodictabert-bilingual on the he dataset. It maps sentences & paragraphs to a 768-dimensional dense vector space and can be used for semantic textual similarity, semantic search, paraphrase mining, text classification, clustering, and more.
This model achieved #10 on the private phase of the
Hebrew Semantic Retrieval National Challenge.
Then you can load this model and run inference.
1from sentence_transformers import SentenceTransformer
2
3# Download from the 🤗 Hub
4model = SentenceTransformer("dicta-il/neodictabert-bilingual-embed", trust_remote_code=True)
5# Run inference
6queries = [
7 "query: מתכון למיונז ביתי (חלמון, שמן, חרדל, לימון) + הוראות הכנה",
8]
9
10documents = [
11 "מיונז ביתי. מרכיבים: חלמון בטמפרטורת החדר, חרדל דיז'ון, מיץ לימון/חומץ, מלח, שמן ניטרלי. הכנה: טורפים חלמון+חרדל+מלח+לימון, מזלפים שמן בהדרגה תוך טריפה עד להסמכה (אמולסיה).",
12 "ים המלח. עובדות: זהו המקום הנמוך ביותר על פני היבשה, המליחות בו גבוהה בהרבה מהאוקיינוס ולכן אנשים צפים בקלות. בוץ עשיר במינרלים משמש גם לקוסמטיקה.",
13 "כתב יתדות. היסטוריה: מסופוטמיה/שומר, חריתה בלוחות טיט בעזרת קנה. התפתח מאידיאוגרמות לייצוג פונטי והאפשר ניהול ביורוקרטי ושימור חוקים וידע.",
14 "פסטה ברוטב עגבניות. מרכיבים: פסטה, עגבניות, שום, שמן זית, מלח. הכנה: מבשלים פסטה ומכינים רוטב עגבניות.",
15]
16
17query_embeddings = model.encode_query(queries)
18document_embeddings = model.encode_document(documents)
19print(query_embeddings.shape, document_embeddings.shape)
20# [1, 768] [3, 768]
21
22# Get the similarity scores for the embeddings
23similarities = model.similarity(query_embeddings, document_embeddings)
24print(similarities)
25# tensor([[ 0.2235, 0.0164, 0.0822, -0.0282]])
1@misc{shmidman2025neodictabertpushingfrontierbert,
2 title={NeoDictaBERT: Pushing the Frontier of BERT models for Hebrew},
3 author={Shaltiel Shmidman and Avi Shmidman and Moshe Koppel},
4 year={2025},
5 eprint={2510.20386},
6 archivePrefix={arXiv},
7 primaryClass={cs.CL},
8 url={https://arxiv.org/abs/2510.20386},
9}