Skip to content

Commit 7089db0

Browse files
committed
fix: add overlap args
In order to work from the SDK, the new chunking parameters need to appear in the `openapi.json` here.
1 parent 023307f commit 7089db0

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

openapi.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,18 @@
214214
"description": "If chunking strategy is set, cut off new sections after reaching a length of n chars (hard max). Default: 1500",
215215
"example": 1500
216216
},
217+
"overlap": {
218+
"type": "integer",
219+
"title": "Intra-chunk overlap",
220+
"description": "A prefix of this many trailing characters from prior text-split chunk is applied to second and later chunks formed from oversized elements by text-splitting. Default: None",
221+
"example": 25
222+
},
223+
"overlap_all": {
224+
"type": "bool",
225+
"title": "Inter-chunk overlap",
226+
"description": "When True, overlap is also applied to 'normal' chunks formed by combining whole elements. Use with caution as this can introduce noise into otherwise clean semantic units. Default: None",
227+
"example": 1500
228+
},
217229
"extract_image_block_types": {
218230
"items": {
219231
"type": "string",

0 commit comments

Comments
 (0)