> ## Documentation Index
> Fetch the complete documentation index at: https://api-reference.scale.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Ingest From Labeling

If you already have:

* Annotation
* SegmentAnnotation
* VideoAnnotation
* Categorization
* PolygonAnnotation
* ImageAnnotation
* DocumentTranscription
* LidarLinking
* LidarAnnotation
* VideoboxAnnotation
* VideoPlaybackAnnotation

projects with Scale, use the [`NucleusClient.create_dataset_from_project`](https://docs.nucleus.scale.com/en/latest/api/nucleus/index.html#nucleus.NucleusClient.create_dataset_from_project) or [`Dataset.ingest_tasks`](https://docs.nucleus.scale.com/en/latest/api/nucleus/index.html#nucleus.Dataset.ingest_tasks) endpoints to import your project or tasks directly into Nucleus.

`NucleusClient.create_dataset_from_project(project_id, last_n_tasks=None, name=None)` creates a new Dataset from a project. Pass your Scale `project_id`; optionally pass `last_n_tasks` to ingest only the most recent N tasks, and `name` to override the Dataset name. By default, the name of your Dataset will be the same as your project's name, and all tasks (both pending and completed) are ingested.

`Dataset.ingest_tasks(task_ids)` ingests specific tasks, given as a list of task IDs, into an existing Dataset. It returns a dict describing the result (`ingested_tasks`, `ignored_tasks` and `pending_tasks`).
