Find answers from the community

Updated 6 months ago

Pydantic

At a glance

The community member is asking if there is a way to force llama-index to use pydantic v2. Another community member responds that the code in llama-index imports pydantic from llama_index.bridge.pydantic, which is a wrapper around pydantic.v1 and regular pydantic, and there is no way to force v2. The community member also mentions that they need to "rip out v1", likely in the coming month. Another community member says they will "work around until then".

Is there a way to force llama-index to use pydantic v2?
L
p
2 comments
All the code in llama index imports pydantic from llama_index.bridge.pydantic, which is a wrapper around pydantic.v1 and regular pydantic

No way to force v2. Need to rip out v1, probably sometime in the coming month or so
Nice! Will work around until then
Add a reply
Sign up and join the conversation on Discord