GenAI Toolkit is a private beta according to the Algolia Terms of Service (“Beta Services”).
Before you begin
To create a data source, you need the GenAI Toolkit feature in your Algolia plan, and an index with the product data you want to use for your GenAI applications.Manage data sources with the dashboard
Create new data sources
- Go to the Algolia dashboard and select your Algolia .
- On the left sidebar, select Generative AI.
- Select Generative AI in the Algolia dashboard.
- On the left sidebar, select Data Sources.
-
Click Create New Data Source.

-
Enter a name for your data source. This will be used to easily identify your data sources later.

-
Select one of your Algolia indices.

-
You can apply additional
filtersto your selected index to refine and enhance the relevance of your data source. You can view the changes in the preview section.
-
Once you are satisfied with your configuration, click Save Data Source.

Edit data sources
You can edit the details of your data sources directly in the Algolia dashboard. Start by selecting a data source from the table.
Duplicate data sources
You can use one data source as a template for creating a new one. From the data source table, choose your base data source, click More and select Duplicate.
Delete data sources
To delete a data source in the dashboard, choose the data source you want to delete from the data source table, click More and select Delete.
Manage data sources with the GenAI Toolkit API
You can manage your data sources with the GenAI Toolkit API.Create a new data source
You need an API Key with the following ACLs:addObject, settings, editSettings.
Command line
Parameters
The name used to identify the data source.
The Algolia index used for retrieving contextual information.
Filters used for further customizing the retrieval.Example:
JSON
A unique identifier used for storing the data source.
If not provided, the API will automatically generate a new one.
Returns
In case of a success, the response is (HTTP status code 200):JSON
JSON
Update a data source
You need an API Key with the following ACLs:addObject, search.
Command line
Parameters
The ID of the data source to be updated.
Filters used for further customizing the retrieval.Example:
JSON
The name used to identify the data source.
The Algolia index used for retrieving contextual information.
Returns
In case of a success, the response is (HTTP status code 200):JSON
JSON
Delete data sources
You need an API Key with the following ACLs:deleteObject, search.
Command line
Parameters
List of IDs of the data sources to be deleted.
Whether to delete responses linked to this data source.
Returns
In case of a success, the response is (HTTP status code 200):JSON
JSON