Java version of LangChain
@UserMessage
by @daixi98 in https://github.com/langchain4j/langchain4j/pull/930
Full Changelog: https://github.com/langchain4j/langchain4j/compare/0.29.1...0.30.0
Full Changelog: https://github.com/langchain4j/langchain4j/compare/0.29.0...0.29.1
Configure the OpenAI user-agent for LangChain4J by @jdubois in https://github.com/langchain4j/langchain4j/pull/733
Introduce SPI for creating Mistral AI Client by @geoand in https://github.com/langchain4j/langchain4j/pull/744
OpenAI: OpenAiTokenizer now has a default constructor which should be suitable for all current models by @langchain4j in https://github.com/langchain4j/langchain4j/pull/745
Use Testcontainers Ollama module by @eddumelendez in https://github.com/langchain4j/langchain4j/pull/702
Update usage of PostgreSQLContainer with pgvector/pgvector image by @eddumelendez in https://github.com/langchain4j/langchain4j/pull/703
Create MongoDBAtlasContainer by @eddumelendez in https://github.com/langchain4j/langchain4j/pull/713
Add Inifinispan dependencies to the BOM by @agoncal in https://github.com/langchain4j/langchain4j/pull/769
Bumps com.azure:azure-identity from 1.11.3 to 1.11.4. by @jdubois in https://github.com/langchain4j/langchain4j/pull/762
Updates to Infinispan 15.0 final by @karesti in https://github.com/langchain4j/langchain4j/pull/753
Adds other embeddings dependencies to BOM by @agoncal in https://github.com/langchain4j/langchain4j/pull/779
Bump follow-redirects from 1.15.4 to 1.15.6 in /docs by @dependabot in https://github.com/langchain4j/langchain4j/pull/771
[DOCS] Update overview integration table with new integrations by @czelabueno in https://github.com/langchain4j/langchain4j/pull/766
updated openai4j version by @langchain4j in https://github.com/langchain4j/langchain4j/pull/780
Fix #748: qianfan model throw exception the length of messages must b… by @yangxb2010000 in https://github.com/langchain4j/langchain4j/pull/749
Azure AI Search: dimension shouldn't be mandatory for full text search by @jdubois in https://github.com/langchain4j/langchain4j/pull/796
Add support for Responsible AI by @jdubois in https://github.com/langchain4j/langchain4j/pull/764
DefaultRetrievalAugmentor: improve logging by @langchain4j in https://github.com/langchain4j/langchain4j/pull/798
Fix #770: do not invoke scoring model when there is no content ro rerank by @langchain4j in https://github.com/langchain4j/langchain4j/pull/797
Fix #756: Allow blank content in AiMessage, propagate failures into streaming handler (Ollama) by @langchain4j in https://github.com/langchain4j/langchain4j/pull/782
adds PGVector Store example by @rajadilipkolli in https://github.com/langchain4j/langchain4j/pull/792
[DOCS] MistralAI function calling docs by @czelabueno in https://github.com/langchain4j/langchain4j/pull/765
Bump com.azure:azure-storage-common from 12.24.2 to 12.24.3 by @jdubois in https://github.com/langchain4j/langchain4j/pull/809
Bump com.azure:azure-search-documents from 11.6.2 to 11.6.3. by @jdubois in https://github.com/langchain4j/langchain4j/pull/810
Bump webpack-dev-middleware from 5.3.3 to 5.3.4 in /docs by @dependabot in https://github.com/langchain4j/langchain4j/pull/807
Fix #757: Gemini: allow SystemMessage(s), merge them into the first UserMessage, warn in logs by @langchain4j in https://github.com/langchain4j/langchain4j/pull/812
[FEATURE] #734 Add missing foundational Bedrock models by @bottlerocketjonny in https://github.com/langchain4j/langchain4j/pull/773
Add streaming API for Bedrock Anthropics by @michalkozminski in https://github.com/langchain4j/langchain4j/pull/679
Support relative paths without parent directory by @InAnYan in https://github.com/langchain4j/langchain4j/pull/817
Allow using AI Service with tools without memory by @langchain4j in https://github.com/langchain4j/langchain4j/pull/819
Add a variable to optionally update the index in AzureAISearchContentRetriver by @jdubois in https://github.com/langchain4j/langchain4j/pull/822
Bump com.azure:azure-storage-blob from 12.25.2 to 12.25.3 by @jdubois in https://github.com/langchain4j/langchain4j/pull/811
Release 0.29.0 by @langchain4j in https://github.com/langchain4j/langchain4j/pull/830
Full Changelog: https://github.com/langchain4j/langchain4j/compare/0.28.0...0.29.0
/docs
to /
by @amithkoujalgi in https://github.com/langchain4j/langchain4j/pull/655
langchain4j-embeddings-all-minilm-l6-v2-q
to the BOM by @boris-petrov in https://github.com/langchain4j/langchain4j/pull/579
Full Changelog: https://github.com/langchain4j/langchain4j/compare/0.27.1...0.28.0
Full Changelog: https://github.com/langchain4j/langchain4j/compare/0.27.0...0.27.1
LanguageModelQueryRouter
by @langchain4j in https://github.com/langchain4j/langchain4j/pull/593
Full Changelog: https://github.com/langchain4j/langchain4j/compare/0.26.1...0.27.0
verify
stage. by @crutcher in https://github.com/langchain4j/langchain4j/pull/474
ServiceLoader
s by @edeandrea in https://github.com/langchain4j/langchain4j/pull/531
Full Changelog: https://github.com/langchain4j/langchain4j/compare/0.25.0...0.26.0
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 builderslangchain4j-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
langchain4j.{model type}.{provider}.{property}
-> langchain4j.{provider}.{model type}.{property}
dev.langchain4j.data.document.FileSystemDocumentLoader
-> dev.langchain4j.data.document.loader.FileSystemDocumentLoader
TextDocumentParser
stays in langchain4j
moduleEmbeddingStoreIngestor
moved into langchain4j-core
, keeping the same package nameFull Changelog: https://github.com/langchain4j/langchain4j/compare/0.24.0...0.25.0
Response<T>
instead of T
. Response<T>
contains token usage and finish reason.