Bases: Protocol[DataId, DataInst]
Minimal interface for retrieving validation examples keyed by opaque ids.
Functions
all_ids() -> Sequence[DataId]
Return the ordered universe of ids currently available. This may change over time.
Source code in gepa/core/data_loader.py
| def all_ids(self) -> Sequence[DataId]:
"""Return the ordered universe of ids currently available. This may change over time."""
...
|
fetch(ids: Sequence[DataId]) -> list[DataInst]
Materialise the payloads corresponding to ids, preserving order.
Source code in gepa/core/data_loader.py
| def fetch(self, ids: Sequence[DataId]) -> list[DataInst]:
"""Materialise the payloads corresponding to `ids`, preserving order."""
...
|
__len__() -> int
Return current number of items in the loader.
Source code in gepa/core/data_loader.py
| def __len__(self) -> int:
"""Return current number of items in the loader."""
...
|