# Adding data sources to knowledge bases

Add data sources to knowledge bases for use in assistants.

You can add a data source while creating a knowledge base. You can also add additional data sources after you create a knowledge base.

You must index files after you add them to a knowledge base. For more information, see [Indexing knowledge base data sources](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/QlikAnswers/indexing-knowledge-bases.htm).

## Connecting to data sources with existing connections

Do the following:

1. In Summary, click Add files &gt; Use data connection.

2. Select a connection and click Next.

3. Select the files you want to use manually or by using dynamic rules.

4. Click Select.

## Adding existing files from the catalog

Do the following:

1. In Summary, click Add files.

2. Click Choose from catalog.

3. Select your files and click Select.

## Importing files

Do the following:

1. In Summary, click Add files.

2. Click Browse and upload.

3. Drag and drop your data files into the dialog.

   Alternatively, click Browse and navigate to your data files.

4. Select a destination space for the files.

5. Click Upload.