Google / VertexAI Gemini Pro
Vertex AI Gemini Pro is a powerful large language model (LLM) by Google, accessible through their Vertex AI platform. It excels in various tasks like text generation, translation, and code analysis, making it a versatile tool for developers and businesses.
Getting started with Google / VertexAI Gemini Pro LLMs
-
Vertex AI is provided by Google Cloud Platform.Navigate to Google Cloud Platform and signup using google account.
-
Create an Organization and first project. Click on the
APIs and services
from quick access. -
Click on
ENABLE APIS AND SERVICES
-
Search for
Vertex AI API
and click on the search result. -
Now
Enable
the 'Vertex AI API'. -
select
Credentials
🞂Create Credentials
🞂Service Account
. -
Create the
Service Account
as shown below. -
Click on the created Service Account link.
-
Create the
Key
in json format as shown below.
Setting up the Google / VertexAI Gemini Pro connector in Unstract
Now that we have all the required details, we can use it to set up an LLM profile on the Unstract platform. For this:
-
Sign in to the Unstract Platform
-
From the side navigation menu, choose
Settings
🞂LLMs
-
Click on the
New LLM Profile
button. -
From the list of LLMs, choose
VertexAI
. You should see a dialog box where you enter details. -
For
Name
, enter a name for this connector. -
In
Credentials
field, paste in the whole downloaded service account key we copied from the text editor earlier. -
For
Models
field,entergemini-1.5-pro
.For more models refer to Gemini Models. -
For
Max output tokens
,enter8192
. For more models and its token limit refer to Gemini Models. -
For
Project
, enter the Google project name in which the Vertex AI is enabled (or) Check theproject_id
in credentials json. -
Leave
Max Retries
value to its default. -
Click on
Test Connection
and ensure it succeeds. You can finally click onSubmit
and that should create a new LLM Profile for use in your Unstract projects.