Generate Dataset Plan
Generate a structured dataset generation plan (taxonomy, sample schema, and distribution) from a natural language prompt using the Knowledgator TypeScript SDK.
Example Usage
import { createClient } from '@knowledgator/typescript-sdk';
const kg = createClient('YOUR_API_KEY');
const plan = await kg.datasets.generatePlan({
prompt: "Create an NER dataset for financial SEC filings extracting revenue, operating income, and dates"
});
console.log('Plan output:', plan);
Expected Output
{
"status": "success",
"plan": {
"domain": "Finance / Regulatory",
"suggested_types": [
"revenue",
"operating_income",
"reporting_date"
],
"distribution": {
"revenue": 0.4,
"operating_income": 0.35,
"reporting_date": 0.25
},
"guidelines": "Ensure numerical entities include unit context."
}
}