Downloads · 30 days
8
22% of all-time downloads
uzbtrust/uzbek-operator-rag
uzbek-operator-rag is a sentence similarity model from uzbtrust. Use it when you need a score for how close two texts are. The card lists the license as mit.
A BERT-style transformer encoder (42.1M params, 8 layers, 512 hidden, trained from a custom BPE tokenizer) pretrained with Masked Language Modeling and fine-tuned with SimCSE for dense retrieval. Built for a retrieval…
Downloads · 30 days
8
22% of all-time downloads
All-time downloads
36
Public
Repo size
136 MB
Likes
0
Public
Click a slice to open those files.
.pt136 MB · 100%
From the Hugging Face model README
A BERT-style transformer encoder (42.1M params, 8 layers, 512 hidden, trained from a custom BPE
tokenizer) pretrained with Masked Language Modeling and fine-tuned with SimCSE for dense
retrieval. Built for a retrieval-augmented operator chatbot — no LangChain or LlamaIndex.
Architecture, pretraining, and full RAG pipeline code:
uzbtrust/uzbek-operator-rag on GitHub.
Dense embeddings from this encoder are fused with TF-IDF sparse retrieval (score fusion, 0.5/0.5) before generation. See the GitHub repo for the retriever and generator code.
| Metric (retrieval, 1015 test questions) | Value |
|---|---|
| MRR@5 | 0.985 |
| NDCG@5 | 0.985 |
| Recall@5 | 0.985 |
model.pt — {"epoch", "loss", "config", "model": state_dict}config.json — architecture and training summaryThe encoder class and BPE tokenizer live in the GitHub repo, not in this repository:
git clone https://github.com/uzbtrust/uzbek-operator-rag
cd uzbek-operator-rag
import torch
from model.transformer import Encoder # see repo for exact constructor args
ckpt = torch.load("model.pt", map_location="cpu")
model = Encoder(**ckpt["config"]["model"])
model.load_state_dict(ckpt["model"])
model.eval()
The tokenizer is trained with tokenizer/train_tokenizer.py
in the GitHub repo; it is not bundled in this model repository.
MIT, matching the GitHub repository.