1/12
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.
gemini-2.5-flash and text-embedding-004
The Google GenAI models integrated via Spring AI for chat completion and semantic text embeddings, respectively.
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.
SimpleVectorStore
The in-memory semantic vector store used in Spring AI to index document embeddings and perform similarity searches for RAG.
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.
MapStruct 1.6.3
A compile-time object-mapping tool used to generate type-safe mappings between JPA Entities and Data Transfer Objects (DTOs).
JJWT 0.12.6
The Java JWT library used by JwtService to generate, sign, and validate stateless Bearer tokens for authentication.
/api/v1/ai/rag/ingest
A protected REST POST endpoint used to ingest and index custom documents and metadata into the VectorStore.
/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.
WeatherToolService
A concrete Java service annotated with @Tool that exposes methods like getCurrentWeather to provide live weather lookups when invoked by Gemini.
CurrencyToolService
A concrete Java service annotated with @Tool that exposes the convertCurrency method, allowing Gemini to autonomously perform foreign exchange conversions.
gemini_ai_db
The default MySQL database created on port 3306 to store application tables such as users.
GEMINI_API_KEY
The environment variable used to supply the Google AI Studio API key required for authenticating with Gemini services.
GlobalExceptionHandler
A centralized @RestControllerAdvice class that intercepts runtime exceptions across controllers and formats them into a standardized ErrorResponse envelope.