Find answers from the community

Updated 5 months ago

When trying to import

At a glance
When trying to import AzureOpenAIEmbeddings I am getting an issue cannot import name root_validator from llama_index.core.bridge.pydantic. This appears to happen in the source code of the class itself? The code snippet in question does say that it is not used, any advice?

llama-index: 0.10.62
llama-index-core: 0.10.62
L
C
6 comments
Are you sure thats your version of core? That import was only removed in llama-index-core>=0.11
Might be a poetry issue, for some reason in my terminal its showing .10 and in my IDE python interpreter (same env) its .11
πŸ‘€ spooky. I guess also make sure you have the latest version of openai and azure openai embeddings too
Its kind of a weird setup for us, the company is exposing a "platform" layer for retrieving these things rather than allowing us to retrieve from OpenAI/Bedrock directly. So that may be the case as well, I will double check that they are also on the most recent version of all of it
I had a feeling this was a dependency hell thing but just wanted to double check that I wasn't doin something simple and dumb
Gotcha -- when in doubt I guess, starting a fresh venv is also a valid option πŸ™‚
Add a reply
Sign up and join the conversation on Discord