agrag.chunking.recursive.SplitLevel
Bases: BaseModel
One level of recursive split rules.
Attributes:
- delimiters (
tuple[str, ...] | None) – The strings to split on at this level.Nonemeans none. - whitespace (
bool) – Whether to split on whitespace at this level. - include_delim (
Literal['prev', 'next'] | None) – Whether a delimiter stays with the previous piece, the next piece, or is dropped.
delimiters
delimiters: tuple[str, ...] | None = None
include_delim
include_delim: Literal['prev', 'next'] | None = 'prev'
model_config
model_config = ConfigDict(frozen=True, extra='forbid')
whitespace
whitespace: bool = False