Datasets
Why Datasets Matter
Creating Datasets
interactiveai.create_dataset(
name="test-dataset",
description="Question-answering test cases for model evaluation",
metadata={
"author": "evaluation-team",
"purpose": "regression-testing",
"version": "1.0"
}
)interactiveai.create_dataset(
name="validated-dataset",
description="Dataset with schema validation",
metadata={
"author": "evaluation-team",
"purpose": "regression-testing",
"version": "1.0"
},
input_schema={
"type": "object",
"properties": {
"prompt": {"type": "string"},
"context": {"type": "string"}
},
"required": ["prompt"]
},
expected_output_schema={
"type": "object",
"properties": {
"answer": {"type": "string"}
},
"required": ["answer"]
}
)Adding Items to a Dataset
Translating Content

Last updated
Was this helpful?




