Provides Retrieval-Augmented Generation (RAG) implementation patterns with LangChain4j for Java. Generates document ingestion pipelines, embedding stores, vector search, and semantic search capabilities.
SkillScore68Maintained
Automatic
◆AI Engineer pack
Last verified 8/21/2026
What it changes
Passed 15 of 22 test cases with the skill, and 14 of 22 without it.
Without skill64%
With skill68%
Checks it passed that the model alone missed
The dependencies include langchain4j-open-ai.
The recommended overlap is between 20 and 50 tokens.
The dependencies include langchain4j-spring-boot-starter.
and 1 more in the full report
3 fixed12 passed either way5 still failing2 broke
Pass-rate lift
+5 pp
Tokens
+84%
Agent turns
0%
Response time
-19%
Model gemini-3.6-flashMeasured 8/21/2026v115 of 22 cases passed with skill
Tokens, turns and time describe resource use, not a dollar price.
See it in action
One of 3 test cases the skill fixed. Same model, same prompt, with and without the skill.
1 of 3
Prompt
List the Maven dependencies needed for a Spring Boot 3 application using LangChain4j with OpenAI models. Standard spring-boot-starter-web is already present.
What was checked, without and with the skill
Checked
Without skill
With skill
The dependencies include langchain4j-spring-boot-starter.
Missed
Passed
The dependencies include langchain4j-open-ai.
Missed
Passed
case-13 · gemini-3.6-flash · 8/21/2026 · answers are capped and redacted
What's inside
The instructions your model reads when the skill loads.
SKILL.md375 lines3 files
LangChain4j RAG Implementation Patterns
Overview
Implements RAG systems with LangChain4j: document ingestion pipelines, embedding stores, and vector search for chat-with-documents and knowledge-enhanced AI applications.
When to Use This Skill
Building chat-with-documents systems or document Q&A over PDFs, text files, or web pages
Creating AI assistants with access to company knowledge bases or external sources
Implementing semantic search or hybrid search over document repositories
Building domain-specific AI with curated knowledge and source attribution
Instructions
Initialize RAG Project
Create a new Spring Boot project with required dependencies:
Provides configuration patterns for LangChain4J vector stores in RAG applications. Use when building semantic search, integrating vector databases (PostgreSQL/pgvector, Pinecone, MongoDB, Milvus, Neo4j), implementing embedding storage/retrieval, setting up hybrid search, or optimizing vector database performance for production AI applications.