Skip to content

Commit 2eaef68

Browse files
committed
feat: add include_orig_elements parameter
The new `.metadata.orig_elements` feature for chunking introduces a new chunking parameter to turn it off when not wanted. Add that parameter to `openapi.json` so it makes its way to the SDKs etc.
1 parent 567aa0c commit 2eaef68

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

openapi.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,11 @@
197197
"description": "If chunking strategy is set, combine elements until a section reaches a length of n chars. Default: max_characters",
198198
"example": 500
199199
},
200+
"include_orig_elements": {
201+
"type": "boolean",
202+
"title": "Original-elements flag",
203+
"description": "When True (the default), the elements used to form a chunk appear in `.metadata.orig_elements` for that chunk. Only applies when chunking is specified using the `chunking_strategy` argument."
204+
},
200205
"max_characters": {
201206
"type": "integer",
202207
"title": "Max Characters",

0 commit comments

Comments
 (0)