From 5e19b4bff9b709a9cfc1fb96889ce210d6b7c25c Mon Sep 17 00:00:00 2001 From: Jorrit Duin <52747632+j-o-r@users.noreply.github.com> Date: Wed, 14 Aug 2024 11:41:47 +0200 Subject: [PATCH] Update fastembed.ts Fixes: #18 https://github.com/Anush008/fastembed-js/issues/18 Url to fast-multilingual-e5-large.tar.gz --- src/fastembed.ts | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/fastembed.ts b/src/fastembed.ts index 24d19f7..f00683f 100644 --- a/src/fastembed.ts +++ b/src/fastembed.ts @@ -208,12 +208,6 @@ export class FlagEmbedding extends Embedding { return outputFilePath; } - // The MLE5Large model URL doesn't follow the same naming convention as the other models - // So, we tranform "fast-multilingual-e5-large" -> "intfloat-multilingual-e5-large" in the download URL - // The model directory name in the GCS storage is "fast-multilingual-e5-large", like the others - if (model === EmbeddingModel.MLE5Large) { - model = "intfloat" + model.substring(model.indexOf("-")); - } const url = `https://storage.googleapis.com/qdrant-fastembed/${model}.tar.gz`; const fileStream = fs.createWriteStream(outputFilePath);