Skip to main content

aip_sdk.iter_ground_truth

aip_sdk.iter_ground_truth(version_id: str, *, page_size: int = 500, client: APIClient | None = None) -> Iterator[TraceGroundTruthRow]

Iterate every annotated identifier on a dataset version.

Pages are fetched lazily as the iterator is consumed, so no page is held beyond the rows yielded from it. This bounds each response, not the platform's own read — the artifact is decoded whole to serve any page, and the upload size limit is what keeps that bounded.

Parameters

  • version_id str: Dataset version to read.
  • page_size int: Identifiers to fetch per request (1 to MAX_GROUND_TRUTH_ROWS_PER_PAGE). Affects only request granularity.
  • client APIClient | None: Optional API client.

Yields

Raises