Google Gemini
This documentation describes the integration of MindsDB with Google Gemini, a generative artificial intelligence model developed by Google. The integration allows for the deployment of Google Gemini models within MindsDB, providing the models with access to data from various data sources.
Prerequisites
Before proceeding, ensure the following prerequisites are met:
- Install MindsDB locally via Docker or Docker Desktop.
- To use Google Gemini within MindsDB, install the required dependencies following this instruction.
- Obtain the Google Gemini API key required to deploy and use Google Gemini models within MindsDB. Follow the instructions for obtaining the API key.
Setup
Create an AI engine from the Google Gemini handler.
Create a model using google_gemini_engine
as an engine.
Usage
The following usage examples utilize google_gemini_engine
to create a model with the CREATE MODEL
statement.
Create a model to generate text completions with the Gemini Pro model for your existing text data.
Query the model to get predictions.
Alternatively, you can query for batch predictions:
Next Steps
Go to the Use Cases section to see more examples.
Was this page helpful?