Google Gemini Cloud
Use Gemini's models with your own API Key
Last updated
Was this helpful?
Use Gemini's models with your own API Key
Last updated
Was this helpful?
The Gemini component allows you to integrate Gemini into your flows. You can customize the parameters used by Gemini component, and also specify the context of knowledge that the Gemini component operates on, as well as provide the input query.
The Gemini component UI changes depending on the model selected, as each model has differing available options. You can specify the exact model to run with the "Model" dropdown menu. These models range from Chat and more. See the Parameters table for more information on the available models to use.
The Gemini component has the identifier of opa-X, where X represents the instance number of the Gemini component.
The Gemini component has the following input connections.
From data Loaders/ Data source/Vector DB
This input connection represents the context information for the Gemini model
Must originate from a Data Loader/Data Source or VectorDB component.
From Input
This input connection represents the user query for the Gemini model.
Must originate from a component that generates a text string as output such as a Python or Text Input component.
Credentials
You can specify to use your own Gemini credentials
Model
The list of models displayed depends on the customer's credential.
Prompt
Describes how you want the Gemini model to respond. For example, you can specify the role, manner and rules that Gemini should adhere to. Also mention the component ID to connect the components.
Enable caching
This option determines whether the results of the component are cached. This means that on the next run of the Flow, Gemini will utilize the previous computed component output, as long as the inputs have not changed.
Caching time
Only applicable if the "Enable Caching" option has been enabled. This parameter controls how long Gemini will wait before automatically clearing the cache.
Max token
This parameter controls the tokenthat will send to Gemini system
The Gemini component has the following output connections.
To Output
This output connection contains the text result of the Gemini component.
Can be connected to any component that accepts a string input.