llm-answer-engine icon indicating copy to clipboard operation
llm-answer-engine copied to clipboard

HuggingFaceTransformersEmbeddings does not work

Open taidbui opened this issue 1 year ago • 0 comments

Hi,

I have tried to use the following for embedding. However, I got an error probably related to using the runtime = "edge"

const embeddings = new HuggingFaceTransformersEmbeddings({modelName: "Xenova/all-MiniLM-L6-v2"});

Here is the link to langchain js documentation: https://js.langchain.com/docs/integrations/text_embedding/transformers

I am wondering if it could be an easy fix for this.

Thanks

taidbui avatar Mar 25 '24 19:03 taidbui