french-document-embedding
is an embedding model for documents in the French-English language, with a context length of up to 8096 tokens. This model is a specialized text-embedding model trained specifically for the French-English language. It is built upon
gte-multilingual
and trained using the [SimilarityLoss],
Multi-Negative Ranking Loss
,
Matryoshka2dLoss
and
GISTEmbedLoss
using
guide model
. This model embeds and converts long texts or documents into vectors with 786 dimensions, making it useful for vector databases serving semantic search or RAG (Retrieval-Augmented Generation).
from sentence_transformers import SentenceTransformer
sentences = ["Paris est une capitale de la France", "Paris is a capital of France"]
model = SentenceTransformer('dangvantuan/french-document-embedding', trust_remote_code=True)
embeddings = model.encode(sentences)
print(embeddings)
Evaluation
Citation
@article{reimers2019sentence,
title={Sentence-BERT: Sentence Embeddings using Siamese BERT-Networks},
author={Nils Reimers, Iryna Gurevych},
journal={https://arxiv.org/abs/1908.10084},
year={2019}
}
@article{zhang2024mgte,
title={mGTE: Generalized Long-Context Text Representation and Reranking Models for Multilingual Text Retrieval},
author={Zhang, Xin and Zhang, Yanzhao and Long, Dingkun and Xie, Wen and Dai, Ziqi and Tang, Jialong and Lin, Huan and Yang, Baosong and Xie, Pengjun and Huang, Fei and others},
journal={arXiv preprint arXiv:2407.19669},
year={2024}
}
@article{li2023towards,
title={Towards general text embeddings with multi-stage contrastive learning},
author={Li, Zehan and Zhang, Xin and Zhang, Yanzhao and Long, Dingkun and Xie, Pengjun and Zhang, Meishan},
journal={arXiv preprint arXiv:2308.03281},
year={2023}
}
@article{li20242d,
title={2d matryoshka sentence embeddings},
author={Li, Xianming and Li, Zongxi and Li, Jing and Xie, Haoran and Li, Qing},
journal={arXiv preprint arXiv:2402.14776},
year={2024}
}
@misc{henderson2017efficient,
title={Efficient Natural Language Response Suggestion for Smart Reply},
author={Matthew Henderson and Rami Al-Rfou and Brian Strope and Yun-hsuan Sung and Laszlo Lukacs and Ruiqi Guo and Sanjiv Kumar and Balint Miklos and Ray Kurzweil},
year={2017},
eprint={1705.00652},
archivePrefix={arXiv},
primaryClass={cs.CL}
}
@misc{solatorio2024gistembed,
title={GISTEmbed: Guided In-sample Selection of Training Negatives for Text Embedding Fine-tuning},
author={Aivin V. Solatorio},
year={2024},
eprint={2402.16829},
archivePrefix={arXiv},
primaryClass={cs.LG}
}
Runs of dangvantuan french-document-embedding on huggingface.co
1.5K
Total runs
-9
24-hour runs
-23
3-day runs
101
7-day runs
614
30-day runs
More Information About french-document-embedding huggingface.co Model
More french-document-embedding license Visit here:
french-document-embedding huggingface.co is an AI model on huggingface.co that provides french-document-embedding's model effect (), which can be used instantly with this dangvantuan french-document-embedding model. huggingface.co supports a free trial of the french-document-embedding model, and also provides paid use of the french-document-embedding. Support call french-document-embedding model through api, including Node.js, Python, http.
french-document-embedding huggingface.co is an online trial and call api platform, which integrates french-document-embedding's modeling effects, including api services, and provides a free online trial of french-document-embedding, you can try french-document-embedding online for free by clicking the link below.
dangvantuan french-document-embedding online free url in huggingface.co:
french-document-embedding is an open source model from GitHub that offers a free installation service, and any user can find french-document-embedding on GitHub to install. At the same time, huggingface.co provides the effect of french-document-embedding install, users can directly use french-document-embedding installed effect in huggingface.co for debugging and trial. It also supports api for free installation.
french-document-embedding install url in huggingface.co: