From 789f4daeb8a823f6d4f18c9687829b28e4dc4df3 Mon Sep 17 00:00:00 2001 From: Ravi kumar Date: Sun, 20 Oct 2024 10:32:43 +0000 Subject: [PATCH] update langchain huggingface embedding this is causing the no content generation when google/huggingace are used as llm/embedding models --- gpt_researcher/memory/embeddings.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(