Skip to content

Commit

Permalink
Remove target_workspace and target_name from arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
davidberenstein1957 committed Jul 22, 2024
1 parent bca428e commit 1a3b36f
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions argilla/docs/how_to_guides/import_export.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ In Argilla, you can import/export two main components of a dataset:
```python
rg.Dataset.from_hub(
repo_id="<my_org>/<my_dataset>",
workspace="<my_argilla_workspace>"
name="<my_argilla_dataset>",
workspace="<my_argilla_workspace>",
client=rg.Client(),
with_records=True
)
Expand All @@ -43,8 +44,8 @@ In Argilla, you can import/export two main components of a dataset:
```python
rg.Dataset.from_disk(
path="<directory>/<file>",
target_workspace=None,
target_name=None,
name="<my_argilla_dataset>",
workspace="<my_argilla_workspace>"
)
```
=== "`rg.Dataset.records.to_datasets()`"
Expand Down Expand Up @@ -163,7 +164,7 @@ dataset = rg.Dataset.from_disk(path="path/to/dataset")
You can also specify the workspace and name of the dataset when loading it from the disk.

```python
dataset = rg.Dataset.from_disk(path="path/to/dataset", target_workspace=workspace, target_name="my_dataset")
dataset = rg.Dataset.from_disk(path="path/to/dataset", workspace=workspace, name="my_dataset")
```

## Exporting and importing records
Expand Down

0 comments on commit 1a3b36f

Please sign in to comment.