Log in
Log into community
Find answers from the community
View all posts
Related posts
Did this answer your question?
๐
๐
๐
Powered by
Hall
Inactive
Updated 2 months ago
0
Follow
V0.10
V0.10
Inactive
0
Follow
S
SUBHAM
8 months ago
ยท
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
Share
Open in Discord
W
WhiteFang_Jr
8 months ago
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
S
SUBHAM
8 months ago
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
W
WhiteFang_Jr
8 months ago
Yes correct! All the integrations have been converted into separate pypi packages.
S
SUBHAM
8 months ago
Hey @WhiteFang_Jr where can I find the version of the llama-index-embeddings-openai package. Is it available in the pypi website
W
WhiteFang_Jr
8 months ago
https://llamahub.ai
has all the tools/llms/embeddings etc info for pip installation step as well.
W
WhiteFang_Jr
8 months ago
Yes available there as well
S
SUBHAM
8 months ago
Thanks. @WhiteFang_Jr . A quick follow-up on AzureOpenAIEmbedding. I do not see any embedding package for this
W
WhiteFang_Jr
8 months ago
pip install llama-index-embeddings-azure-openai
W
WhiteFang_Jr
8 months ago
Try with this
S
SUBHAM
8 months ago
Hey thank you.
S
SUBHAM
8 months ago
Hey @WhiteFang_Jr the others worked but I am getting this import error
cannot import name 'PromptTemplate' from 'llama_index.core'
W
WhiteFang_Jr
8 months ago
Have you installed llama-index?
pip install llama-index
S
SUBHAM
8 months ago
Hey @WhiteFang_Jr did the installation, even uninstalled llama-index and installed again but it is not working
S
SUBHAM
8 months ago
pip3 install llama-index --upgrade --no-cache-dir --force-reinstall It worked needed to run this
W
WhiteFang_Jr
8 months ago
Was it the same env?
S
SUBHAM
8 months ago
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
Join on Discord