Skip to content

Commit

Permalink
Update fastembed.ts
Browse files Browse the repository at this point in the history
Fixes: Anush008#18
Anush008#18
Url to fast-multilingual-e5-large.tar.gz
  • Loading branch information
j-o-r authored Aug 14, 2024
1 parent 06e425d commit 5e19b4b
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/fastembed.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 5e19b4b

Please sign in to comment.