Tag
Gemini
6 posts tagged Gemini
- 13 min read
RAG Basics in Spring AI: Retrieval, the Assembly Trap, and When Retrieval Lies
Building retrieval-augmented generation in Spring AI with Gemini and an in-memory vector store. The four dependencies nobody warns you about, the embedding auth gotcha, and a real example of similarity search ranking the wrong document first.
Java · Spring AI · Gemini · RAG
- 14 min read
Spring AI Provider Portability: Running One App on Gemini and OpenRouter
How portable is Spring AI really? I ran the same triager code against Gemini and OpenRouter to find out where the abstraction holds and where it leaks. Maven profiles, the ambiguous-bean trap, and the difference between two kinds of portability.
Java · Spring AI · Gemini · OpenRouter
- 14 min read
Spring AI Tool Calling: Let Gemini Query Your Database in Java
How to give Gemini real tools with Spring AI's @Tool annotation, backed by an actual database. Two tools, one model deciding which to call, and the schema-mismatch gotcha that shows up the moment you test it for real.
Java · Spring AI · Gemini · Tool Calling
- 17 min read
Build an AI Agent in Python from Scratch with Gemini and Tavily (2026)
Step-by-step Python tutorial: build a fact-checking AI agent in ~150 lines using Gemini 2.5 Flash function calling and the Tavily Search API. No LangChain, no LangGraph. Working code on GitHub.
Python · AI Agents · Gemini · Tavily
- 14 min read
Spring AI Structured Output: Typed Java Records from Gemini in One Line
How Spring AI's .entity() method turns Gemini's text responses into typed Java records. No manual JSON parsing, no schema by hand, no retry loops. Working code, real schema output, and the nested-record gotcha.
Java · Spring AI · Gemini · Structured Output
- 11 min read
Spring AI + Gemini Tutorial: Your First API Call in Java (2026)
Build a working Spring AI integration with Google's Gemini API in under 30 lines of Java. Free tier, no credit card, real gotchas included.
Java · Spring AI · Gemini · Spring Boot