Skip to main content

Migration Guide

The AI4J docs site is converging from the old getting-started/, ai-basics/, and guides/ structure to a canonical structure organized by module and integration path. This page explains the migration rules, so users do not treat historical pages as the new source of truth.

Migration principles

  1. Do not delete strong content outright.
  2. Move stable conclusions from the old pages into the canonical pages first.
  3. Then add a legacy notice or redirect note to the old pages.
  4. Write new documentation only into the canonical main line.
  5. After migration, the pages in the sidebar are the official reading path.

Old path to new path

Old pathNew pathStatus
getting-started/installationQuickstart for JavaMigrating
getting-started/quickstart-openai-jdk8Quickstart for JavaMigrating
getting-started/quickstart-springbootQuickstart for Spring BootMigrating
getting-started/version-compatibilityVersion CompatibilityNew entry established
getting-started/modules-and-maven-centralRelease and ArtifactsNew entry established
ai-basics/chat/*Model AccessMigrating
ai-basics/responses/*Model AccessMigrating
ai-basics/rag/*Search & RAGMigrating
ai-basics/services/*Platform and Service Matrix and related capability pagesMigrating
ai-basics/provider-and-model-extensionExtensionMigrating
core-sdk/mcp/*MCP OverviewTop-level MCP is now the official main line
guides/*SolutionsMigrating
agent/coding-agent-*Coding AgentSplit into a new main line
flowgram/builtin-nodesBuilt-in NodesNaming being consolidated

API and usage migration

Migrating from the old FreeAiService mental model

Some examples in the old documentation present FreeAiService as the most direct entry point. The new documentation should make the following clear first:

  • The official unified entry point of the Core SDK is AiService.
  • For multiple instances or multiple providers, understand AiServiceRegistry.
  • FreeAiService is better suited as a compatibility shell or a migration lead for old examples, and should not be the first main line for new users.

Official entry points:

Migrating from the scattered Chat / Responses pages

The old pages are split fairly finely by interface shape, which is useful for looking up implementation details. New users should start from:

Then proceed to the specific chat, responses, streaming, and multimodal pages.

Migrating from the old MCP paths

The top-level docs/mcp/ is the current official MCP main line. The details unique to core-sdk/mcp/* will gradually be migrated into:

Migrating from the old guides

guides/ reads more like a historical accumulation of blog posts and tutorials. Reusable solutions should go into:

Production checklists, troubleshooting, security, and version and release notes should go into:

New documentation write rules

New content typeWhere to write it
First integration, path selectionstart-here/
Core SDK capabilitiescore-sdk/
MCPmcp/
Spring Bootspring-boot/
Agent runtimeagent/
Coding Agentcoding-agent/
FlowGramflowgram/
Scenario cookbooksolutions/
Version, release, compatibilityreference/
Security and go-livesecurity/, operations/
Migration and troubleshootingmigration/, troubleshooting/

Do not add new main-line pages to getting-started/, ai-basics/, or guides/ anymore.