Skip to main content

Solutions Overview

Solutions is the scenario composition entry point for AI4J. It does not redefine SDK capabilities; rather, it composes capabilities such as Core SDK, Spring Boot, RAG, MCP, Agent, and FlowGram into reproducible paths organized around common problems.

If you have not yet grasped the foundational concepts, start with Start Here and Feature Map. Once you know which business problem you need to solve, pick a solution from this section.

In one sentence

Solutions addresses:

When a real scenario requires composing multiple AI4J modules, it tells you which solution path to start from, which modules you need, and where the boundaries lie.

It is not the source of truth. Every solution page routes you back to its corresponding main line, such as Spring Boot, Search & RAG, Agent, or FlowGram.

Quick path picker

GoalSolutionComposed capabilities
Multi-turn chat with persistent sessionsSpring Boot + MySQL Chat MemorySpring Boot, Chat Memory, MySQL
Persistent Agent sessionsSpring Boot + JDBC Agent MemorySpring Boot, Agent, JDBC Memory
Build a RAG ingestion and retrieval pipelineRAG Ingestion Vector StoreIngestion, Embedding, Vector Store, Retrieval
Use PineconePinecone Vector WorkflowVector Store, Pinecone, RAG
Integrate web searchSearXNG Web SearchOnline Search, SearXNG
Combine streaming output, search, and RAGDeepSeek Stream Search RAGStreaming, Search, RAG
Build high-evidence Q&ALegal AssistantRAG, Citation, Trace
Persist FlowGram tasksFlowGram MySQL Task StoreFlowGram, Task Store, MySQL
Tune HTTP concurrency and connection poolSPI Dispatcher ConnectionPoolHTTP Stack, SPI, OkHttp

How to read a solution page

Read in this order:

  1. First check whether the solution solves your problem.
  2. Then see which modules need to be composed.
  3. Confirm the scenarios and limits where it does not apply.
  4. Jump back to the corresponding main line to fill in the full concepts.
  5. Before going live, review the production, security, and troubleshooting pages.

Do not reverse-engineer the entire project architecture from a solution page. Solution pages are composition paths, not module boundary definitions.

What a solution page should make clear

Every solution should reliably answer:

  • What problem it solves.
  • What problem it does not solve.
  • Which modules and configuration it requires.
  • What the minimum runnable path is.
  • Which points need a pre-production check.
  • Which main line to return to for going deeper.

This structure matters more than piling up code. Code can be plentiful, but it must serve the path and the boundaries.

Back to the main line

If you find yourself missingGo here
Model call, Tool, MCP, foundational RAG capabilitiesCore SDK
Spring configuration, Beans, and auto-configurationSpring Boot
Multi-step reasoning, workflow, traceAgent
Local codebase tasks, CLI, ACPCoding Agent
Visual workflow backendFlowGram
Versioning, security, production checks, and troubleshootingProduction Checklist

If a solution page does not make these paths clear, it has not yet met the quality this section expects.