Skip to content
Discussion options

You must be logged in to vote

You're very close! To keep the parent-child structure (with the parent as the full document) when updating via the API, you need to set "process_rule": { "mode": "hierarchical", ... } instead of "custom". The "parent_mode" value "full-doc" isn't documented as a standard option—most examples use "paragraph" for parent_mode. If you use "custom", the API will treat the whole document as a single chunk, which is why your structure collapses to one chunk.

Try changing your payload to use "mode": "hierarchical" and "parent_mode": "paragraph" (or another supported value), and keep your segmentation/subchunk_segmentation settings. This should restore the hierarchical structure you want when upda…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@jason-Genesis-101
Comment options

Answer selected by jason-Genesis-101
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants