Overview
Before generating synthetic goldens, you need to connect a data source in Project Settings > Data Sources. Each connector requires credentials from the source platform. This page walks you through the setup for every supported source type.
Google Drive
Slack
Notion
SharePoint
Setup Credentials
2Enable the Google Drive API
Navigate to APIs & Services > Library, search for “Google Drive API”, and click Enable.
3Create a Service Account
Go to IAM & Admin > Service Accounts > Create Service Account. Give it a name and finish the creation wizard.
4Download the JSON Key
Click on the service account you just created, go to the Keys tab, then Add Key > Create new key > JSON. A file will be downloaded to your machine. It looks like this:
Prepare Your Data
1Create a Folder in Google Drive
Create a new folder in Google Drive and copy the folder URL. It looks like:
2Share the Folder with the Service Account
Right-click the folder > Share, and add the client_email from the downloaded JSON key file (e.g. [email protected]). Give it Viewer access.
3Add Files
Place .txt, .pdf, or .docx files with meaningful text content in the folder. Each file should contain at least a few paragraphs so that chunking produces enough context for golden generation.
Connect in Confident AI
1Add the Data Source
Go to Project Settings > Data Sources > Add and fill in:
2Create a Generation Config
Navigate to Datasets > Automations > Generate from Data Source > Add generation config and configure:
3Generate
Click Generate to start the synthetic golden generation process.