Skip to content

Releases: langchain4j/langchain4j

0.30.0

16 Apr 16:22
1a34089
Compare
Choose a tag to compare

Highlights

  • AI Services: Allow defining system message dynamically/programmatically by @mariofusco in #862
  • AI Services: Support template variables in method parameter annotated with @UserMessage by @daixi98 in #930
  • Anthropic: Support tools by @langchain4j in #897

Other Changes

  • Add getters to AnthropicCreateMessageRequest and change scope of attributes by @edeandrea in #873
  • refactor: redefine HuggingFaceModelName constant class by @vegetablest in #870
  • refactor: Update AstraDbEmbeddingStoreIT.java by @eltociear in #863
  • Simplifiable conditional expression by @qmonmert in #849
  • Bump express from 4.18.2 to 4.19.2 in /docs by @dependabot in #831
  • AI Services: testing, refactoring and documentation by @langchain4j in #933
  • Add getters for AnthropicMessage by @geoand in #944

Bug Fixes

  • Fix baseUrl misconfiguration in ZhipuAiClient builder by @Glarme in #872
  • Removing incorrect end comma in jsonStructure for POJO extracting AI Services by @LizeRaes in #894
  • Fix #880: RAG + TOOLS broken link by @remyohajinwa in #889
  • Fix #913: FileSystemDocumentLoader: ignore empty/blank documents, improved error/warn messages by @langchain4j in #920
  • Fix #921: AI Services: Do not fail streaming when TokenUsage is null by @langchain4j in #939
  • Fix #601: Do not restrict Map key/value types when deserializing from JSON by @langchain4j in #918

New Contributors

Full Changelog: 0.29.1...0.30.0

0.29.1

28 Mar 15:43
45b58ac
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: 0.29.0...0.29.1

0.29.0

26 Mar 11:11
d1e3cc1
Compare
Choose a tag to compare

Highlights

Other Changes

New Contributors

Full Changelog: 0.28.0...0.29.0

0.28.0

11 Mar 19:14
90fe304
Compare
Choose a tag to compare

New Integrations

New Core Features

Notable Updates

  • Gemini function calling support by @glaforge in #692
  • Allow reading prompt (both system & user) message from a resource by @gkfirst8 in #527
  • Make the Vertex AI embedding model adapt automatically the number of batch calls to make by @glaforge in #626
  • Add type to array parameter in tool specification by @Wadimz in #624
  • Implement missing parameters in Azure OpenAI by @jdubois in #616
  • Upgrade langchain4j-opensearch to use latest version of opensearch-java client which enables Java 8 support by @Hrvojeee in #663
  • FileSystemDocumentLoader: add possibility to load recursively and with glob/regex filtering by @langchain4j in #657
  • Ability to specify the task type for calculating embeddings by @glaforge in #722

Other Updates

  • fix for issue #633 adding instructions for additional artifact for Op… by @sshaaf in #634
  • [Documentation] Add Mistralai docs by @czelabueno in #623
  • Fill in some details of the Quarkus integration in the docs by @holly-cummins in #632
  • Remove unneeded waiting strategy by @ilopezluna in #647
  • Clarify the mandatory and optional Azure connection parameter by @agoncal in #636
  • Adds a test to check that the API version is set to the latest if incorrect by @agoncal in #635
  • Adding a script to deploy all the needed model to run the integration tests by @agoncal in #629
  • Fixed snapshot release by @langchain4j in #650
  • Bump org.postgresql:postgresql from 42.6.0 to 42.7.2 in /langchain4j-pgvector by @dependabot in #649
  • Updates to Infinispan Dev09 by @karesti in #646
  • Remove direct dependency to the langchain4j-open-ai by @jdubois in #656
  • fix [BUG] QianFanChatModel Not Support SystemMessage by @lane12138 in #648
  • Use Testcontainers Vector Database modules by @eddumelendez in #654
  • Docs: Updated the redundant base route from /docs to / by @amithkoujalgi in #655
  • Add langchain4j-embeddings-all-minilm-l6-v2-q to the BOM by @boris-petrov in #579
  • recursion error on nested POJO extractor by @tenpigs267 in #625
  • Strengthen coverage for DefaultToolExecutor. by @crutcher in #590
  • Bump azure-ai-openai from 1.0.0-beta.6 to 1.0.0-beta.7 by @jdubois in #700
  • Delombok before JavaDoc. by @crutcher in #595
  • use maven.compiler.release instead of source+target by @hboutemy in #617
  • refactor: AssertJ best practices by @timtebeek in #622
  • Bump com.azure:azure-search-documents from 11.6.1 to 11.6.2 by @jdubois in #664
  • Bump azure-storage-common and azure-storage-blob versions by @jdubois in #677
  • docu: added link to Guide to Choosing Quantization Methods and Infere… by @dliubars in #705
  • Bump com.azure:azure-identity from 1.11.2 to 1.11.3 by @jdubois in #695
  • Fix ChatMessage.text() method that is deprecated by @jdubois in #678
  • Throw error if more than one retriever/contentRetriever/retrievalAugm… by @jmartisk in #710
  • Fix #602: Enum values (names) should be sent to the LLM in original case by @langchain4j in #669
  • added missing Javadoc for deprecated methods by @langchain4j in #668
  • Update documentation on Vertex AI by @OTR in #709
  • Add option to specify num_ctx parameter in for ollama. Fixes #682 by @mmanrai in #683
  • Update README.md by @eltociear in #711
  • Fix #585: Automatically evict following orphan ToolExecutionResultMessage(s) after evicting AiMessage containing ToolExecutionRequest(s) by @langchain4j in #666
  • fix #670 by @langchain4j in #716
  • fix #715: Improve Milvus integration performance: load collection in memory only when creating MilvusEmbeddingStore by @langchain4j in #717
  • update okhttp version to 4.12.0 by @langchain4j in #724
  • Fix UserMessage example in AiServices by @theawesomenayak in #719
  • Solve the problem of occasional incomplete response content. by @jiangsier-xyz in #699
  • Fix the check whether retriever is already set by @jmartisk in #728

