jina icon indicating copy to clipboard operation
jina copied to clipboard

Will the Pydantic dependency be upgraded in the future?Currently, due to version issues, some third-party packages are incompatible.

Open wangqn1 opened this issue 1 year ago • 17 comments

Describe the feature

Your proposal


Environment

Currently, due to version issues, some third-party packages are incompatible.

Screenshots

wangqn1 avatar Dec 07 '23 03:12 wangqn1

Hey @wangqn1, we plan to upgrade it, but it is quite some work and we do not have capacity at the miment. Specially since we want to mantain compatibility for both Pydantic v2 and pydantic v1.

May I ask what other packages Jina is not compatible with?

JoanFM avatar Dec 07 '23 07:12 JoanFM

some engine classes defined by ourselves

wangqn1 avatar Dec 14 '23 03:12 wangqn1

I have Another question, please tell me how to use Java to call Jina's gRPC protocol interface. @JoanFM

wangqn1 avatar Dec 14 '23 03:12 wangqn1

Hey @wangqn1,

You could build the gRPC services in Java from the proto files that u can find in jina/proto folder.

JoanFM avatar Dec 14 '23 06:12 JoanFM

Hi @JoanFM , After compiling two proto files from jina/jina/proto/docarray_v1 into Java files using protoc, I didn't find the corresponding gRPC service interface in jina.java. Could you please help me identify the issue? docarray_java jina_java

jdk version: 1.8

wangqn1 avatar Dec 14 '23 10:12 wangqn1

I am not an expert on how it works for Java, but there should be some documentation about how to buuld the services and clients as well

JoanFM avatar Dec 14 '23 10:12 JoanFM

@jina-ai/product This issue is stale because it has been open 90 days with no activity. Remove stale label or comment or this will be closed in 14 days

jina-bot avatar Mar 14 '24 00:03 jina-bot

Hey @wangqn1, we plan to upgrade it, but it is quite some work and we do not have capacity at the miment. Specially since we want to mantain compatibility for both Pydantic v2 and pydantic v1.

May I ask what other packages Jina is not compatible with?

The latest weaviate client requires pydantic v2.

ifdown avatar Mar 14 '24 01:03 ifdown

OK,I will try it

ifdown @.***>于2024年3月14日 周四09:49写道:

Hey @wangqn1 https://github.com/wangqn1, we plan to upgrade it, but it is quite some work and we do not have capacity at the miment. Specially since we want to mantain compatibility for both Pydantic v2 and pydantic v1.

May I ask what other packages Jina is not compatible with?

The latest weaviate client requires pydantic v2.

— Reply to this email directly, view it on GitHub https://github.com/jina-ai/jina/issues/6125#issuecomment-1996246033, or unsubscribe https://github.com/notifications/unsubscribe-auth/BCOO2BWQMFRVJM7M5P4PP5DYYD6Y7AVCNFSM6AAAAABAKMSYNCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSOJWGI2DMMBTGM . You are receiving this because you were mentioned.Message ID: @.***>

wangqn1 avatar Mar 14 '24 04:03 wangqn1

Hey @wangqn1, I am putting some work on it. I have identified an issue in docarray that may ease the process.

JoanFM avatar Mar 14 '24 07:03 JoanFM

@jina-ai/product This issue is stale because it has been open 90 days with no activity. Remove stale label or comment or this will be closed in 14 days

jina-bot avatar Jun 28 '24 00:06 jina-bot

Have there been any updates on a possible fix w/ Pydantic v2? Currently trying to pip install together, but there is a pydantic version conflict w/ no workaround.

Thanks for the help you have given thus far!

robbym-dev avatar Jul 03 '24 04:07 robbym-dev

Hello @robbym-dev ,

There is no update so far.

Any news on the approach @wangqn1 ?

JoanFM avatar Jul 03 '24 08:07 JoanFM

Hi @JoanFM,

Thank you for the response.

Do you know of any other possible workarounds? The primary conflict is w/ together.ai's pip package, it requires pydantic>2.0.0, while Jina requires pydantic<1.0.0.

Making a separate conda environment isn't feasible since I am making a full-fledged pip package for users to install in our framework, and requiring users to make a seperate conda environment isn't realistic.

Please let me know, thank you so much for your assistance so far on the issue!

robbym-dev avatar Jul 08 '24 13:07 robbym-dev

Hello @robbym-dev ,

I am not so sure, perhaps we can have a short meeting to understand the problematic and see wether or not there is a workaround.

Thanks,

Joan

JoanFM avatar Jul 08 '24 14:07 JoanFM

Hi @JoanFM

I would love to get on a short meeting to discuss a possible workaround. I sent you an email to coordinate this.

Thank you again, Robby

robbym-dev avatar Jul 08 '24 17:07 robbym-dev

May I ask what other packages Jina is not compatible with?

The latest weaviate client requires pydantic v2.

Also the latest DSPy, I think.

mmclure avatar Aug 17 '24 21:08 mmclure