relevanceai.utils.migration.migrate#

Code for migrating datasets

Module Contents#

relevanceai.utils.migration.migrate.migrate_dataset(old_token: str, new_token: str, dataset_id: str, new_dataset_id: Optional[str] = None, chunksize: Optional[int] = None, filters: list = None, show_progress_bar: bool = True, max_workers: int = 1)#

Migrate dataset

Parameters
  • (str) (dataset_id) –

  • (str)

  • (str)

  • (Optional[str] (new_dataset_id) –

  • optional) (_description_. Defaults to 20.) –

  • (int (chunksize) –

  • optional)

Example

from relevanceai.migration import migrate
migrate_dataset(
    old_token="...",
    new_token="...",
    dataset_id="sample_dataset",
    new_dataset_id="new_sample_dataset")