Keys connect content with context
How keys, nesting, and optional fields organize records that connect AI content with labels and metadata without removing the content's preparation needs. · foundational
Semi-structured data organizes records with named fields and relationships. JSON is a common example. A key names a field, and its value holds information: in {"text":"Delivery was quick","label":"positive"}, the keys connect a customer comment with its sentiment label.
Nesting groups related information inside a record. Consider {"id":"r1","text":"Delivery was quick","label":"positive","metadata":{"source":"review","language":"en"},"tags":["delivery","speed"]}. The nested metadata object groups details about the comment. The tags array holds a list of values. To find the language, read inside metadata, then look for language.
For AI, the content is the material being analyzed, the label can provide the desired answer for training, and metadata describes context such as source or language. Keeping them together helps preserve which label and context belong to each content item.