ExperimentalThe parameters for appending examples
A promise that resolves to the dataset ID
// Append examples with span links to an existing dataset
const { datasetId } = await appendDatasetExamples({
dataset: { datasetName: "qa-dataset" },
examples: [
{
input: { question: "What is deep learning?" },
output: { answer: "Deep learning is..." },
spanId: "span123abc" // Links to the source span
}
]
});
Append examples to an existing dataset.
this interface may change in the future