@@ -11,3 +11,6 @@ export declare enum ExecutionProvider { | ||
| BGEBaseEN = "fast-bge-base-en", | ||
| BGEBaseENV15 = "fast-bge-base-en-v1.5", | ||
| BGESmallEN = "fast-bge-small-en", | ||
| BGESmallENV15 = "fast-bge-small-en-v1.5", | ||
| BGESmallZH = "fast-bge-small-zh-v1.5", | ||
| MLE5Large = "fast-multilingual-e5-large" | ||
@@ -14,0 +17,0 @@ } |
+20
-2
@@ -70,3 +70,6 @@ "use strict"; | ||
| EmbeddingModel["BGEBaseEN"] = "fast-bge-base-en"; | ||
| EmbeddingModel["BGEBaseENV15"] = "fast-bge-base-en-v1.5"; | ||
| EmbeddingModel["BGESmallEN"] = "fast-bge-small-en"; | ||
| EmbeddingModel["BGESmallENV15"] = "fast-bge-small-en-v1.5"; | ||
| EmbeddingModel["BGESmallZH"] = "fast-bge-small-zh-v1.5"; | ||
| EmbeddingModel["MLE5Large"] = "fast-multilingual-e5-large"; | ||
@@ -119,3 +122,3 @@ })(EmbeddingModel || (exports.EmbeddingModel = EmbeddingModel = {})); | ||
| } | ||
| static init({ model = EmbeddingModel.BGESmallEN, executionProviders = [ExecutionProvider.CPU], maxLength = 512, cacheDir = "local_cache", showDownloadProgress = true, } = {}) { | ||
| static init({ model = EmbeddingModel.BGESmallENV15, executionProviders = [ExecutionProvider.CPU], maxLength = 512, cacheDir = "local_cache", showDownloadProgress = true, } = {}) { | ||
| return __awaiter(this, void 0, void 0, function* () { | ||
@@ -331,5 +334,10 @@ const modelDir = yield FlagEmbedding.retrieveModel(model, cacheDir, showDownloadProgress); | ||
| dim: 384, | ||
| description: "Fast and Default English model", | ||
| description: "Fast English model", | ||
| }, | ||
| { | ||
| model: EmbeddingModel.BGESmallENV15, | ||
| dim: 384, | ||
| description: "v1.5 release of the fast, default English model", | ||
| }, | ||
| { | ||
| model: EmbeddingModel.BGEBaseEN, | ||
@@ -340,2 +348,12 @@ dim: 768, | ||
| { | ||
| model: EmbeddingModel.BGEBaseENV15, | ||
| dim: 768, | ||
| description: "v1.5 release of Base English model", | ||
| }, | ||
| { | ||
| model: EmbeddingModel.BGESmallZH, | ||
| dim: 512, | ||
| description: "v1.5 release of the fast, Chinese model", | ||
| }, | ||
| { | ||
| model: EmbeddingModel.AllMiniLML6V2, | ||
@@ -342,0 +360,0 @@ dim: 384, |
@@ -11,3 +11,6 @@ export declare enum ExecutionProvider { | ||
| BGEBaseEN = "fast-bge-base-en", | ||
| BGEBaseENV15 = "fast-bge-base-en-v1.5", | ||
| BGESmallEN = "fast-bge-small-en", | ||
| BGESmallENV15 = "fast-bge-small-en-v1.5", | ||
| BGESmallZH = "fast-bge-small-zh-v1.5", | ||
| MLE5Large = "fast-multilingual-e5-large" | ||
@@ -14,0 +17,0 @@ } |
+20
-2
@@ -41,3 +41,6 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
| EmbeddingModel["BGEBaseEN"] = "fast-bge-base-en"; | ||
| EmbeddingModel["BGEBaseENV15"] = "fast-bge-base-en-v1.5"; | ||
| EmbeddingModel["BGESmallEN"] = "fast-bge-small-en"; | ||
| EmbeddingModel["BGESmallENV15"] = "fast-bge-small-en-v1.5"; | ||
| EmbeddingModel["BGESmallZH"] = "fast-bge-small-zh-v1.5"; | ||
| EmbeddingModel["MLE5Large"] = "fast-multilingual-e5-large"; | ||
@@ -90,3 +93,3 @@ })(EmbeddingModel || (EmbeddingModel = {})); | ||
| } | ||
| static init({ model = EmbeddingModel.BGESmallEN, executionProviders = [ExecutionProvider.CPU], maxLength = 512, cacheDir = "local_cache", showDownloadProgress = true, } = {}) { | ||
| static init({ model = EmbeddingModel.BGESmallENV15, executionProviders = [ExecutionProvider.CPU], maxLength = 512, cacheDir = "local_cache", showDownloadProgress = true, } = {}) { | ||
| return __awaiter(this, void 0, void 0, function* () { | ||
@@ -302,5 +305,10 @@ const modelDir = yield FlagEmbedding.retrieveModel(model, cacheDir, showDownloadProgress); | ||
| dim: 384, | ||
| description: "Fast and Default English model", | ||
| description: "Fast English model", | ||
| }, | ||
| { | ||
| model: EmbeddingModel.BGESmallENV15, | ||
| dim: 384, | ||
| description: "v1.5 release of the fast, default English model", | ||
| }, | ||
| { | ||
| model: EmbeddingModel.BGEBaseEN, | ||
@@ -311,2 +319,12 @@ dim: 768, | ||
| { | ||
| model: EmbeddingModel.BGEBaseENV15, | ||
| dim: 768, | ||
| description: "v1.5 release of Base English model", | ||
| }, | ||
| { | ||
| model: EmbeddingModel.BGESmallZH, | ||
| dim: 512, | ||
| description: "v1.5 release of the fast, Chinese model", | ||
| }, | ||
| { | ||
| model: EmbeddingModel.AllMiniLML6V2, | ||
@@ -313,0 +331,0 @@ dim: 384, |
+1
-1
| { | ||
| "name": "fastembed", | ||
| "version": "1.13.0", | ||
| "version": "1.14.0", | ||
| "description": "NodeJS implementation of @Qdrant/fastembed", | ||
@@ -5,0 +5,0 @@ "licenses": [ |
+3
-0
@@ -24,4 +24,7 @@ <div align="center"> | ||
| - [**BAAI/bge-base-en**](https://huggingface.co/BAAI/bge-base-en) | ||
| - [**BAAI/bge-base-en-v1.5**](https://huggingface.co/BAAI/bge-base-en-v1.5) | ||
| - [**BAAI/bge-small-en**](https://huggingface.co/BAAI/bge-small-en) | ||
| - [**BAAI/bge-small-en-v1.5**](https://huggingface.co/BAAI/bge-small-en-v1.5) - Default | ||
| - [**BAAI/bge-base-zh-v1.5**](https://huggingface.co/BAAI/bge-base-zh-v1.5) | ||
| - [**sentence-transformers/all-MiniLM-L6-v2**](https://huggingface.co/sentence-transformers/all-MiniLM-L6-v2) | ||
@@ -28,0 +31,0 @@ - [**intfloat/multilingual-e5-large**](https://huggingface.co/intfloat/multilingual-e5-large) |
44925
4.44%835
5.3%102
3.03%