No sentence-transformers model found with name sentence-transformers/all-MiniLM-L6-v2
Hi thereI am trying to use HuggingfaceEmbeddings model all-MiniLM-L6-v2,but the cmd window gives this error, how could i fix this?My code isfrom langchain_community.embeddings import HuggingFaceEmbeddingsdef main():print(“Loading embeddings”)embedding = HuggingFaceEmbeddings(model_name=“all-MiniLM-L6-v2”, model_kwargs={“device”: device})WeChat Screenshot_202404291833301957×1008 103 KB
2024-04-29T22:32:34Z
continue error message222221896×608 62.8 KB
2024-04-30T17:13:31Z
I have seen that warning before, but it is just a warning. It is creating a sentence transformer with MEAN pooling that may be usable. If you want to get rid of that warning, you would have to install a sentence transformer first.