Spring Boot 3.5.6 + Spring AI Backend Architecture

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/12

flashcard set

Earn XP

Description and Tags

Vocabulary flashcards covering the architectural highlights, endpoints, services, and configuration options of the Spring Boot 3.5.6 and Spring AI (Gemini Provider) backend service.

13 Terms

1
New cards

gemini-2.5-flash and text-embedding-004

The Google GenAI models integrated via Spring AI for chat completion and semantic text embeddings, respectively.

2
New cards

Tool Calling (Function Calling)

A mechanism where Google Gemini autonomously detects when external real-time data is needed and dynamically executes Java service methods (such as WeatherToolService and CurrencyToolService) during chat completion.

3
New cards

SimpleVectorStore

The in-memory semantic vector store used in Spring AI to index document embeddings and perform similarity searches for RAG.

4
New cards

Single Service Layer Pattern

An architectural decision where direct, concrete @Service classes reside in a single service package without separate interface and implementation (ServiceImpl) classes.

5
New cards

MapStruct 1.6.3

A compile-time object-mapping tool used to generate type-safe mappings between JPA Entities and Data Transfer Objects (DTOs).

6
New cards

JJWT 0.12.6

The Java JWT library used by JwtService to generate, sign, and validate stateless Bearer tokens for authentication.

7
New cards

/api/v1/ai/rag/ingest

A protected REST POST endpoint used to ingest and index custom documents and metadata into the VectorStore.

8
New cards

/api/v1/ai/rag/ask

A REST endpoint (POST/GET) that retrieves relevant chunks from the VectorStore and provides context-augmented question answering through Gemini.

9
New cards

WeatherToolService

A concrete Java service annotated with @Tool that exposes methods like getCurrentWeather to provide live weather lookups when invoked by Gemini.

10
New cards

CurrencyToolService

A concrete Java service annotated with @Tool that exposes the convertCurrency method, allowing Gemini to autonomously perform foreign exchange conversions.

11
New cards

gemini_ai_db

The default MySQL database created on port 3306 to store application tables such as users.

12
New cards

GEMINI_API_KEY

The environment variable used to supply the Google AI Studio API key required for authenticating with Gemini services.

13
New cards

GlobalExceptionHandler

A centralized @RestControllerAdvice class that intercepts runtime exceptions across controllers and formats them into a standardized ErrorResponse envelope.