solr icon indicating copy to clipboard operation
solr copied to clipboard

Update langchain4j to v1 (major)

Open solrbot opened this issue 7 months ago • 3 comments

This PR contains the following updates:

Package Type Update Change
dev.langchain4j:langchain4j-open-ai (source) dependencies major 0.35.0 -> 1.9.1
dev.langchain4j:langchain4j-mistral-ai (source) dependencies major 0.35.0 -> 1.9.1
dev.langchain4j:langchain4j-core (source) dependencies major 0.35.0 -> 1.9.1

Release Notes

langchain4j/langchain4j (dev.langchain4j:langchain4j-open-ai)

v1.9.1: and 1.9.1-beta17

Compare Source

What's Changed

Full Changelog: https://github.com/langchain4j/langchain4j/compare/1.9.0...1.9.1

v1.9.0: and 1.9.0-beta16

Compare Source

Notable Changes
Other Changes
New Contributors

Full Changelog: https://github.com/langchain4j/langchain4j/compare/1.8.0...1.9.0

v1.8.0: and 1.8.0-beta15

Compare Source

Notable Changes
Other Changes
New Contributors

Full Changelog: https://github.com/langchain4j/langchain4j/compare/1.7.1...1.8.0

v1.7.1: and 1.7.1-beta14

Notable Changes
New Integrations
Other Changes
New Contributors

Full Changelog: https://github.com/langchain4j/langchain4j/compare/1.6.0...1.7.1

v1.6.0: and 1.6.0-beta12

Compare Source

Notable Changes
New Integrations
Other Changes
New Contributors

Full Changelog: https://github.com/langchain4j/langchain4j/compare/1.5.0...1.6.0

v1.5.0: and 1.5.0-beta11

Compare Source

Notable Changes
Other Changes

Configuration

📅 Schedule: Branch creation - Every minute ( * * * * * ) (UTC), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about these updates again.


  • [ ] If you want to rebase/retry this PR, check this box

This PR has been generated by Renovate Bot

solrbot avatar May 26 '25 10:05 solrbot

⚠️ Artifact update problem

Renovate failed to update artifacts related to this branch. You probably do not want to merge this PR as-is.

♻ Renovate will retry this branch, including artifacts, only when one of the following happens:

  • any of the package files in this branch needs updating, or
  • the branch becomes conflicted, or
  • you click the rebase/retry checkbox if found above, or
  • you rename this PR's title to start with "rebase!" to trigger it manually

The artifact failure details are included below:

File name: undefined
Command failed: ./gradlew resolveAndLockAll --write-locks

FAILURE: Build failed with an exception.

* Where:
Script '/tmp/renovate/repos/github/apache/solr/gradle/validation/dependencies.gradle' line: 101

* What went wrong:
Execution failed for task ':solr:modules:language-models:resolveAndLockAll'.
> Could not resolve all files for configuration ':solr:modules:language-models:jarValidation'.
   > Could not find dev.langchain4j:langchain4j-cohere:1.9.1.
     Searched in the following locations:
       - https://repo.maven.apache.org/maven2/dev/langchain4j/langchain4j-cohere/1.9.1/langchain4j-cohere-1.9.1.pom
     Required by:
         project :solr:modules:language-models
         project :solr:modules:language-models > project :platform
   > Could not find dev.langchain4j:langchain4j-hugging-face:1.9.1.
     Searched in the following locations:
       - https://repo.maven.apache.org/maven2/dev/langchain4j/langchain4j-hugging-face/1.9.1/langchain4j-hugging-face-1.9.1.pom
     Required by:
         project :solr:modules:language-models
         project :solr:modules:language-models > project :platform

* Try:
> If the artifact you are trying to retrieve can be found in the repository but without metadata in 'Maven POM' format, you need to adjust the 'metadataSources { ... }' of the repository declaration.
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Get more help at https://help.gradle.org.

BUILD FAILED in 16s

File name: undefined
Command failed: ./gradlew updateLicenses

FAILURE: Build failed with an exception.

