Find answers from the community

Updated 9 months ago

Hi, has anyone else been suddenly

Hi, has anyone else been suddenly running into issues where the Llama index returned Pydantic models are based on v1 and empty? Our app randomly starts to throw AttributeError: 'BaseModel' object has no attribute 'model_dump' which comes from pydantic.v1.

Versions:
pydantic>=2.6.4
llama-index==0.10.20
llama-index-embeddings-openai==0.1.6
llama-index-llms-openai==0.1.12
llama-index-program-openai==0.1.4
llama-index-vector-stores-postgres==0.1.3

--

We follow this exact example and are running into this issue:

https://docs.llamaindex.ai/en/stable/examples/query_engine/pydantic_query_engine/
L
N
2 comments
That guide should be using from pydantic.v1 import BaseModel, ... πŸ˜…
Thanks. We'll use that in the meantime while the lib is still using v1
Add a reply
Sign up and join the conversation on Discord