Find answers from the community

Updated 3 months ago

from llama_index.embeddings import

from llama_index.embeddings import LangchainEmbedding

Not able to import LangchainEmbedding from LangchainEmbedding
Using LlamaIndex πŸ¦™ v0.10.11.post1. Why is it happening! Documentation says it is doable https://docs.llamaindex.ai/en/stable/examples/embeddings/Langchain.html
W
P
12 comments
Import is partially correct, try with this:
from llama_index.embeddings.langchain import LangchainEmbedding
First install it via pip though: pip install llama-index-embeddings-langchain
Thanks! Did this. But now getting error

ImportError: cannot import name 'LangchainEmbedding' from 'llama_index.embeddings' (unknown location)
use the full import mentioned here
If not, mind sharing the full error traceback if possible
lol timimng πŸ˜†
Thanks a lot! Just a question, why is it so confusing? Haven't encountered such issues with other frameworks.
https://discord.com/channels/1059199217496772688/1073670729054294197/1207845501660168232
This might help as llamaindex transistion from v0.9 to v0.10 there were some issue with normal upgrade step for import failing.

but if you are starting in a fresh env with no previous llamaindex version installed , everything should work fine.

Lot of work is being done to update the pypi description and readme for better insights! 🀞
Got it! Thanks! Keep up the good work!
Add a reply
Sign up and join the conversation on Discord