Skip to main content
Incubating Status Recently Approved

Overview

Spring AI Playground is a self-hosted web UI that simplifies AI experimentation and testing. It provides Java developers with an intuitive interface for working with large language models (LLMs), vector databases, prompt engineering, and Model Context Protocol (MCP) integrations. Built on Spring AI, it supports leading model providers and includes comprehensive tools for testing retrieval-augmented generation (RAG) workflows and MCP integrations. The goal is to make AI more accessible to developers, helping them quickly prototype Spring AI-based applications with enhanced contextual awareness and external tool capabilities.

Key Features

Chat Playground

Unified chat interface powered by Spring AI’s ChatClient with dynamic RAG and MCP integration

VectorDB Playground

Full RAG flows: upload documents, chunk, embed, search, and inspect retrieval with score details

MCP Playground

Register, test, and invoke Model Context Protocol tools interactively

PWA Support

Progressive Web App for seamless desktop and mobile experience

Multi-Provider

Support for Ollama, OpenAI, and OpenAI-compatible servers

Vaadin UI

Modern, responsive UI built with Vaadin Flow

Playgrounds

Chat Playground

A unified chat interface powered by Spring AI’s ChatClient that can dynamically use configurations from VectorDB and MCP playgrounds, enabling conversations enriched with retrieval and external tools. Chat Playground with MCP

VectorDB Playground

Supports full RAG flows:
  • Upload and manage documents
  • Chunk and embed content
  • Search vector databases
  • Inspect retrieval results with score details
Implemented using Spring AI’s RetrievalAugmentationAdvisor. VectorDB Playground

MCP Playground

Integrates Spring AI’s Model Context Protocol, allowing developers to:
  • Register external tools
  • Test tool invocations interactively
  • Monitor tool execution
MCP Playground

Supported Technologies

  • Ollama (with tool-enabled models)
  • OpenAI (GPT-3.5, GPT-4, etc.)
  • OpenAI-compatible servers (LM Studio, etc.)
  • PostgreSQL with pgvector
  • ChromaDB
  • Milvus
  • Qdrant
  • Redis
  • Other Spring AI supported vector stores
  • STDIO transport
  • SSE (Server-Sent Events) transport
  • Custom tool registration
  • Interactive tool testing

Quick Start

Prerequisites

  • Java 21 or later
  • Ollama running on your machine
  • Docker (optional, but recommended)
# Clone the repository
git clone https://github.com/JM-Lab/spring-ai-playground.git
cd spring-ai-playground

# Build Docker image
./mvnw spring-boot:build-image -Pproduction -DskipTests=true \
  -Dspring-boot.build-image.imageName=jmlab/spring-ai-playground:latest

# Run container
docker run -d -p 8282:8282 --name spring-ai-playground \
  -e SPRING_AI_OLLAMA_BASE_URL=http://host.docker.internal:11434 \
  -v spring-ai-playground:/home \
  --restart unless-stopped \
  jmlab/spring-ai-playground:latest

# Access the application
open http://localhost:8282

Running Locally

./mvnw clean install
./mvnw spring-boot:run

Development Team

  • Jemin Huh - Project maintainer

Upcoming Features

1

Spring AI Agent

Enhanced agent abstractions and patterns
2

Observability

Comprehensive monitoring and tracing
3

Authentication

User authentication and authorization
4

Multimodal Support

Image and audio processing capabilities

Resources

License

This project is licensed under the Apache License 2.0.
I