Skip to main content

Overview

JSON splitter operates on parsed JSON data, traversing the JSON graph to create chunks that are valid, self-contained JSON objects. Provides path-aware traceability by adding JSON paths to chunk metadata. Falls back to text chunking if JSON parsing fails. Splitter Class: JSONChunker Config Class: JSONChunkingConfig

Dependencies

No additional dependencies required. Uses standard library.

Examples

Parameters