* What went wrong:
Could not determine the dependencies of task ':solr:modules:language-models:collectJarInfos'.
> Could not resolve all dependencies for configuration ':solr:modules:language-models:jarValidation'.
   > Did not resolve 'com.squareup.okio:okio:3.6.0' which is part of the dependency lock state
   > Did not resolve 'com.squareup.retrofit2:converter-jackson:2.9.0' which is part of the dependency lock state
   > Did not resolve 'dev.langchain4j:langchain4j-hugging-face:0.35.0' which is part of the dependency lock state
   > Did not resolve 'org.jetbrains:annotations:26.0.2' which is part of the dependency lock state
   > Did not resolve 'dev.langchain4j:langchain4j-cohere:0.35.0' which is part of the dependency lock state
   > Resolved 'dev.langchain4j:langchain4j-http-client:1.9.1' which is not part of the dependency lock state
   > Resolved 'dev.langchain4j:langchain4j-http-client-jdk:1.9.1' which is not part of the dependency lock state
   > Did not resolve 'com.squareup.okhttp3:okhttp-sse:4.12.0' which is part of the dependency lock state
   > Did not resolve 'org.jetbrains.kotlin:kotlin-stdlib-jdk7:2.2.0' which is part of the dependency lock state
   > Did not resolve 'org.jetbrains.kotlin:kotlin-stdlib:2.2.0' which is part of the dependency lock state
   > Did not resolve 'com.squareup.retrofit2:retrofit:2.9.0' which is part of the dependency lock state
   > Did not resolve 'com.squareup.okhttp3:okhttp:4.12.0' which is part of the dependency lock state
   > Did not resolve 'com.google.code.gson:gson:2.13.1' which is part of the dependency lock state
   > Did not resolve 'org.jetbrains.kotlin:kotlin-stdlib-common:2.2.0' which is part of the dependency lock state
   > Did not resolve 'org.jetbrains.kotlin:kotlin-stdlib-jdk8:2.2.0' which is part of the dependency lock state
   > Did not resolve 'com.squareup.okio:okio-jvm:3.6.0' which is part of the dependency lock state
   > Did not resolve 'dev.ai4j:openai4j:0.22.0' which is part of the dependency lock state
   > Could not resolve dev.langchain4j:langchain4j-core:1.9.1.
     Required by:
         project :solr:modules:language-models
         project :solr:modules:language-models > project :platform
         project :solr:modules:language-models > dev.langchain4j:langchain4j-mistral-ai:1.9.1
         project :solr:modules:language-models > dev.langchain4j:langchain4j-open-ai:1.9.1
         project :solr:modules:language-models > dev.langchain4j:langchain4j-mistral-ai:1.9.1 > dev.langchain4j:langchain4j-http-client:1.9.1
         project :solr:modules:language-models > dev.langchain4j:langchain4j-mistral-ai:1.9.1 > dev.langchain4j:langchain4j-http-client-jdk:1.9.1
      > Cannot find a version of 'dev.langchain4j:langchain4j-core' that satisfies the version constraints:
           Dependency path 'org.apache.solr:language-models:11.0.0-SNAPSHOT' --> 'dev.langchain4j:langchain4j-core:1.9.1'
           Constraint path 'org.apache.solr:language-models:11.0.0-SNAPSHOT' --> 'dev.langchain4j:langchain4j-core:{strictly 0.35.0}' because of the following reason: dependency was locked to version '0.35.0'
           Constraint path 'org.apache.solr:language-models:11.0.0-SNAPSHOT' --> 'org.apache:platform:11.0.0-SNAPSHOT' (runtimeElements) --> 'dev.langchain4j:langchain4j-core:1.9.1'
           Constraint path 'org.apache.solr:language-models:11.0.0-SNAPSHOT' --> 'dev.langchain4j:langchain4j-mistral-ai:1.9.1' (runtime) --> 'dev.langchain4j:langchain4j-core:1.9.1'
           Constraint path 'org.apache.solr:language-models:11.0.0-SNAPSHOT' --> 'dev.langchain4j:langchain4j-open-ai:1.9.1' (runtime) --> 'dev.langchain4j:langchain4j-core:1.9.1'
           Constraint path 'org.apache.solr:language-models:11.0.0-SNAPSHOT' --> 'dev.langchain4j:langchain4j-mistral-ai:1.9.1' (runtime) --> 'dev.langchain4j:langchain4j-http-client:1.9.1' (runtime) --> 'dev.langchain4j:langchain4j-core:1.9.1'
           Constraint path 'org.apache.solr:language-models:11.0.0-SNAPSHOT' --> 'dev.langchain4j:langchain4j-mistral-ai:1.9.1' (runtime) --> 'dev.langchain4j:langchain4j-http-client-jdk:1.9.1' (runtime) --> 'dev.langchain4j:langchain4j-core:1.9.1'

   > Could not resolve dev.langchain4j:langchain4j-cohere:1.9.1.
     Required by:
         project :solr:modules:language-models
         project :solr:modules:language-models > project :platform
      > Cannot find a version of 'dev.langchain4j:langchain4j-cohere' that satisfies the version constraints:
           Dependency path 'org.apache.solr:language-models:11.0.0-SNAPSHOT' --> 'dev.langchain4j:langchain4j-cohere:1.9.1'
           Constraint path 'org.apache.solr:language-models:11.0.0-SNAPSHOT' --> 'dev.langchain4j:langchain4j-cohere:{strictly 0.35.0}' because of the following reason: dependency was locked to version '0.35.0'
           Constraint path 'org.apache.solr:language-models:11.0.0-SNAPSHOT' --> 'org.apache:platform:11.0.0-SNAPSHOT' (runtimeElements) --> 'dev.langchain4j:langchain4j-cohere:1.9.1'

   > Could not resolve dev.langchain4j:langchain4j-hugging-face:1.9.1.
     Required by:
         project :solr:modules:language-models
         project :solr:modules:language-models > project :platform
      > Cannot find a version of 'dev.langchain4j:langchain4j-hugging-face' that satisfies the version constraints:
           Dependency path 'org.apache.solr:language-models:11.0.0-SNAPSHOT' --> 'dev.langchain4j:langchain4j-hugging-face:1.9.1'
           Constraint path 'org.apache.solr:language-models:11.0.0-SNAPSHOT' --> 'dev.langchain4j:langchain4j-hugging-face:{strictly 0.35.0}' because of the following reason: dependency was locked to version '0.35.0'
           Constraint path 'org.apache.solr:language-models:11.0.0-SNAPSHOT' --> 'org.apache:platform:11.0.0-SNAPSHOT' (runtimeElements) --> 'dev.langchain4j:langchain4j-hugging-face:1.9.1'

   > Could not resolve dev.langchain4j:langchain4j-mistral-ai:1.9.1.
     Required by:
         project :solr:modules:language-models
         project :solr:modules:language-models > project :platform
      > Cannot find a version of 'dev.langchain4j:langchain4j-mistral-ai' that satisfies the version constraints:
           Dependency path 'org.apache.solr:language-models:11.0.0-SNAPSHOT' --> 'dev.langchain4j:langchain4j-mistral-ai:1.9.1'
           Constraint path 'org.apache.solr:language-models:11.0.0-SNAPSHOT' --> 'dev.langchain4j:langchain4j-mistral-ai:{strictly 0.35.0}' because of the following reason: dependency was locked to version '0.35.0'
           Constraint path 'org.apache.solr:language-models:11.0.0-SNAPSHOT' --> 'org.apache:platform:11.0.0-SNAPSHOT' (runtimeElements) --> 'dev.langchain4j:langchain4j-mistral-ai:1.9.1'

   > Could not resolve dev.langchain4j:langchain4j-open-ai:1.9.1.
     Required by:
         project :solr:modules:language-models
         project :solr:modules:language-models > project :platform
      > Cannot find a version of 'dev.langchain4j:langchain4j-open-ai' that satisfies the version constraints:
           Dependency path 'org.apache.solr:language-models:11.0.0-SNAPSHOT' --> 'dev.langchain4j:langchain4j-open-ai:1.9.1'
           Constraint path 'org.apache.solr:language-models:11.0.0-SNAPSHOT' --> 'dev.langchain4j:langchain4j-open-ai:{strictly 0.35.0}' because of the following reason: dependency was locked to version '0.35.0'
           Constraint path 'org.apache.solr:language-models:11.0.0-SNAPSHOT' --> 'org.apache:platform:11.0.0-SNAPSHOT' (runtimeElements) --> 'dev.langchain4j:langchain4j-open-ai:1.9.1'

> There are 5 more failures with identical causes.

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Get more help at https://help.gradle.org.

BUILD FAILED in 16s

solrbot avatar May 26 '25 10:05 solrbot

@alessandrobenedetti if I remember correct you were the main driver of the LLM module. Maybe you have the time and want to handle this major upgrade?

malliaridis avatar Sep 15 '25 20:09 malliaridis

@janhoy Thanks for linking this PR. I’ve opened a new one because I do not have permission to work on this branch.

@malliaridis I’m a colleague of @alessandrobenedetti , and I’m working on this under his supervision.

ilariapet avatar Dec 12 '25 13:12 ilariapet