# Data sources

Upload and list knowledge-base data sources, preview candidates, add sources, update governance settings, or delete a source. Use the required knowledge-base and data-source identifiers on the selected action page.

## Choose a task

| Task | Page | Description |
| --- | --- | --- |
| Upload a knowledge-base source file | [Upload local files](../upload-local-file.md) | Save a local source file; upload success does not mean the content is retrievable. |
| Stage files for a new knowledge base | [Upload local files before creation](../upload-local-file-before-creation.md) | Upload a file before creation, then bind its ID as a `local_file` source. |
| Inspect added sources and their status | [Query data source list](../list-data-sources.md) | Paginated query of data sources and their processing status in the knowledge base. |
| Preview sources before adding them | [Preview the data source to be added](../preview-data-sources.md) | Preview the number of deduplicated files and tables before selecting a source by database or volume. |
| Preview sources before creation | [Preview the data source when created](../preview-initial-data-sources.md) | Preview file and table counts without creating a knowledge base or processing tasks. |
| Check for duplicate sources | [Check if the data source has been added](../check-data-sources-exist.md) | Checks whether the requested catalog file and table already exist in the knowledge base as a data source. |
| Append knowledge-base sources | [Add data source](../add-data-sources.md) | Append sources to a knowledge base; request success does not mean parsing or indexing is complete. |
| Repair legacy source records | [Complete the relationship between historical data sources](../backfill-legacy-data-sources.md) | Repair legacy management records only when requested, without re-uploading or re-importing data. |
| Change source governance settings | [Update data source management settings](../update-data-source-governance.md) | Change tags, expiration, or enabled state, subject to source-specific settings and prerequisites. |
| Remove a knowledge-base source | [Delete data source](../delete-data-source.md) | Removes a source from the knowledge base; the original Catalog table or file is not deleted. |

```{toctree}
:hidden:
:maxdepth: 1

Upload local files <../upload-local-file>
Upload local files before creation <../upload-local-file-before-creation>
List data sources <../list-data-sources>
Preview data sources to add <../preview-data-sources>
Preview data sources before creation <../preview-initial-data-sources>
Check whether a data source has been added <../check-data-sources-exist>
Add data sources <../add-data-sources>
Backfill knowledge base data-source records <../backfill-legacy-data-sources>
Update data-source governance settings <../update-data-source-governance>
Delete a data source <../delete-data-source>
```