New Contributors

Full Changelog: 0.27.1...0.28.0

0.27.1

09 Feb 14:01
c1462c0
Compare
Choose a tag to compare

What's Changed

Full Changelog: 0.27.0...0.27.1

0.27.0

09 Feb 06:58
Compare
Choose a tag to compare

New Integrations

Embedding Stores

Embedding Models

Notable Updates

  • Reworked support of AstraDB and Cassandra by @clun in #548
  • Nested POJO extract by @tenpigs267 in #575
  • Azure OpenAI: added support for responseFormat and other parameters by @jdubois in #605
  • #588: Implemented a fallback strategy for LanguageModelQueryRouter by @langchain4j in #593

Other Updates

New Contributors

Full Changelog: 0.26.1...0.27.0

0.26.1

30 Jan 07:05
3958e01
Compare
Choose a tag to compare

New Core Features:

New Integrations:

Model providers:

Embedding Stores:

Document Loaders:

Notable Updates:

Technical Improvements and Bugfixes:

Read more

0.25.0

22 Dec 17:34
Compare
Choose a tag to compare

What's Changed

New Contributors

Breaking Changes

  • langchain4j-azure-open-ai module was completely reworked (using official Azure SDK now), there might be breaking changes when constructing models in the builders
  • langchain4j-spring-boot-starter module is replaced by separate langchain4j-*-spring-boot-starter modules for each provider, e.g. langchain4j-open-ai-spring-boot-starter, all available starters are here
  • Spring Boot properties changed: langchain4j.{model type}.{provider}.{property} -> langchain4j.{provider}.{model type}.{property}
  • dev.langchain4j.data.document.FileSystemDocumentLoader -> dev.langchain4j.data.document.loader.FileSystemDocumentLoader
  • Document parsers (PDF, MS Office) were extracted into their own modules, TextDocumentParser stays in langchain4j module
  • Amazon S3 loaders migrated to langchain4j-document-loader-amazon-s3 module
  • EmbeddingStoreIngestor moved into langchain4j-core, keeping the same package name
  • potential problems: mustache templates were replaced with simple implementation, but should be backwards compatible unless you used advanced features. You can still plug in mustache using SPI.

Full Changelog: 0.24.0...0.25.0

0.24.0

12 Nov 18:09
Compare
Choose a tag to compare
  • Integration with OpenSearch by @riferrei
  • Vertex AI: embed in batches of 5
  • Support of database name configuration for Milvus by @Heezer
  • OpenAI: added option to setup a custom Tokenizer, increased default timeouts to 60 seconds
  • Azure OpenAI: increased default timeouts to 60 seconds
  • Add support for custom base url for OpenAI model in Spring Boot starter by @marlukcz
  • Make some aspects of the project swappable by external integrations by @geoand
  • In case a model like Vertex does not have a ToolSpecification do not use the generate method expecting one by @SimonVerhoeven
  • Include metadata for custom Spring Boot properties by @ThomasVitale
  • Add support for loading documents from S3 by @jmgang
  • Add BOM to manage artifacts by @Martin7-1
  • Integration with PGVector by @kevin-wu-os
  • Add support for autocompletion of Boot configuration properties by @jkuipers
  • Integration with Ollama by @Martin7-1
  • Make AiServices swappable by external implementations by @geoand
  • Introduce SPI for HuggingFace by @geoand
  • Allow using another metadata key than text_segment in Pinecone by @Artur-
  • Typo fix in VertexAI support by @Heezer
  • Integration with Amazon Bedrock by @pascalconfluent
  • Adding Memory Id to Tool Method Call by @benedictstrube

0.23.0

29 Sep 12:32
Compare
Choose a tag to compare
  • Updates to models API: return Response<T> instead of T. Response<T> contains token usage and finish reason.
  • All model and embedding store integrations now live in their own modules
  • Integration with Vespa by @Heezer
  • Integration with Elasticsearch by @Martin7-1
  • Integration with Redis by @Martin7-1
  • Integration with Milvus by @IuriiKoval
  • Integration with Astra DB and Cassandra by @clun
  • Added support for overlap in document splitters
  • Some bugfixes and smaller improvements