0.26.1
New Core Features:
- Advanced RAG by @langchain4j in #538
- Multimodality: support image inputs by @langchain4j in #428
- ConversationalRetrievalChain: adding metadata in the prompt by @mateusscheper in #431
New Integrations:
Model providers:
- Mistral AI by @czelabueno in #514
- Wenxin Qianfan by @lane12138 in #499
- Cohere Rerank by @langchain4j in #539
Embedding Stores:
Document Loaders:
Notable Updates:
- OpenAI: support image inputs by @langchain4j in #428
- OpenAI: support shortened embeddings by @langchain4j in #555
- OpenAI: support native images by @langchain4j in #497
- Vertex AI Gemini: support image inputs by @langchain4j in #428
- Vertex AI: image generation by @glaforge in #456
- Ollama: support image inputs by @bidek in #462
- Ollama: list available models by @bidek in #533
- Ollama: Spring Boot starter by @langchain4j in langchain4j/langchain4j-spring#3
- Qwen: support image inputs by @jiangsier-xyz in #537
Technical Improvements and Bugfixes:
- Pre-built ollama models by @langchain4j in #419
- Image tests and docs. by @crutcher in #401
- Add documentation and tests for Document class by @crutcher in #376
- Add DocumentSplitterTest class by @crutcher in #378
- Add DocumentLoaderTest class and update DocumentLoader by @crutcher in #379
- Add DocumentTransformerTest class. by @crutcher in #380
- Add ChatLanguageModelTest class. by @crutcher in #381
- Add Javadoc to TokenCountEstimator and create TokenCountEstimatorTest by @crutcher in #382
- Retriever Interface Add a default method with memoryId by @leojames in #358
- Tests and docs for ImageModel api. by @crutcher in #383
- Tests and docs for JsonSchemaProperty api. by @crutcher in #387
- ToolExecutionRequest docs and tests. by @crutcher in #388
- Tests and docs for ToolParameters by @crutcher in #389
- Implement Metadata class tests and enhance documentation by @crutcher in #377
- ToolSpecification and ToolSpecifications docs and tests. by @crutcher in #390
- TextClassifier tests. by @crutcher in #391
- CosineSimilarity protection from zeros; full coverage tests. by @crutcher in #392
- InMemoryChatMemoryStore, tests by @crutcher in #393
- EmbeddingMatch tests by @crutcher in #394
- Utils test coverage and docs. by @crutcher in #396
- Exceptions utility docs and tests. by @crutcher in #397
- TokenUsage docs and tests. by @crutcher in #398
- Embedding tests and docs. by @crutcher in #399
- ChatMessage, UserMessage, AiMessage tests by @crutcher in #403
- Fix another Neo4jEmbeddingStoreTest error by @vga91 in #441
- Fix function without params for Azure Open AI by @kumlien in #443
- Added skeleton structure for docs by @amithkoujalgi in #458
- Full unittest coverage and docs for ValidationUtils. by @crutcher in #445
- Full test coverage of EmbeddingMatch. by @crutcher in #446
- Ensure that Redis pipelines are closed after usage by @gdarmont in #449
- Add support to Anthropic Claude v2.1 by @sergioa in #450
- Refactor ServiceHelper and add tests and docs. by @crutcher in #452
- Docs and default-case tests for Retriever. by @crutcher in #453
- Restructure ChatMessageType to structured enums. by @crutcher in #457
- set up documentation structure by @LizeRaes in #473
- Tests and Docs for default EmbeddingModel methods. by @crutcher in #454
- Test coverage for EmbeddingStore defaults. by @crutcher in #465
- Coverage test for Image.Builder.url(String) by @crutcher in #466
- GsonJsonCodec tests by @crutcher in #467
- TextSegment and TextSegmentTransformer tests. by @crutcher in #468
- Fix #460: no overlap when previous segment is shorter than maxOverlapSize by @langchain4j in #464
- UserMessage tests. by @crutcher in #469
- EmbeddingStoreIngestor test coverage. by @crutcher in #470
- Prompt test coverage. by @crutcher in #471
- Basic test for StreamingResponseHandler. by @crutcher in #475
- Utils.readBytes() test. by @crutcher in #472
- Add jacoco coverage targets to langchain4j-core, attached to the
verify
stage. by @crutcher in #474 - Tokenizer default methods tests. by @crutcher in #476
- ContentType migrated to structured enum. by @crutcher in #477
- Move RetryUtilsTest to langchain4j-core with RetryUtils. by @crutcher in #478
- Bump follow-redirects from 1.15.3 to 1.15.4 in /docs by @dependabot in #480
- Fix #444: Added missing GraalVM metadata for Gson and excluded commons-logging by @langchain4j in #482
- Fix #451: SentenceDetectorME is not thread-safe by @langchain4j in #481
- Document VertexAI authentication by @langchain4j in #463
- Add IntelliJ icon by @geoand in #495
- Updated Docs by @amithkoujalgi in #500
- Docu logos and domain by @amithkoujalgi in #503
- action to build and publish javadoc to pages by @LizeRaes in #504
- Flesh out RetryUtils with a policy mechanism. by @crutcher in #484
- ServiceHelper.{loadService, loadFactoryService}() by @crutcher in #485
- SystemMessage tests. by @crutcher in #486
- ImageContent tests. by @crutcher in #487
- ToolExecutionResultMessage tests. by @crutcher in #488
- Make PromptTemplateFactory.Input a FunctionalInterface. by @crutcher in #489
- LanguageModel and StreamingLanguageModel tests. by @crutcher in #491
- Moderation tests. by @crutcher in #492
- Response tests. by @crutcher in #493
- language.TokenCountEstimator tests. by @crutcher in #494
- StructuredPrompt refactor and tests. by @crutcher in #490
- Tighten coverage ratchet. by @crutcher in #483
- Unify langchang4j-core coverage to a 95% requirement. by @crutcher in #509
- added documentation link by @langchain4j in #517
- Fix all jococo javadoc warnings in langchain4j-core. by @crutcher in #510
- Default methods for ModerationModel. by @crutcher in #511
- Coverage work on InMemoryEmbeddingStore. by @crutcher in #520
- Fix reflection bug that broke tests during coverage. by @crutcher in #519
- add logging and model parameter tutorials to docu by @LizeRaes in #536
- Add IT for AWS OpenSearch using LocalStack & Testcontainers by @eddumelendez in #416
- Use the Jackson BOM to solve Jackson dependency errors by @jdubois in #523
- enable Reproducible Builds by @hboutemy in #528
- Allowing model builders to be extended and to be provided by
ServiceLoader
s by @edeandrea in #531 - Testing and efficiency work on HierarchicalDocumentSplitter. by @crutcher in #524
- Allow @SystemMessage to be placed on a class by @geoand in #546
- Bump com.jayway.jsonpath:json-path from 2.8.0 to 2.9.0 in /langchain4j-parent by @dependabot in #541
- tiny improvements by @langchain4j in #543
- Fix illegal group reference when the value contains $$ by @ilopezluna in #545
- Bump com.google.guava:guava from 30.1-jre to 32.0.0-jre in /langchain4j-qdrant by @dependabot in #547
- Update localstack version to 3.1.0 by @eddumelendez in #550
- Update Vertex AI embedding to allow a batch size of 250 by @glaforge in #556
- Simplify replacement in PromptTemplate (#515) by @langchain4j in #554
- Fix #563: IllegalArgumentException occurs when attempting to use AiServices with OllamaStreamingChatModel by @langchain4j in #564
- Correcting the code snippets in the docs by @sivaprasadreddy in #566
- Automate release by @langchain4j in #562
New Contributors
- @crutcher made their first contribution in #401
- @leojames made their first contribution in #358
- @amithkoujalgi made their first contribution in #458
- @gdarmont made their first contribution in #449
- @sergioa made their first contribution in #450
- @bidek made their first contribution in #462
- @mateusscheper made their first contribution in #431
- @glaforge made their first contribution in #456
- @hboutemy made their first contribution in #528
- @czelabueno made their first contribution in #514
- @Anush008 made their first contribution in #542
- @ilopezluna made their first contribution in #545
- @lane12138 made their first contribution in #499
- @sivaprasadreddy made their first contribution in #566
Full Changelog: 0.25.0...0.26.0