Hi there! I spotted a small bug within the new llama-index
v0.11.0
. Migrating Pydantic v1 -> v2 now root_validator is deprecated and model_validator should be used instead. This changes was not performed within
llama-index-embeddings-azure-openai
package, so when importing the
AzureOpenAIEmbedding
class the following error raises:
File "[...]/llama_index/embeddings/azure_openai/base.py", line 4, in <module>
from llama_index.core.bridge.pydantic import Field, PrivateAttr, root_validator
ImportError: cannot import name 'root_validator' from 'llama_index.core.bridge.pydantic' ([...]/llama_index/core/bridge/pydantic.py)
Just a heads-up before updating if you depend on this sub-package!