Skip to content

Commit

Permalink
update LC embeddings docs (#6868)
Browse files Browse the repository at this point in the history
  • Loading branch information
logan-markewich committed Jul 12, 2023
1 parent 74a4f41 commit bad64c6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ from langchain.embeddings.huggingface import HuggingFaceEmbeddings
from llama_index import LangchainEmbedding, ServiceContext

embed_model = LangchainEmbedding(
HuggingFaceEmbeddings("sentence-transformers/all-mpnet-base-v2")
HuggingFaceEmbeddings(model_name="sentence-transformers/all-mpnet-base-v2")
)
service_context = ServiceContext.from_defaults(embed_model=embed_model)
```
Expand Down

0 comments on commit bad64c6

Please sign in to comment.