ExperimentalThe parameters for appending examples
A promise that resolves to the dataset ID and version ID
const { datasetId, versionId } = 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
},
{
id: "my-stable-id", // Stable ID for referencing this example later
input: { question: "What is a transformer?" },
output: { answer: "A transformer is..." },
}
]
});
Append examples to an existing dataset.
this interface may change in the future