giuseppe-trisciuoglio avatar

Langchain4j Spring Boot Integration

Spring Boot integration for LangChain4j that wires AI model beans, chat memory, and RAG pipelines through auto-configuration.

CCM score
49 of 100
skills.sh installs
3.9K
GitHub stars
372
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers declarative @AiService interfaces, @Bean model configuration, chat memory, and RAG setup with Spring Data embedding stores
  • Includes property-based setup for OpenAI, Azure, Ollama, and Anthropic, plus streaming responses via Project Reactor
  • Shows @Tool methods on Spring components and a verification checklist for confirming beans are registered in the context
  • Designed for Java teams embedding LLM features into existing Spring Boot microservices

Install

$ npx -y skills add giuseppe-trisciuoglio/developer-kit --skill langchain4j-spring-boot-integration -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

LangChain4j Spring Boot Integration

Integrate LangChain4j with Spring Boot using declarative AI Services, auto-configuration, and Spring Boot starters. Configure AI model beans, set up chat memory, implement RAG pipelines with Spring Data, and build production-ready AI applications.

When to Use

Use this skill when:

  • Integrating LangChain4j into existing Spring Boot applications
  • Building AI-powered microservices with Spring Boot
  • Configuring AI model beans with @Bean annotations
  • Setting up auto-configuration for AI models and services
  • Creating declarative AI Services with Spring dependency injection
  • Implementing RAG systems with Spring Data integrations
  • Setting up chat memory with Spring context management
  • Configuring multiple AI providers (OpenAI, Azure, Ollama, Anthropic)
  • Building production-ready AI applications with Spring Boot

Overview

LangChain4j Spring Boot integration provides declarative AI Services through Spring Boot starters, enabling automatic configuration of AI components based on properties. Combine Spring dependency injection with LangChain4j's AI capabilities using interface-based definitions with annotations.

Instructions

Details

Repository
github.com/giuseppe-trisciuoglio/developer-kit
Categories
AI Agents & LLM Apps, Java & JVM
First seen
May 16, 2026

More from giuseppe-trisciuoglio/developer-kit

All 95

Similar to Langchain4j Spring Boot Integration

More AI Agents & LLM Apps