Skip to content

Commit

Permalink
Merge pull request #931 from hereiamravi/bug/hf_emb
Browse files Browse the repository at this point in the history
update langchain huggingface embedding
  • Loading branch information
assafelovic authored Oct 20, 2024
2 parents 55a1197 + 789f4da commit 27976a6
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 27976a6

Please sign in to comment.