Skip to content
Flag of Europe
Made in the European Union · Independently built · Released under EUPL 1.2

Building a RAG in Java

Ground a large language model in your data — on the JVM. A code-first training that builds a real retrieval-augmented-generation pipeline end to end, with the security lens baked in: no prototype that leaks, a system you can ship.

Hands-on labs 1–2 days On-site · live-online EN / DE Everyday Java required

What your team can do after

A working pipeline and the judgement to run it — not a notebook demo.

Agenda

Six modules, each ending in a hands-on lab that grows one working RAG service in Java.

  1. RAG, and when to use it Architecture, RAG vs. fine-tuning vs. long-context, cost and latency.
    Lab: map a real use case to a pipeline design.
  2. Ingestion & embeddings Loaders, chunking strategies, embedding models — in Java with LangChain4j.
    Lab: build an ingestion pipeline over your own documents.
  3. Vector stores & retrieval Vector databases, similarity search, metadata filters, hybrid and re-ranking.
    Lab: wire a store and tune retrieval quality.
  4. Grounding & citations Prompt assembly, context windows, source attribution, refusal when unsupported.
    Lab: return grounded answers with citations.
  5. LLM integration in Java Chat models behind one interface — API providers and local models (Ollama), streaming, tools.
    Lab: swap providers without touching the pipeline.
  6. Evaluation & security Relevance / groundedness evals; prompt-injection and exfiltration defenses; access-scoped retrieval.
    Lab: add an eval harness and a retrieval guardrail.

Who it's for

Java developers and teams building LLM features on the JVM — search, assistants, copilots and agents grounded in their own data, without bolting on a separate Python stack.

Prerequisite: everyday Java; basic LLM familiarity helps but is not required. Pairs naturally with AI-Security for Developers.

Logistics

📋 Course details

Formats
On-site · live-online · on-demand (in preparation)
Price
On request — tailored to each client
Duration
Typically 1–2 days — depth and agenda tailored to your team
Languages
English or German
Group size
Private team cohorts or individual seats on scheduled dates
Trainer
Sven Ruppert — long-time Java developer and speaker
Build it, then secure it: pair this with AI-Security for Developers for the deep defensive lens, or see jSentinel AI if you would rather we build the system with you. How to book: request the course with team size, format and dates; we tailor the agenda and send a proposal.