bhavnicksm commited on
Commit
f3843fe
·
1 Parent(s): 6b5971b

Refactor RecursiveRules configuration in JSON schema to use an object structure with levels array for RecursiveChunker settings.

Browse files
Files changed (1) hide show
  1. v1.schema.json +23 -18
v1.schema.json CHANGED
@@ -41,24 +41,29 @@
41
  "description": "How to include delimiters"
42
  },
43
  "recursive_rules": {
44
- "type": "array",
45
- "description": "RecursiveLevel configurations for RecursiveChunker",
46
- "items": {
47
- "type": "object",
48
- "properties": {
49
- "delimiters": {
50
- "oneOf": [
51
- { "type": "string" },
52
- { "type": "array", "items": { "type": "string" } },
53
- { "type": "null" }
54
- ]
55
- },
56
- "whitespace": {
57
- "type": "boolean"
58
- },
59
- "include_delim": {
60
- "type": "string",
61
- "enum": ["prev", "next", null]
 
 
 
 
 
62
  }
63
  }
64
  }
 
41
  "description": "How to include delimiters"
42
  },
43
  "recursive_rules": {
44
+ "type": "object",
45
+ "description": "RecursiveRules configurations for RecursiveChunker",
46
+ "properties": {
47
+ "levels": {
48
+ "type": "array",
49
+ "items": {
50
+ "type": "object",
51
+ "properties": {
52
+ "delimiters": {
53
+ "oneOf": [
54
+ { "type": "string" },
55
+ { "type": "array", "items": { "type": "string" } },
56
+ { "type": "null" }
57
+ ]
58
+ },
59
+ "whitespace": {
60
+ "type": "boolean"
61
+ },
62
+ "include_delim": {
63
+ "type": "string",
64
+ "enum": ["prev", "next", null]
65
+ }
66
+ }
67
  }
68
  }
69
  }