Hacker News AI· loicmathieu·· 2 hr agoAI score20
Create a Chatbot with Google Generative AI and Quarkus
Create a Chatbot with Google Generative AI and Quarkus
AI summary
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.
Source: Hacker News AI · loicmathieu.fr