File size: 835 Bytes
ff0ca4d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://huggingface.co/datasets/cmdr-chara/utdr-dataset-toolkit/raw/main/schemas/chat-example.schema.json",
  "title": "Public synthetic chat example",
  "type": "object",
  "additionalProperties": false,
  "required": ["id", "synthetic", "task", "messages"],
  "properties": {
    "id": {"type": "string", "minLength": 1},
    "synthetic": {"const": true},
    "task": {"type": "string", "minLength": 1},
    "messages": {
      "type": "array",
      "minItems": 3,
      "items": {
        "type": "object",
        "additionalProperties": false,
        "required": ["role", "content"],
        "properties": {
          "role": {"enum": ["system", "user", "assistant"]},
          "content": {"type": "string", "minLength": 1}
        }
      }
    }
  }
}