Tagged articles
LangChain4j
82 articles · Page 1 of 1
This article details a three-tier semantic chunking approach for RAG systems using LangChain4j: recursive punctuation-based splitting, tokenizer-aware overlapping windows, and parent-child document mapping with Redis and Qdrant to balance retrieval precision and context completeness.
LangChain4jQdrantRAG
0 likes · 9 min read

The article investigates Spring AI Alibaba's half-year release gap, revealing continued GitHub commits (137 since last release) but only maintenance work, while resources shift to AgentScope Java; it maps Java AI into three layers — access (Spring AI 2.0, LangChain4j), orchestration (SAA in maintenance), runtime (AgentScope) — guiding framework choice by need.
AI FrameworksAgentScopeLangChain4j
0 likes · 12 min read

Analysis of Spring AI Alibaba's six-month release gap reveals it's not abandoned but transitioning to maintenance mode while Alibaba prioritizes AgentScope Java; the article maps Java AI frameworks into three layers—model access (Spring AI 2.0, LangChain4j), workflow orchestration (SAA, Embabel), and agent runtime (AgentScope)—guiding developers to choose based on needs rather than panic.
AI orchestrationAgent RuntimeAgentScope
0 likes · 13 min read

The article debunks rumors that Spring AI Alibaba has stopped development, citing recent releases, and argues Java's strength in AI lies not in model training but in integrating AI capabilities into production enterprise systems through RAG, tool calling, and robust engineering practices.
AI integrationJavaLangChain4j
0 likes · 11 min read

The article investigates rumors that Spring AI Alibaba (SAA) has stopped updating, revealing through GitHub commit analysis that SAA is in maintenance mode while Alibaba shifts focus to AgentScope for agent runtime, and clarifies Java's AI ecosystem into three layers—model access (Spring AI 2.0, LangChain4j), workflow orchestration (SAA), and agent runtime (AgentScope)—guiding developers to choose based on their specific needs.
AI agent orchestrationAgentScopeJava AI frameworks
0 likes · 13 min read

Redis 8.0 introduces native vector search with Vector Set data type, HNSW indexing, quantization, and the Iris platform for agent memory and context retrieval, enabling semantic caching that cuts LLM costs by 70% and integrates with LangChain4j and Spring AI.
Agent MemoryLangChain4jRAG
0 likes · 26 min read

This guide categorizes six major Java AI frameworks into infrastructure and orchestration layers, detailing Spring AI 2.0's Advisor chain, LangChain4j's model breadth, Solon AI's Java 8 compatibility, Spring AI Alibaba's workflow engine, AgentScope's production-grade harness, and Embabel's deterministic GOAP planning to match frameworks to project constraints and scenarios.
AI FrameworksAgent orchestrationAgentScope
0 likes · 30 min read


java1234Sep 20, 2026 · Artificial Intelligence
This article explores Quarkus's AI integration via the LangChain4j extension, demonstrating declarative AI services, function calling with tools, retrieval-augmented generation (RAG), and Model Context Protocol (MCP) support, all while retaining Quarkus's cloud-native benefits like fast startup and native compilation.
AILangChain4jMCP
0 likes · 13 min read

LangChain4j provides a Java-native framework for integrating 20+ LLM providers and 30+ vector stores via a unified API, declarative AiServices, RAG pipelines, tool calling, and MCP support, enabling Spring Boot teams to add AI capabilities without Python dependencies.
AI servicesJavaLLM integration
0 likes · 9 min read

This guide categorizes Java AI frameworks into infrastructure and orchestration layers, comparing Spring AI, LangChain4j, Solon AI, Spring AI Alibaba, AgentScope, and Embabel with code examples, version requirements, and decision criteria for matching frameworks to project constraints and use cases.
AgentScopeEmbabelJava AI frameworks
0 likes · 28 min read

LangChain4j 1.19 drops SSE support in favor of a stateless Streamable HTTP protocol, introduces a Milvus‑v2 module that combines dense vector similarity with BM25 keyword matching for hybrid retrieval, and bundles dozens of bug fixes and new integrations across agents, HTTP clients, vector stores, and document parsers.
Hybrid SearchJavaLLM
0 likes · 9 min read

This guide shows how to replace external vector databases like Milvus or Qdrant with the JVM’s incubating Vector API and the integrallis/vectors library, providing built‑in distance kernels, indexing (FLAT, HNSW, IVF), and persistence, and demonstrates integration with Spring AI and LangChain4j through concise code examples and required JVM flags.
JVM Vector APIJavaLangChain4j
0 likes · 7 min read

This article introduces a three‑endpoint travel system (mini‑program, web front‑end, and back‑end) that integrates Java Spring Boot, Vue 3, LangChain4j, DeepSeek, Ollama embeddings, and Mahout‑based collaborative filtering to provide AI‑driven recommendations and a RAG‑enhanced chat assistant.
AILangChain4jRAG
0 likes · 7 min read

This guide explains vectors, text embedding, embedding models, vector databases, cosine similarity, dimensional trade‑offs, and the full RAG workflow, providing concrete code samples, performance calculations, and real‑world use cases such as semantic search, recommendation, and intelligent customer service.
LangChain4jOllamaRAG
0 likes · 22 min read

An interviewer's question about whether to use LangChain4j or Spring AI reveals that the true decision for enterprise Java AI projects hinges on team expertise, project requirements, and long‑term maintenance rather than just feature counts or ecosystem size.
AI FrameworksJavaLangChain4j
0 likes · 5 min read

The article analyzes how AI‑assisted coding tools are collapsing junior Java positions, driving salaries down, while boosting demand and pay for Java engineers who can integrate AI into enterprise systems, reshaping hiring criteria and interview formats in 2026.
AIJavaLangChain4j
0 likes · 10 min read

This article compares LangChain4j and LangGraph4j, explaining their roles as an AI capability‑access layer and a workflow‑orchestration layer respectively, detailing core features, design philosophies, code examples, strengths, limitations, version updates, and practical scenarios to help Java developers decide which tool fits their needs.
AI agentsJavaLangChain4j
0 likes · 20 min read

This article compares LangChain4j and LangGraph4j, explaining that the former is an AI capability integration layer for Java while the latter is a state‑graph workflow engine, and guides developers on when to use each based on features such as model access, tool calling, multi‑agent orchestration, conditional routing, checkpointing, and version maturity.
AI agentsJavaLangChain4j
0 likes · 19 min read

This article explains why LangChain4j is needed for advanced Java AI agents, compares its capabilities with Spring AI, walks through project setup, configuration, defining tools and memory, assembling the agent, and demonstrates a complete smart‑customer service example with testing commands.
AI agentsChatMemoryJava
0 likes · 10 min read

This article explains how to equip a Java application with Retrieval‑Augmented Generation (RAG) so large language models can access private PDFs, Word files, and internal documents, covering the core architecture, two implementation paths using LangChain4j and Spring AI, vector‑store options, and practical tuning techniques.
JavaLangChain4jRAG
0 likes · 12 min read

The article compares three Java‑centric AI frameworks—LangChain4j, Spring AI Alibaba, and LangGraph4j—showing how each integrates with Spring Boot to turn ordinary services into stateful, workflow‑driven AI agents, and offers guidance on picking the right tool for different project needs.
LangChain4jLangGraph4jagent framework
0 likes · 11 min read

Hybrid search combines dense vector retrieval with sparse keyword search, using RRF fusion and optional reranking, to overcome the limitations of each method—semantic understanding versus exact matching—making it the production‑grade standard for RAG systems by 2025‑2026.
BM25ElasticsearchHybrid Search
0 likes · 19 min read

Spring AI 2.0 RC1 is now on Maven Central, bringing a rebuilt architecture on Spring Boot 4, Java 21 baseline, tool‑calling overhaul, native MCP support, structured‑output enhancements, migration steps, pros and cons, and a detailed comparison with LangChain4j.
Java 21LangChain4jMCP
0 likes · 19 min read

