Structured Data / JSON
Last updated
Last updated
Structured data is a first-class citizen in Kiln.
JSON input/output is supported for any task.
You can define input/output schemas for each task you create.
We automatically detect when a AI model doesn't produce output in the correct format.
No data will be saved into the dataset without first passing validation, which keeps the dataset clean.
Our included models are tested for JSON compatibility, and models that don't perform well with structured data will show a warning if you attempt to use them on tasks with structured output.
Our easy-to-use visual schema builder lets you create and use structured schemas. Define your input and output schemas in our UI when creating a task.
You can't edit the input/output schemas after creating a task, as that would invalidate all prior data. Create a new task with your updated schema instead.
For technical users, we support any valid JSON-schema for inputs and output schemas.
JSON schema is more powerful than the visual editor, allowing arrays, nested objects, enums, constraints and more. You can use raw JSON schemas from the Python library, or from the UI (by picking an array type).
We only recommend JSON schema for technical users/developers. It's much more complex than the visual editor.
Errors in the schema will likely result in bugs when running your task.