Quarkus extension integrates with Gemini to build a chatbot
Understand this story
Developer loicmathieu has released a Quarkus extension for accessing Google Generative AI, and wrote a tutorial based on it demonstrating how to build a chatbot. The tutorial injects a Client object into a REST endpoint, calls the gemini-3.8-flash model, and implements a chatbot that can be invoked via cURL. The initial version had no memory; it was then changed to use chat sessions to save context, so that multi-turn conversations can remember user information. The extension also supports features such as RAG, multimodal completion, and tool calling.
AI overview based on source reports · Updated 2 hr ago
Coverage timeline
Follow the coverage to explore different perspectives.
- Hacker News AICreate a Chatbot with Google Generative AI and Quarkus
The article shows how to build a chatbot in Quarkus using the quarkus-google-cloud-genai extension, which lets you inject a Client to call the Gemini model from a REST endpoint at /chat. It starts with a stateless endpoint using a system instruction and the "gemini-3.8-flash" model, then adds a chat session via client.chats.create so the bot retains conversation memory, noting that a real application would use one persistently stored session per user. The project code is available on GitHub at quarkus-gen-ai.
Activity for this story
Not enough continuous observations to show a trend yet.