Feature Extraction
sentence-transformers
Safetensors
bert
sentence-similarity
vietnamese
product-retrieval
text-embeddings-inference
Instructions to use trantuan1701/product-e5-small-vietnamese with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use trantuan1701/product-e5-small-vietnamese with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("trantuan1701/product-e5-small-vietnamese") sentences = [ "The weather is lovely today.", "It's so sunny outside!", "He drove to the stadium." ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [3, 3] - Notebooks
- Google Colab
- Kaggle
Vietnamese Product E5 Small
Fine-tuned SentenceTransformer model for asymmetric Vietnamese product retrieval: short search queries are matched to longer product documents.
Base model
intfloat/multilingual-e5-small
Usage
from sentence_transformers import SentenceTransformer
model = SentenceTransformer("trantuan1701/product-e5-small-vietnamese")
query_embeddings = model.encode(
["query: đèn led downlight at02 đổi màu"],
normalize_embeddings=True,
)
document_embeddings = model.encode(
["passage: product document text..."],
normalize_embeddings=True,
)
Important: this E5 model expects query: for queries and passage: for
documents.
Training summary
- Loss: MultipleNegativesRankingLoss
- Max sequence length: 512
- Dataset: 15,000 query-document pairs, 1,000 product documents
- Validation split: deterministic by
doc_id
Limitations
Current validation loss is a training diagnostic only. A full retrieval benchmark should report Recall@K, MRR, and NDCG before production selection.
- Downloads last month
- 45