diff --git a/gpt_researcher/memory/embeddings.py b/gpt_researcher/memory/embeddings.py index bc6b4be0d..4de8fa6ab 100644 --- a/gpt_researcher/memory/embeddings.py +++ b/gpt_researcher/memory/embeddings.py @@ -44,7 +44,7 @@ def __init__(self, embedding_provider, headers=None, **kwargs): deployment=os.environ["AZURE_EMBEDDING_MODEL"], chunk_size=16 ) case "huggingface": - from langchain.embeddings import HuggingFaceEmbeddings + from langchain_huggingface import HuggingFaceEmbeddings # Specifying the Hugging Face embedding model all-MiniLM-L6-v2 _embeddings = HuggingFaceEmbeddings(