2024.04.01
, The Dmeta-embedding
small version
is released. Just with 8 layers, inference is more efficient, about 30% improved.
2024.02.07
, The
Embedding API
service based on the Dmeta-embedding model now open for internal beta testing.
Click the link
to apply, and you will receive
400M tokens
for free, which can encode approximately GB-level Chinese text.
Our original intention. Let everyone use Embedding technology at low cost, pay more attention to their own business and product services, and leave the complex technical parts to us.
How to apply and use.
Click the link
to submit a form. We will reply to you via
[email protected]
within 48 hours. In order to be compatible with the large language model (LLM) technology ecosystem, our Embedding API is used in the same way as OpenAI. We will explain the specific usage in the reply email.
Join the ours. In the future, we will continue to work in the direction of large language models/AIGC to bring valuable technologies to the community. You can
click on the picture
and scan the QR code to join our WeChat community and cheer for the AIGC together!
Dmeta-embedding
is a cross-domain, cross-task, out-of-the-box Chinese embedding model. It is suitable for various scenarios such as search engine, Q&A, intelligent customer service, LLM+RAG, etc. It supports inference using tools like Transformers/Sentence-Transformers/Langchain.
Features:
Excellent cross-domain and scene generalization performance, currently ranked second on the
MTEB
Chinese leaderboard
. (2024.01.25)
The parameter size of model is just
400MB
, which can greatly reduce the cost of inference.
The context window length is up to
1024
, more suitable for long text retrieval, RAG and other scenarios
The Dmeta-embedding model ranked first in open source on the
MTEB Chinese list
(2024.01.25, first on the Baichuan list, that is not open source). For specific evaluation data and code, please refer to the MTEB
official
.
MTEB Chinese
:
The
Chinese leaderboard dataset
was collected by the BAAI. It contains 6 classic tasks and a total of 35 Chinese datasets, covering classification, retrieval, reranking, sentence pair classification, STS and other tasks. It is the most comprehensive Embedding model at present. The world's authoritative benchmark of ability assessments.
1. Why does the model have so good generalization performance, and can be used to many task scenarios out of the box?
The excellent generalization ability of the model comes from the diversity of pre-training data, as well as the design of different optimization objectives for multi-task scenarios when pre-training the model.
Specifically, the mainly technical features:
The first is large-scale weak label contrastive learning. Industry experience shows that out-of-the-box language models perform poorly on Embedding-related tasks. However, due to the high cost of supervised data annotation and acquisition, large-scale, high-quality weak label learning has become an optional technical route. By extracting weak labels from semi-structured data such as forums, news, Q&A communities, and encyclopedias on the Internet, and using large models to perform low-quality filtering, 1 billion-level weakly supervised text pair data is obtained.
The second is high-quality supervised learning. We have collected and compiled a large-scale open source annotated sentence pair data set, including a total of 30 million sentence pair samples in encyclopedia, education, finance, medical care, law, news, academia and other fields. At the same time, we mine hard-to-negative sample pairs and use contrastive learning to better optimize the model.
The last step is the optimization of retrieval tasks. Considering that search, question and answer, RAG and other scenarios are important application positions for the Embedding model, in order to enhance the cross-domain and cross-scenario performance of the model, we have specially optimized the model for retrieval tasks. The core lies in mining data from question and answer, retrieval and other data. Hard-to-negative samples use sparse and dense retrieval and other methods to construct a million-level hard-to-negative sample pair data set, which significantly improves the cross-domain retrieval performance of the model.
2. Can the model be used commercially?
Our model is based on the Apache-2.0 license and fully supports free commercial use.
3. How to reproduce the MTEB evaluation?
We provide the mteb_eval.py script in this model hub. You can run this script directly to reproduce our evaluation results.
4. What are the follow-up plans?
We will continue to work hard to provide the community with embedding models that have excellent performance, lightweight reasoning, and can be used in multiple scenarios out of the box. At the same time, we will gradually integrate embedding into the existing technology ecosystem and grow with the community!
Contact
If you encounter any problems during use, you are welcome to go to the
discussion
to make suggestions.
Dmeta-embedding-zh huggingface.co is an AI model on huggingface.co that provides Dmeta-embedding-zh's model effect (), which can be used instantly with this DMetaSoul Dmeta-embedding-zh model. huggingface.co supports a free trial of the Dmeta-embedding-zh model, and also provides paid use of the Dmeta-embedding-zh. Support call Dmeta-embedding-zh model through api, including Node.js, Python, http.
Dmeta-embedding-zh huggingface.co is an online trial and call api platform, which integrates Dmeta-embedding-zh's modeling effects, including api services, and provides a free online trial of Dmeta-embedding-zh, you can try Dmeta-embedding-zh online for free by clicking the link below.
DMetaSoul Dmeta-embedding-zh online free url in huggingface.co:
Dmeta-embedding-zh is an open source model from GitHub that offers a free installation service, and any user can find Dmeta-embedding-zh on GitHub to install. At the same time, huggingface.co provides the effect of Dmeta-embedding-zh install, users can directly use Dmeta-embedding-zh installed effect in huggingface.co for debugging and trial. It also supports api for free installation.