Find answers from the community

Updated 2 months ago

Trying to install and use llama-index in

Trying to install and use llama-index in a google colab instance. Has anyone encountered this error before? llama-index installation is verified:

ImportError Traceback (most recent call last)
<ipython-input-5-3ae358b1f615> in <cell line: 10>()
8 # from langchain_text_splitters import RecursiveCharacterTextSplitter
9
---> 10 from llama_index.embeddings import HuggingFaceEmbedding

ImportError: cannot import name 'HuggingFaceEmbedding' from 'llama_index.embeddings' (unknown location)
L
N
4 comments
!pip install llama-index-embeddings-huggingface

from llama_index.embeddings.huggingface import HuggingFaceEmbedding
Every integration is a package
went this route, per doc examples. unclear why. THere also seems to be a general issue w/importing llama-index, which persists in sagemaker
closing this - install via conda worked for unk reasons
Add a reply
Sign up and join the conversation on Discord