Hi there
I am trying to use HuggingfaceEmbeddings model all-MiniLM-L6-v2,but the cmd window gives this error, how could i fix this?
My code is
from langchain_community.embeddings import HuggingFaceEmbeddings
def main():
print(“Loading embeddings”)
embedding = HuggingFaceEmbeddings(model_name=“all-MiniLM-L6-v2”, model_kwargs={“device”: device})