This article compares Spring AI 2.0 and LangChain4j for integrating large language models into Java enterprise applications, examining their positioning, version alignment, programming models, RAG capabilities, tooling, observability, learning curves, and suitability for different team stacks to help you make an informed selection.
AI FrameworksJavaLLM integration
0 likes · 12 min read

The article introduces SkillsJars, a Maven‑based solution that packages Agent SKILL.md files into JARs, enabling unified dependency management for Java AI agents and demonstrating integration with Claude Code, Spring AI, and LangChain4j while also covering how to publish custom SkillsJars.
JavaLangChain4jMaven
0 likes · 11 min read

This article reviews the five major Java AI frameworks—Spring AI, LangChain4j, Spring AI Alibaba, AgentScope‑Java, and Semantic Kernel—detailing their architectures, core features, pros and cons, and provides guidance on selecting the right one for different enterprise scenarios.
AIAgentScopeJava
0 likes · 22 min read

This article compares three Java AI frameworks—Feat AI, Spring AI, and LangChain4j—by presenting code samples, analyzing fat‑jar sizes, core feature differences, streaming output implementations, and offering scenario‑based recommendations for developers.
AIFeat AIJava
0 likes · 8 min read

The article provides a side‑by‑side analysis of Spring AI 2.0 and LangChain4j, comparing their goals, version alignment, programming models, RAG and agent capabilities, ecosystem integration, learning curve, and operational considerations to help Java teams decide which library best fits their project constraints.
AI agentsJavaLLM integration
0 likes · 11 min read


java1234May 5, 2026 · Artificial Intelligence
The author announces a refreshed Spring AI 2.0 video tutorial series and provides a detailed overview of the framework’s design goals, provider‑agnostic API, full‑type model support, Spring integration, enterprise value, typical use cases, and a comparison with competing Java AI libraries.
AI frameworkJavaLangChain4j
0 likes · 7 min read

This article curates ten open‑source AI projects on Gitee that Java developers can use to learn RAG pipelines, AI agents, knowledge‑base construction, Text‑to‑SQL, workflow orchestration, and multi‑model integration, offering concrete use cases, learning goals, and guidance on selecting a learning path.
AIJavaLangChain4j
0 likes · 13 min read

The article demonstrates how to construct a Spring Boot application that orchestrates multiple AI services using LangChain4j and Ollama, defining intent‑classification and tool‑based assistants, registering them as beans, and routing user requests through a controller to achieve multi‑step intent recognition and task dispatch in a simulated intelligent customer‑service workflow.
AI orchestrationLangChain4jOllama
0 likes · 13 min read

This guide shows how to integrate LangChain4j with Alibaba Baichuan's DashScope model in a Spring Boot application, enabling per‑user AI chat memory identified by @MemoryId, isolating conversations, and persisting the sliding‑window message history to Redis with TTL handling.
AI chatbotAlibaba BaichuanConversation Memory
0 likes · 12 min read

This guide walks through installing Ollama on Windows, downloading a Qwen2.5‑7B model, configuring Spring Boot with LangChain4j dependencies, setting up application.yml, defining AI service interfaces, adding conversation memory, creating REST and streaming controllers, and testing the end‑to‑end local LLM workflow.
AILLMLangChain4j
0 likes · 12 min read

This guide walks through setting up a local LLM with Ollama, configuring Spring Boot and LangChain4j, defining function‑calling tools for weather, order status, logistics and coupons, creating AI service beans, exposing REST controllers, and troubleshooting common integration issues.
AI integrationFunction CallingJava
0 likes · 14 min read

This guide walks through why Retrieval‑Augmented Generation (RAG) is needed for large language models, explains the three‑step indexing and query workflow, details LangChain4j’s core components, and provides a complete SpringBoot example—including Maven setup, configuration, service code, and troubleshooting—to create a private document‑vector search system powered by Ollama.
EmbeddingLangChain4jOllama
0 likes · 13 min read

