Skip to content

Gemini Function Calling in Vertex AI. Designed using Java 21, Spring Boot, and LangChain4J, this cutting-edge service integrates Gemini Call Function with external APIs to deliver seamless search capabilities for flights, hotels, and attractions

License

Notifications You must be signed in to change notification settings

extrawest/gemini-function-calling-spring-ai-showcase

Repository files navigation

Gemini Function Calling in Vertex AI - Java Spring AI Showcase

Maintenance Maintainer Ask Me Anything ! License GitHub release

Designed using Java 21, Spring Boot, and LangChain4J, this cutting-edge service integrates Gemini Call Function with external APIs to deliver seamless search capabilities for flights, hotels, and attractions. By leveraging advanced AI, it transforms user queries into personalized travel recommendations, streamlining trip planning like never before.

screen-capture_1.1.mp4

Key Features

  • AI-Powered Recommendations: Provide personalized flights, hotels, and attractions recommendations based on user queries.
  • LangChain4j-Powered Insights: Leverage LangChain4j for natural language understanding and effective query handling, ensuring accurate and contextually relevant responses.
  • Spring Boot Scalability: Built on Spring Boot 3.3.3, ensuring a reliable and scalable backend architecture for seamless performance.
  • Dynamic Search and Recommendations: Allow users to search for flights, hotels, attractions and receive personalized recommendations based on search results or user preferences.

Tech Stack

  • Java 21
  • SpringBoot 3.3.3: Backend framework for building fast and scalable applications.
  • Gemini in Vertex AI: Provides models for describe image. Model: gemini-1.5-flash-001
  • Langchain4j: Supercharge your Java application with the power of LLMs.
  • Vaadin Framework: Vaadin is a complete platform that works out of the box. It includes web frameworks, UI components

Running On Local Machine (Linux):

  1. Set up the following environment variables.

    • export PROJECT_ID=your_project_id;
    • export LOCATION=your_location;
    • export FLIGHT_API_KEY=api_key;
    • export HOTEL_API_KEY=api_key;
    • export ATTRACTION_API_KEY=api_key;
  2. Run the app by running Application.java in your IDE or mvn in the command line.

Contributing

Feel free to open issues or submit pull requests to improve the project. Contributions are welcome!

About

Gemini Function Calling in Vertex AI. Designed using Java 21, Spring Boot, and LangChain4J, this cutting-edge service integrates Gemini Call Function with external APIs to deliver seamless search capabilities for flights, hotels, and attractions

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages