Slice.items_and_annotations() -> List[ Dict[str, Union[ DatasetItem, Dict[str, List[Annotation]]] ] ]
This endpoint exports all DatasetItems and associated Annotations of a Slice for use with model training.
In order to speed up the export, the following Annotation attributes are not included in the payload:
- Annotation IDs
- Annotation-level metadata
- Reference IDs for annotations (since they are pulled down for the DatasetItem already)
This endpoint will time out for large datasets or slices (~100k items). We recommend using the paginated Export Slice endpoint instead.