Skip to content

Latest commit

 

History

History
32 lines (25 loc) · 1.28 KB

README.md

File metadata and controls

32 lines (25 loc) · 1.28 KB

Gemini Chatbot using Spring AI

This is a chatbot presented during my talk in Google I/O Extended Manila 2024.

Session Title

Java in AI: Implementation of Google Vertex AI using Spring AI and Hilla

Dynamic Diagram

Gemini Chatbot Dynamic Diagram

Sequence

  1. User send credentials via Google Cloud Shell
  2. Google Cloud Shell respond back if the authentication is successful
  3. User send a message
  4. Chatbot verifies if it can connect to user's Google Cloud project
  5. Return the verification result
  6. Call the Chat endpoint
  7. Call the Chat API of Google Cloud via HTTP
  8. Google Cloud Java Chat API uses Gemini Model
  9. Gemini Model responds back based on the user message
  10. Google Cloud Java SDK return the model response via HTTP
  11. Spring AI return the model response with modification (if any, based on business logic)
  12. The Chatbot shows the message

Running locally