Package dev.braintrust.eval
Interface Dataset<INPUT,OUTPUT>
public interface Dataset<INPUT,OUTPUT>
Datasets define the cases for evals. This interface provides a means of iterating through all
cases of a particular dataset.
The most common implementations are in-memory datasets, and datasets fetched from the Braintrust API.
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionid()static <INPUT,OUTPUT>
Dataset<INPUT,OUTPUT> of(DatasetCase<INPUT, OUTPUT>... cases) Create an in-memory Dataset containing the provided cases.version()
-
Method Details
-
openCursor
Dataset.Cursor<DatasetCase<INPUT,OUTPUT>> openCursor() -
id
String id() -
version
String version() -
of
Create an in-memory Dataset containing the provided cases.
-