# Creating Datasets in the UI

## Generate from a database connection [Permalink for this section](/content/docs/integrations/guides/datasets/generate-datasets-ui#generate-from-a-database-connection/index.html)

Fides can generate datasets by connecting to datastores and interpreting the data structure:

1. Navigate to **Manage datasets**.
2. Click **Create new dataset**.
3. Click **Connect to a database**.
4. Paste the _database connection_ string into the `Database URL` field.
5. Click **Generate dataset**.

For help building the _database connection_ string, please see the [SQLAlchemy documentation (opens in a new tab)](https://docs.sqlalchemy.org/en/20/core/engines.html#database-urls).

> PostgreSQL example: `postgresql://<user>:<password>@<hostname>:<port>/<database>`

## Upload a Dataset YAML [Permalink for this section](/content/docs/integrations/guides/datasets/generate-datasets-ui#upload-a-dataset-yaml/index.html)

You can manually add a dataset by uploading a valid YAML dataset definition in the dataset editor from the Fides Admin UI.  
To add a new dataset using the _Dataset Editor_:

1. Navigate to **Manage datasets**.
2. Click **\+ Add dataset**.
3. Click **Upload a Dataset YAML**.
4. Enter the dataset configuration into the editor.
5. Click **Create dataset**.

Once completed, your new dataset will be displayed in Fides identified by the **name** and **fides_key** specified in your dataset YAML.

[Overview](/content/docs/integrations/guides/datasets/overview "Overview"/index.html) [Creating Datasets via CLI](/content/docs/integrations/guides/datasets/generate-datasets-cli "Creating Datasets via CLI"/index.html)
