-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Migrate to Pydantic V2 #5304
Comments
The migration turned out to be more difficult and longer than I thought. Learnings
|
When is Haystack V2 scheduled for? |
Hey @mjspeck, thanks for your interest... We do not yet have an official date for Haystack 2.0, |
I appreciate that, but since 2.0 seems far away, I'm hoping that migration to |
When I tried, the option It would be nice to test it but I don't know when it is feasible for us. If you want to give it a try and open a PR if it works, you are welcome. Related discussion: fastapi/fastapi#9966 |
@silvanocerza please share your opinion on this... |
I believe this is not a top priority as of now. We're focusing on releasing Haystack 2.x by the end of the year and we don't have enough resources to update 1.x to Pydantic v2. It's not as easy task as that will require updating tons of libraries, and that can come with a new set of bugs and problems that we'd have to fix. I would very much prefer if we stick with Pydantic v1 to avoid unecessary troubles now. |
@silvanocerza What's the ETA in addressing this? We (Chainlit) are having dependency resolving conflicts trying to patch security issues and might have to consider dropping or reducing haystack support because our other deps require v2. Specifically, modern langchain requires pydantic 2. As there's security issues, we would like to resolve it but cannot due to haystack's <2 requirement. |
I'm very interested in this as well. For now we had to give up using another dependency |
Pydantic V2 was recently released.
The new version was not compatible with Haystack:
here you can see the errors that lead to pinning
pydantic<2
and releasing Haystack 1.18.1.We should migrate to V2 for several reasons, including:
We see how painful it is 😃 and what changes migration requires...
The text was updated successfully, but these errors were encountered: