Sponsored by
Vmake Labs Video Enhancer
-Vmake Labs Video Enhancer uses AI to improve video quality, restore details, reduce blur, and upscale videos to 8K.
Vietnamese_Embedding is an embedding model fine-tuned from the BGE-M3 model (
https://huggingface.co/BAAI/bge-m3
) to enhance retrieval capabilities for Vietnamese.
The model was trained on approximately 300,000 triplets of queries, positive documents, and negative documents for Vietnamese.
The model was trained with a maximum sequence length of 2048.
Usage
from sentence_transformers import SentenceTransformer
import torch
model = SentenceTransformer("AITeamVN/Vietnamese_Embedding")
model.max_seq_length = 2048
sentences_1 = ["Trí tuệ nhân tạo là gì", "Lợi ích của giấc ngủ"]
sentences_2 = ["Trí tuệ nhân tạo là công nghệ giúp máy móc suy nghĩ và học hỏi như con người. Nó hoạt động bằng cách thu thập dữ liệu, nhận diện mẫu và đưa ra quyết định.",
"Giấc ngủ giúp cơ thể và não bộ nghỉ ngơi, hồi phục năng lượng và cải thiện trí nhớ. Ngủ đủ giấc giúp tinh thần tỉnh táo và làm việc hiệu quả hơn."]
query_embedding = model.encode(sentences_1)
doc_embeddings = model.encode(sentences_2)
print(similarity = query_embedding @ doc_embeddings.T)
'''array([[0.66212064, 0.33066642], [0.25866613, 0.5865289 ]], dtype=float32)'''
Evaluation:
Dataset: Entire training dataset of Legal Zalo 2021. Our model was not trained on this dataset.
Model
Accuracy@1
Accuracy@3
Accuracy@5
Accuracy@10
Accuracy@100
MRR@10
Vietnamese_Embedding
0.7274
0.8992
0.9305
0.9568
0.9922
0.8181
Vietnamese-bi-encoder (BKAI)
0.7109
0.8680
0.9014
0.9299
0.9772
0.7951
BGE-M3
0.5682
0.7728
0.8382
0.8921
0.9772
0.6822
You can reproduce the evaluation result by running code python evaluation_model.py (data downloaded from Kaggle).
Vietnamese_Embedding huggingface.co is an AI model on huggingface.co that provides Vietnamese_Embedding's model effect (), which can be used instantly with this AITeamVN Vietnamese_Embedding model. huggingface.co supports a free trial of the Vietnamese_Embedding model, and also provides paid use of the Vietnamese_Embedding. Support call Vietnamese_Embedding model through api, including Node.js, Python, http.
Vietnamese_Embedding huggingface.co is an online trial and call api platform, which integrates Vietnamese_Embedding's modeling effects, including api services, and provides a free online trial of Vietnamese_Embedding, you can try Vietnamese_Embedding online for free by clicking the link below.
AITeamVN Vietnamese_Embedding online free url in huggingface.co:
Vietnamese_Embedding is an open source model from GitHub that offers a free installation service, and any user can find Vietnamese_Embedding on GitHub to install. At the same time, huggingface.co provides the effect of Vietnamese_Embedding install, users can directly use Vietnamese_Embedding installed effect in huggingface.co for debugging and trial. It also supports api for free installation.
Vietnamese_Embedding install url in huggingface.co: