Find answers from the community

Updated 2 months ago

V0.10

Hey team, Unable to import OpenAIEmbedding from llama_index.embeddings

I am getting this error when I am upgrading llamaindex from 0.9.16 version to 0.10.25. Can someone please help?
W
S
16 comments
I would recommend a fresh env for moving to v0.10.x from 0.9

Also to use OpenAI embedding you'll have to install the following
pip install llama-index-embeddings-openai
Hey @WhiteFang_Jr thanks. Also do we need to seperately install llm packages seperately apart from installing llamaindex only pip install llama-index-llms-azure-openai
Yes correct! All the integrations have been converted into separate pypi packages.
Hey @WhiteFang_Jr where can I find the version of the llama-index-embeddings-openai package. Is it available in the pypi website
https://llamahub.ai has all the tools/llms/embeddings etc info for pip installation step as well.
Yes available there as well
Thanks. @WhiteFang_Jr . A quick follow-up on AzureOpenAIEmbedding. I do not see any embedding package for this
pip install llama-index-embeddings-azure-openai
Hey thank you.
Hey @WhiteFang_Jr the others worked but I am getting this import error
cannot import name 'PromptTemplate' from 'llama_index.core'
Have you installed llama-index?
pip install llama-index
Hey @WhiteFang_Jr did the installation, even uninstalled llama-index and installed again but it is not working
pip3 install llama-index --upgrade --no-cache-dir --force-reinstall It worked needed to run this
Was it the same env?
Yes, it is a working lambda in production, so won't be able to create a new environment
Add a reply
Sign up and join the conversation on Discord