Skip to main content

Add Data Sources

Cloud has the newest features. Some may not be in a release yet; the newest release is Integration 5.1.0.

A data source loads content from Google Drive or Amazon S3 into a knowledge base, chunking and embedding it using that knowledge base's configuration. A knowledge base can have multiple data sources, each ingesting once or on a recurring schedule.

Prerequisites​

  • A knowledge base. See Create a Knowledge Base.
  • Credentials that can read the target Google Drive folder or Amazon S3 bucket.
  • The Google Drive folder ID, or the Amazon S3 bucket name.
caution

Treat API keys, OAuth client secrets, refresh tokens, and AWS access keys as secrets. Don't place them in source files, documentation, or logs.

Add a data source​

Open the knowledge base's Overview tab and click Add data source. A three-step wizard opens.

Step 1: Name​

Enter a Display name for the data source. The Name field derives an immutable identifier from it.

Name the data source step with Display name and Name fields

Step 2: Data source​

Select a source and enter its connection details:

SourceConnection optionsContent location
Google DriveAPI KEY tab: an API key with access to the Google Drive API. OAUTH tab: Client ID, Client secret, and Refresh token.Folder ID
Amazon S3Access key ID and Secret access keyBucket name

Configure data source step with Google Drive selected on the API KEY tab, showing the API key and Folder ID fields

Configure data source step with Amazon S3 selected, showing the Access key ID, Secret access key, and Bucket name fields

Step 3: Ingestion schedule​

Choose how ingestion runs:

  • Ingest once, now: runs a single ingestion after the data source deploys.
  • Ingest on a schedule, to pick up changes in the source: runs repeatedly. Choose By interval (a number and a unit) or By cron (a raw cron expression), with Advanced settings for further tuning.

Configure ingestion schedule step with Ingest on a schedule selected, By Interval tab, repeating every 1 Day

Click Add data source to create and deploy it.

What's next​

Was this page helpful?