Generative AI
The Generative AI application lets you query large language models using data from your Keboola project. Five providers are available:
- OpenAI
- Azure OpenAI
- Anthropic
- Hugging Face — also needs an Endpoint URL on each row
- Google — available on the US stack only
Create New Configuration
Section titled “Create New Configuration”Set up a new configuration for the Generative AI application.
Select your provider in the AI Service Provider field, then authenticate.
OpenAI Service Authentication
Section titled “OpenAI Service Authentication”- Obtain your API key from the OpenAI platform settings.
- Enter your API key into the API Key field within the Data Source Configuration window.
Azure OpenAI Service Authentication
Section titled “Azure OpenAI Service Authentication”- Obtain your API key from your Azure OpenAI resource — see Create and deploy an Azure OpenAI resource, which covers retrieving the key and endpoint.
- Enter your API key into the API Key field within the Data Source Configuration window.
- Fill in API Base, which should resemble
https://YOUR_RESOURCE_NAME.openai.azure.com/. - Fill in Deployment ID — the name you gave the model deployment.
- Fill in API Version. For the available versions, see the Azure OpenAI REST API reference.
Upon completing these steps, click the Add Row button and provide a name for the row configuration (this is solely for identification).
Row Configuration
Section titled “Row Configuration”- Click the List models button to view the available models. Subsequently, choose your desired model in the Model field.
- You can either stick with the default model settings or customize them in the Model Options section. Maximum token spend (Optional) caps what a single run may consume.
- In the Prompt Templates section, pick a Prompt Template to load it, then copy it into the Prompt field as a starting point.
- The Prompt field determines the prompt and data input format. Use the placeholder [[INPUT_COLUMN]] to reference an input column. Ensure your input table includes the mentioned column.
- In the Destination section, select a name for your Storage table. Optionally, you can configure incremental load settings. If primary keys are designated, rows in the destination table will be updated. Without primary keys, new rows will be added.