Add data to a generator
While a generator has the New status (created but training has not started), you can add tabular data to it. And you can add data from multiple sources:
- file upload (CSV, Parquet)
- databases
- cloud storage buckets
Note You cannot add data to already trained generators.
Add via file upload
From the web application, open an untrained generator to add tables to it.
Steps
-
On the Generators page, click + New generator.
Step result: You now have a generator object created in the MOSTLY AI database and the generator is listed on the Generators page.
The Add data window appears prompting you to add tabular data for your generator to train on.
-
Click Upload file.
-
Under Upload file, drag a local file onto the box or click the box to browse your local file system.
💡If you need a dataset, download one from the Datasets page.
-
(Optional) For Table name, change the default name for the table.
MOSTLY AI captures the table name from the file provided.
Info: The name specified here will appear in the list of tables added to the generator. Also, this table name appears in each synthetic dataset created with this generator. -
Click Proceed.
Add data from a database
Use a source database connector to add tables to generators.
From the web application, open an untrained generator to add tables to it.
Steps
- In the generator, click Add data on the Data configuration page.
- Select Connect to source.
- Select a database connector.
📑
If you do not have one, click + New connector to create a database connector. When done, the app brings you back to select a connector.
- Select a schema and a table.
💡
You can search for your schemas and tables when you type in the Select schema and Select table boxes.
- Click Proceed.
Result
The database table is now added to your generator.
Add data from a cloud bucket
Use a source cloud storage connector to add tables to generators.
Steps
- In an untrained generator, click Add data.
- Click Connect to source.
- Select a cloud storage connector.
📑
If you do not have one, click + New connector to create a cloud storage connector. When done, the app brings you back to select a connector.
- Define the bucket path to your table, where Table path is the folder path, and Table name is the filename.
- Click Proceed.