mirror of
https://github.com/qdrant/fastembed.git
synced 2026-07-30 06:31:01 -05:00
* * feat(Supported_Models.ipynb): add support for BAAI/bge-small-zh-v1.5 model * feat(Supported_Models.ipynb): add support for jinaai/jina-embeddings-v2-base-en model * feat(Supported_Models.ip * * chore(docs): update Getting Started.ipynb with progressbar
177 lines
5.9 KiB
Plaintext
177 lines
5.9 KiB
Plaintext
{
|
|
"cells": [
|
|
{
|
|
"cell_type": "code",
|
|
"execution_count": 1,
|
|
"metadata": {},
|
|
"outputs": [
|
|
{
|
|
"data": {
|
|
"text/html": [
|
|
"<div>\n",
|
|
"<style scoped>\n",
|
|
" .dataframe tbody tr th:only-of-type {\n",
|
|
" vertical-align: middle;\n",
|
|
" }\n",
|
|
"\n",
|
|
" .dataframe tbody tr th {\n",
|
|
" vertical-align: top;\n",
|
|
" }\n",
|
|
"\n",
|
|
" .dataframe thead th {\n",
|
|
" text-align: right;\n",
|
|
" }\n",
|
|
"</style>\n",
|
|
"<table border=\"1\" class=\"dataframe\">\n",
|
|
" <thead>\n",
|
|
" <tr style=\"text-align: right;\">\n",
|
|
" <th></th>\n",
|
|
" <th>model</th>\n",
|
|
" <th>dim</th>\n",
|
|
" <th>description</th>\n",
|
|
" <th>size_in_GB</th>\n",
|
|
" </tr>\n",
|
|
" </thead>\n",
|
|
" <tbody>\n",
|
|
" <tr>\n",
|
|
" <th>0</th>\n",
|
|
" <td>BAAI/bge-small-en</td>\n",
|
|
" <td>384</td>\n",
|
|
" <td>Fast English model</td>\n",
|
|
" <td>0.20</td>\n",
|
|
" </tr>\n",
|
|
" <tr>\n",
|
|
" <th>1</th>\n",
|
|
" <td>BAAI/bge-small-en-v1.5</td>\n",
|
|
" <td>384</td>\n",
|
|
" <td>Fast and Default English model</td>\n",
|
|
" <td>0.13</td>\n",
|
|
" </tr>\n",
|
|
" <tr>\n",
|
|
" <th>2</th>\n",
|
|
" <td>BAAI/bge-small-zh-v1.5</td>\n",
|
|
" <td>512</td>\n",
|
|
" <td>Fast and recommended Chinese model</td>\n",
|
|
" <td>0.10</td>\n",
|
|
" </tr>\n",
|
|
" <tr>\n",
|
|
" <th>3</th>\n",
|
|
" <td>BAAI/bge-base-en</td>\n",
|
|
" <td>768</td>\n",
|
|
" <td>Base English model</td>\n",
|
|
" <td>0.50</td>\n",
|
|
" </tr>\n",
|
|
" <tr>\n",
|
|
" <th>4</th>\n",
|
|
" <td>BAAI/bge-base-en-v1.5</td>\n",
|
|
" <td>768</td>\n",
|
|
" <td>Base English model, v1.5</td>\n",
|
|
" <td>0.44</td>\n",
|
|
" </tr>\n",
|
|
" <tr>\n",
|
|
" <th>5</th>\n",
|
|
" <td>sentence-transformers/all-MiniLM-L6-v2</td>\n",
|
|
" <td>384</td>\n",
|
|
" <td>Sentence Transformer model, MiniLM-L6-v2</td>\n",
|
|
" <td>0.09</td>\n",
|
|
" </tr>\n",
|
|
" <tr>\n",
|
|
" <th>6</th>\n",
|
|
" <td>intfloat/multilingual-e5-large</td>\n",
|
|
" <td>1024</td>\n",
|
|
" <td>Multilingual model, e5-large. Recommend using this model for non-English languages</td>\n",
|
|
" <td>2.24</td>\n",
|
|
" </tr>\n",
|
|
" <tr>\n",
|
|
" <th>7</th>\n",
|
|
" <td>jinaai/jina-embeddings-v2-base-en</td>\n",
|
|
" <td>768</td>\n",
|
|
" <td>English embedding model supporting 8192 sequence length</td>\n",
|
|
" <td>0.55</td>\n",
|
|
" </tr>\n",
|
|
" <tr>\n",
|
|
" <th>8</th>\n",
|
|
" <td>jinaai/jina-embeddings-v2-small-en</td>\n",
|
|
" <td>512</td>\n",
|
|
" <td>English embedding model supporting 8192 sequence length</td>\n",
|
|
" <td>0.13</td>\n",
|
|
" </tr>\n",
|
|
" </tbody>\n",
|
|
"</table>\n",
|
|
"</div>"
|
|
],
|
|
"text/plain": [
|
|
" model dim \\\n",
|
|
"0 BAAI/bge-small-en 384 \n",
|
|
"1 BAAI/bge-small-en-v1.5 384 \n",
|
|
"2 BAAI/bge-small-zh-v1.5 512 \n",
|
|
"3 BAAI/bge-base-en 768 \n",
|
|
"4 BAAI/bge-base-en-v1.5 768 \n",
|
|
"5 sentence-transformers/all-MiniLM-L6-v2 384 \n",
|
|
"6 intfloat/multilingual-e5-large 1024 \n",
|
|
"7 jinaai/jina-embeddings-v2-base-en 768 \n",
|
|
"8 jinaai/jina-embeddings-v2-small-en 512 \n",
|
|
"\n",
|
|
" description \\\n",
|
|
"0 Fast English model \n",
|
|
"1 Fast and Default English model \n",
|
|
"2 Fast and recommended Chinese model \n",
|
|
"3 Base English model \n",
|
|
"4 Base English model, v1.5 \n",
|
|
"5 Sentence Transformer model, MiniLM-L6-v2 \n",
|
|
"6 Multilingual model, e5-large. Recommend using this model for non-English languages \n",
|
|
"7 English embedding model supporting 8192 sequence length \n",
|
|
"8 English embedding model supporting 8192 sequence length \n",
|
|
"\n",
|
|
" size_in_GB \n",
|
|
"0 0.20 \n",
|
|
"1 0.13 \n",
|
|
"2 0.10 \n",
|
|
"3 0.50 \n",
|
|
"4 0.44 \n",
|
|
"5 0.09 \n",
|
|
"6 2.24 \n",
|
|
"7 0.55 \n",
|
|
"8 0.13 "
|
|
]
|
|
},
|
|
"execution_count": 1,
|
|
"metadata": {},
|
|
"output_type": "execute_result"
|
|
}
|
|
],
|
|
"source": [
|
|
"%load_ext autoreload\n",
|
|
"%autoreload 2\n",
|
|
"\n",
|
|
"from fastembed.embedding import Embedding\n",
|
|
"import pandas as pd\n",
|
|
"pd.set_option('display.max_colwidth', None)\n",
|
|
"pd.DataFrame(Embedding.list_supported_models())"
|
|
]
|
|
}
|
|
],
|
|
"metadata": {
|
|
"kernelspec": {
|
|
"display_name": "fst",
|
|
"language": "python",
|
|
"name": "python3"
|
|
},
|
|
"language_info": {
|
|
"codemirror_mode": {
|
|
"name": "ipython",
|
|
"version": 3
|
|
},
|
|
"file_extension": ".py",
|
|
"mimetype": "text/x-python",
|
|
"name": "python",
|
|
"nbconvert_exporter": "python",
|
|
"pygments_lexer": "ipython3",
|
|
"version": "3.9.17"
|
|
},
|
|
"orig_nbformat": 4
|
|
},
|
|
"nbformat": 4,
|
|
"nbformat_minor": 2
|
|
}
|