Skip to content

Commit

Permalink
update langchain huggingface embedding
Browse files Browse the repository at this point in the history
this is causing the no content generation when google/huggingace are used as llm/embedding models
  • Loading branch information
hereiamravi committed Oct 20, 2024
1 parent 55a1197 commit 789f4da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gpt_researcher/memory/embeddings.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 789f4da

Please sign in to comment.