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.

Step 2: Data source
Select a source and enter its connection details:
| Source | Connection options | Content location |
|---|---|---|
| Google Drive | API KEY tab: an API key with access to the Google Drive API. OAUTH tab: Client ID, Client secret, and Refresh token. | Folder ID |
| Amazon S3 | Access key ID and Secret access key | Bucket name |


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.

Click Add data source to create and deploy it.
What's next
- Manage a Knowledge Base — edit configuration, connect an application, and test retrieval.
Was this page helpful?