This guide walks through using the SpringAIAlibaba framework to integrate Alibaba Baichuan with Spring Boot via LangChain4j, explains core concepts, compares LangChain4j to Spring AI and OpenAI, and provides step‑by‑step dependency setup, environment configuration, code examples, and a simple browser test.
AI chatAgentAlibaba Baichuan
0 likes · 11 min read

This guide demonstrates how to integrate LangChain4j into a SpringBoot application to enable multi‑turn chat memory and per‑user session isolation using @MemoryId, configuring ChatMemoryProvider, updating the AI service interface, and testing with curl requests.
AIChatMemoryJava
0 likes · 10 min read

This guide details how to design and implement a production‑grade, high‑concurrency medical AI assistant using LangChain4j, Spring Boot, Redis, and Kubernetes, covering architecture, RAG‑enhanced retrieval, controlled tool invocation, guardrails, idempotent transactions, scaling strategies and observability to ensure reliable, compliant patient interactions.
LangChain4jRAGTool governance
0 likes · 33 min read


java1234Apr 24, 2026 · Artificial Intelligence
This article compares Spring AI 2.0 and LangChain4j, examining their positioning, version alignment, architecture, programming model, RAG support, observability, learning curve, and ecosystem integration to help Java teams decide which library best fits their AI project constraints.
AI librariesJavaLLM integration
0 likes · 13 min read


java1234Apr 22, 2026 · Artificial Intelligence
LangChain4j fills the long‑standing gap for Java developers by offering a Java‑native, enterprise‑grade LLM framework that abstracts model calls, prompts, memory, tools, RAG, streaming and structured output, enabling quick setup, clean AI Service definitions, and seamless integration into Spring Boot or Quarkus applications.
AI servicesChatMemoryJava
0 likes · 24 min read

Learn how to transform a simple LangChain4j demo into a production‑ready AI agent web application by designing a robust architecture, implementing multi‑agent orchestration, RAG, tool integration, session management, observability, security, and scalable deployment with Spring Boot, PostgreSQL, Redis, Kafka, Docker and Kubernetes.
AILangChain4jObservability
0 likes · 43 min read

While many Java teams chase flashy AI demos and agents, the real 2026 focus has shifted to engineering concerns—ensuring model outputs reliably map to Java objects, integrating Retrieval‑Augmented Generation into robust data pipelines, and adding observability so AI services can be monitored and debugged like traditional back‑end components.
AILangChain4jObservability
0 likes · 7 min read

The article explains that in 2026 Java AI development shifts from simple model SDKs and prompt engineering to engineered, production‑ready solutions, highlighting Spring AI’s new stable releases with dynamic structured output and LangChain4j’s mature integration options, and compares their suitability for Spring‑centric versus framework‑agnostic projects.
Backend EngineeringLangChain4jObservability
0 likes · 7 min read

The article explains why fixed‑size chunking harms RAG recall, demonstrates three semantic‑chunking strategies—including recursive punctuation splitting, overlapping windows, and parent‑child document mapping—and provides complete Java/LangChain4j code that integrates tokenizers, Redis, and Qdrant to boost retrieval performance.
EmbeddingJavaLangChain4j
0 likes · 10 min read

With Spring AI 1.1, LangChain4j, and MCP Java SDK now offering mature, framework‑level AI capabilities, Java backend teams can move beyond ad‑hoc model calls to fully engineered AI integration—RAG, tool calling, and agents—making Java a viable, production‑ready AI stack for enterprises by 2026.
AIJavaLangChain4j
0 likes · 7 min read

This article walks through building a production‑ready Retrieval‑Augmented Generation (RAG) system using Java, Spring Boot, LangChain4j, Chroma vector store, and Ollama LLM, covering architecture, key dependencies, configuration, document ingestion, retrieval APIs, scoring, and security considerations.
ChromaGenAIJava
0 likes · 8 min read

