This is a sentence-transformers model fine-tuned specifically for Serbian public procurement documents ("Javne Nabavke"). It maps sentences & paragraphs to a 1024 dimensional dense vector space and can be used for tasks like clustering, semantic search, and document retrieval in the context of Serbian public procurement.
Model Description
This model has been fine-tuned on a dataset of 1000 Serbian public procurement documents to improve semantic understanding and retrieval performance for:
Public procurement document analysis
Tender document similarity matching
Legal document search and retrieval
Procurement process automation
Serbian legal text understanding
The model is based on a multilingual transformer architecture and has been optimized for both Serbian and English text in the public procurement domain.
1from sentence_transformers import SentenceTransformer
23# Example Serbian public procurement texts4sentences =[5"Javni poziv za nabavku računarske opreme",6"Tender za izgradnju javnih objekata",7"Specifikacija tehničkih zahteva za softver"8]910model = SentenceTransformer('DejanX13/Javne_Nabavke_embedding_1000')11embeddings = model.encode(sentences)12print(embeddings)
Usage (LlamaIndex)
You can also use this model with LlamaIndex for document retrieval:
python
1from llama_index.embeddings.huggingface import HuggingFaceEmbedding
23embedding_model = HuggingFaceEmbedding(4 model_name="DejanX13/Javne_Nabavke_embedding_1000",5 embed_batch_size=166)78# Use with VectorStoreIndex for document retrieval9from llama_index.core import VectorStoreIndex, Document
1011documents =[Document(text="Your procurement document text here")]12index = VectorStoreIndex.from_documents(documents, embed_model=embedding_model)
Performance
This model has been evaluated on Serbian public procurement document retrieval tasks and shows significant improvement over general-purpose multilingual models for domain-specific tasks.
Training Details
The model was fine-tuned with the following parameters:
Base Model: multilingual-e5-large
Training Dataset: 1000 Serbian public procurement documents with query-document pairs
Training Parameters:
Epochs: 2
Batch Size: 5
Learning Rate: 2e-05
Loss Function: MultipleNegativesRankingLoss
Evaluation Steps: 50
Warmup Steps: 94
Weight Decay: 0.01
Max Gradient Norm: 1
Optimizer: AdamW
DataLoader:
torch.utils.data.dataloader.DataLoader of length 470 with parameters: