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- 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": "
|
| 45 |
-
"description": "
|
| 46 |
-
"
|
| 47 |
-
"
|
| 48 |
-
|
| 49 |
-
"
|
| 50 |
-
"
|
| 51 |
-
|
| 52 |
-
|
| 53 |
-
|
| 54 |
-
|
| 55 |
-
|
| 56 |
-
|
| 57 |
-
|
| 58 |
-
|
| 59 |
-
|
| 60 |
-
|
| 61 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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 |
}
|