The article argues that the key transformation in the Java ecosystem by 2026 is not AI replacing developers, but the rise of AI agents that rewrite how Java engineers design prompts, manage tools, and orchestrate enterprise workflows, demanding new skills beyond traditional coding.
AI agentsIntelliJJava
0 likes · 10 min read

This article explains why enterprise‑grade AI development in Java goes far beyond calling a model, introduces the five major Java AI frameworks—Spring AI, LangChain4j, Spring AI Alibaba, AgentScope‑Java, and Semantic Kernel—compares their core features, provides concrete code samples, offers a selection matrix for different scenarios, and outlines future trends in AI system orchestration.
AI FrameworksAgentScopeJava
0 likes · 7 min read

This article provides a deep, production‑grade comparison of LangChain4j and Spring AI, examining their architectural philosophies, engineering governance, high‑concurrency design, code examples, and real‑world scenarios to help Java teams decide which framework best fits their AI system boundaries, team capabilities, and long‑term evolution goals.
LangChain4jRAGSpring AI
0 likes · 29 min read

This article analyzes the emerging Java AI ecosystem, comparing Spring AI, LangChain4j, Spring AI Alibaba, AgentScope‑Java, and Microsoft Semantic Kernel, and provides guidance on selecting the right framework based on features such as RAG, agent support, observability, security sandbox, and cloud integration.
AI FrameworksAgentScopeJava
0 likes · 19 min read

This article explains how the new quarkus‑langchain4j 0.1 extension lets developers embed LLMs into Quarkus applications using a declarative @RegisterAiService API, with support for tools, document stores, RAG, and full code examples.
AI integrationJavaLLM
0 likes · 13 min read

This tutorial introduces LangChain4j's new Agent Skills feature, explains its core concepts, and walks through a complete example of creating a reusable code‑analysis skill in Java, covering dependency setup, skill definition, integration, and expected runtime behavior.
LLMLangChain4jagent skills
0 likes · 8 min read


XikeMar 7, 2026 · Artificial Intelligence
This guide explains what an AI Agent is, outlines its four core abilities, compares it with traditional programs, presents a layered architecture diagram, shows common use‑case scenarios, and provides step‑by‑step Java code using LangChain4j to build basic, multi‑tool, planning, reflective, and collaborative agents together with optimization tips and FAQs.
AI AgentAgent ArchitectureJava
0 likes · 19 min read


XikeMar 7, 2026 · Artificial Intelligence
This article provides a step‑by‑step guide to quickly set up LangChain4j, configure API keys, call LLM models, use structured outputs, function calling, and chat memory, and demonstrates three hands‑on projects—smart assistant, document summarizer, and code generator—plus FAQs and resources.
AIChat MemoryFunction Calling
0 likes · 13 min read

The article compares LangChain4j and Spring AI across design philosophy, core features, ecosystem integration, community maturity, and learning curve, providing concrete code examples, a feature‑richness matrix, and practical selection guidelines to help Java developers choose the most suitable AI framework for their needs.
AI FrameworksAgentJava
0 likes · 15 min read

This article compares LangChain4j and Spring AI, outlining their design philosophies, core features, ecosystem integration, community maturity, and provides concrete code examples and selection guidelines to help Java developers decide which framework best fits their AI application needs.
AI FrameworksJavaLLM
0 likes · 13 min read

This article shows Java developers how to add generative AI to enterprise applications using the open‑source LangChain4j library and Quarkus, covering a chatbot example, streaming responses, chat memory management, and structured output without learning a new programming language.
JavaLLMLangChain4j
0 likes · 20 min read

This guide explains why pure vector retrieval often fails for version‑specific queries, introduces hybrid search that combines semantic and keyword matching, and provides step‑by‑step code and SQL examples for enabling PgVector hybrid search in LangChain4j 1.11.0.
Hybrid SearchLangChain4jRAG
0 likes · 11 min read

