llm-answer-engine
llm-answer-engine copied to clipboard
HuggingFaceTransformersEmbeddings does not work
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