KimKiHyun0206 / Gemini

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Gemini in Java with Vertex AI and LangChain4j

Note

This is the code for Gemini in Java with Vertex AI and LangChain4j codelab geared towards Java developers to discover Gemini and its open-source variant Gemma Large Language Model by Google using LangChain4j framework.

Prerequisites

The code examples have been tested on the following environment:

  • Java 21
  • Gradle 8.6

In order to run these examples, you need to have a Google Cloud account and project ready.

Before running the examples, you'll need to set up two environment variables:

export PROJECT_ID=YOUR_PROJECT_ID
export LOCATION=us-central1

Warning

Be sure to update the project ID and location to match your project.

Create the Gradle wrapper:

gradle wrapper

Samples

These are the list of samples for different use cases:


This is not an official Google product.

About

License:Apache License 2.0


Languages

Language:Java 100.0%