This article explains how Helidon 4.2 integrates the LangChain4j framework to simplify adding large‑language‑model capabilities, covering core features, Maven setup, configuration, component creation, dependency injection, annotations, custom tools, and sample applications such as a coffee‑shop assistant.
AI integrationHelidonJava
0 likes · 14 min read

This guide walks through the importance of Retrieval‑Augmented Generation, outlines the core Langchain4j and Ollama 3 components, and provides a complete Java example—including Maven setup, document ingestion, embedding creation, similarity search, prompt construction, and response generation—to demonstrate a functional RAG pipeline.
EmbeddingJavaLLM
0 likes · 9 min read

This article explains why Retrieval‑Augmented Generation improves LLM accuracy, outlines the key Langchain4j and Ollama3 components, and provides a step‑by‑step Java example—including Maven setup, document ingestion, embedding, similarity search, prompt creation, and response generation—to demonstrate a functional RAG pipeline.
EmbeddingJavaLLM
0 likes · 8 min read

The Explain Error Plugin for Jenkins now supports the Ollama local model, offering a community‑driven AI solution that simplifies configuration, enhances security, and speeds up build error analysis for both individual developers and enterprise teams.
AICI/CDExplain Error Plugin
0 likes · 4 min read

LangChain4j 1.2.0 introduces a suite of stable modules, advanced inference and thinking capabilities, streaming tool calls, and extensive AI service enhancements, offering developers finer control, lower latency, and richer debugging for LLM‑driven applications.
AIJavaLLM
0 likes · 7 min read

This tutorial walks through the fundamentals of large language models, prompt engineering, word embeddings, and shows how to use the LangChain framework (including its Java implementation LangChain4j) to build, memory‑manage, retrieve, and chain AI‑driven applications with practical code examples.
AIEmbeddingJava
0 likes · 17 min read

The article announces the Spring AI 1.0 release, provides the Maven BOM dependency, compares Spring AI with LangChain4j for Java AI development, and outlines upcoming integration, performance, and observability improvements for both frameworks amid rapid large‑model advancements.
JavaLangChain4jMaven
0 likes · 4 min read

LangChain4j 1.0.0 brings official OpenAI SDK support, GitHub Models integration, expanded database and vector store compatibility, customizable HTTP clients, and clear migration steps for renamed interfaces and streaming methods, marking a major milestone for Java AI development.
AI SDKLLMLangChain4j
0 likes · 7 min read


JavaEdgeApr 24, 2025 · Artificial Intelligence
This guide explains how LangChain4j modules let you replace the default HTTP client used to call LLM provider APIs, showing two out‑of‑the‑box implementations (JdkHttpClient and SpringRestClient) and providing step‑by‑step code examples for custom JDK and Spring RestClient configurations.
HTTP ClientJavaLLM
0 likes · 4 min read


JavaEdgeApr 21, 2025 · Artificial Intelligence
This tutorial explains how to use LangChain4j's Model Context Protocol (MCP) to create a tool provider, configure HTTP or stdio transports, run a GitHub MCP server in Docker, and employ a language model to summarize recent repository commits, complete with code samples and logging customization.
AIDockerGitHub
0 likes · 11 min read

This guide explains why large language models need private search capabilities, outlines the benefits of a self‑hosted SearXNG engine, provides step‑by‑step Docker deployment, and demonstrates Java integration using LangChain4j for both basic queries and retrieval‑augmented generation (RAG).
DockerLLMLangChain4j
0 likes · 6 min read

This article explains how Docker Model Runner enables effortless local execution of AI models, details platform support, provides a full command reference, shows how to use the REST endpoint, and demonstrates integration with Java via LangChain4j, including code examples and a feature comparison with Ollama.
AIDockerLangChain4j
0 likes · 9 min read

This tutorial introduces the fundamentals of LangChain, explains large language models, prompt engineering, word embeddings, and demonstrates how to use the Java implementation LangChain4j with Maven dependencies, model I/O, memory, retrieval, chains, and agents to build sophisticated LLM‑driven applications.
AIJavaLLM
0 likes · 18 min read

The article introduces DeepSeek's new V3-0324 model, highlights its performance gains and new features like function calling and standardized JSON output, demonstrates Chinese and frontend coding tests, provides Java code examples for AI integration, and concludes with a summary of its business impact.
AIChat2BIDeepSeek
0 likes · 6 min read


ArchitectMar 20, 2025 · Artificial Intelligence
This article explains the Model Context Protocol (MCP) introduced by Gitee, shows how Java developers can integrate it using LangChain4j, compares stdio and SSE transport modes, provides full code samples, installation steps, and demonstrates a practical AI‑powered repository assistant.
AIGiteeJava
0 likes · 9 min read

This article explains how to integrate Gitee's Model Control Protocol (MCP) with Java using LangChain4j, covering download, Maven setup, configuration, both stdio and SSE transport modes, sample code, output examples, and a comparison of the two modes to create an AI‑powered repository assistant.
AI assistantGiteeLangChain4j
0 likes · 11 min read

This article examines three leading Java AI frameworks—LangChain4j, Spring AI, and Agent-Flex—by comparing their architectures, core capabilities, and ideal use‑cases, helping developers choose the most suitable solution for enterprise, domestic, or rapid‑prototype projects.
AIAgent-FlexFrameworks
0 likes · 5 min read

This article provides a step‑by‑step tutorial for Java engineers on using the LangChain4j framework to implement Retrieval‑Augmented Generation (RAG) with large language models, covering concepts, environment setup, code integration, document splitting, embedding, vector‑store operations, and prompt engineering.
EmbeddingJavaLangChain4j
0 likes · 35 min read

This article walks Java developers through the fundamentals of Retrieval‑Augmented Generation (RAG), explains the LangChain4j framework, compares large‑model development with traditional Java coding, and provides step‑by‑step code examples for environment setup, document splitting, embedding, vector‑store operations, and LLM interaction.
EmbeddingJavaLangChain4j
0 likes · 34 min read


JD TechOct 13, 2024 · Artificial Intelligence
This article guides readers through the concepts of large language models, embeddings, vector databases, and Retrieval‑Augmented Generation, then demonstrates step‑by‑step how to set up Ollama, install a local Chroma vector store, configure Maven dependencies, and write Java code using LangChain4J to build and test a functional AI Q&A application.
AIJavaLLM
0 likes · 22 min read


JavaEdgeSep 24, 2024 · Artificial Intelligence
This article explains how to extend large language models with domain‑specific knowledge using Retrieval‑Augmented Generation (RAG) in LangChain4j, covering the concepts of RAG, its indexing and retrieval stages, simple RAG setup, detailed API usage, and advanced customization options such as query transformers and content injectors.
EmbeddingJavaLLM
0 likes · 24 min read


JavaEdgeSep 21, 2024 · Artificial Intelligence
This article explains the different low‑level LLM API types in LangChain4j, including LanguageModel, ChatLanguageModel, and other model interfaces, and shows how to create and combine ChatMessage objects for multi‑turn conversations.
AI APIChatLanguageModelChatMessage
0 likes · 8 min read


JavaEdgeSep 20, 2024 · Artificial Intelligence
This guide explains how to use LangChain4j Spring Boot starters to configure OpenAI models, create declarative AI services with @AiService, and run practical examples such as a customer‑support agent and a simple HelloWorld program, covering required dependencies, properties, and code snippets.
ChatLanguageModelDeclarative AI ServiceJava
0 likes · 8 min read


JavaEdgeSep 19, 2024 · Artificial Intelligence
LangChain4j streamlines the integration of large language models into Java applications by offering a standardized API, extensive support for over a dozen LLM providers and vector stores, a rich toolbox for RAG, chat memory, and tool calling, plus two abstraction layers that cater to both low‑level control and high‑level convenience.
AIJavaLLM
0 likes · 10 min read
