The AI field in Baserow is a powerful feature that allows you to integrate AI models directly within your workspace, enabling capabilities such as generating creative briefs, summarizing information, and more.
Baserow is model-agnostic, which means that you can use your preferred LLM without being tied to any single LLM. Instead, Baserow gives you the freedom and flexibility to choose and switch AI models at any time.
In this tutorial, we’ll walk you through the steps to configure and set up the AI field, ensuring you can leverage these advanced functionalities seamlessly. We’ll cover the following steps:
To complete this tutorial, you’ll need the following:
Let’s dive in!
Log in to your existing Baserow account or create a new account if you don’t have one already.
Once you log in, you can access the dashboard to add workspaces and databases. You can work with an existing workspace, database, or table, or set up a new workspace from scratch.
Navigate to the table where you want to enable the AI field.
If you’re using Baserow Cloud (baserow.io), the GPT-3.5 model is available for free with no usage limitations. For Baserow Self-Hosted, you’ll need to provide your own OpenAI API key.
For Baserow Cloud:
Leaving any configuration value blank will default back to the global instance settings.
For Baserow Self-Hosted:
You need to add your OpenAI API key to use the AI field type. API keys are configured at the workspace or instance level.
gpt-3.5-turbo,gpt-4-turbo-preview
) to enable those specific models.Alternatively, if you prefer to configure API keys at the instance level, you can do so via environment variables. This is done by setting the necessary environment variables in your server configuration file.
In the workspace, open the table where you want to add the AI field.
If the AI field is not working, ensure that your API key is correctly configured and that you have selected a supported model.
Click on the “Prompt” field in the context menu. A new window will appear, showing a list of fields in your table.
Type your desired prompt. This prompt will guide the AI in generating content.
As you type, select the relevant fields from your table that you want to use in the prompt.
Once you have configured your prompt, click the blue Create button.
The AI field will now be added to your table. Each cell in this field will display a “Generate” button.
To use the AI field, click the “Generate” button in the cell where you want the AI to start generating content based on your prompt.
By following these steps, you can enable and configure the AI field in Baserow, whether you are using Baserow cloud or Baserow self-hosted. This functionality opens up new possibilities for automating tasks, generating content, and enhancing productivity within your workspace. Experiment with different prompts and models to fully leverage the power of generative AI in your Baserow tables.
The following articles may also be helpful:
In case you’ve run into an issue while following this tutorial, feel free to reach out to ask for help in the Baserow community.