You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
2.1src/lib.rs — PyO3 module entry point; register CharacterTextSplitter and TokenTextSplitter
2.2src/splitters/character.rs — CharacterTextSplitter with split_text + split_texts (Rayon parallel); split_internal in separate impl block (not exposed to Python)
2.3src/splitters/token.rs — TokenTextSplitter with token counting and chunking
2.4src/splitters/recursive.rs — RecursiveSplitter with configurable separator hierarchy
Implement the Rust splitting engine exposed to Python via PyO3.
Wiki: Phase 2 detail
Branch:
feature/rust-backendTasks
src/lib.rs— PyO3 module entry point; registerCharacterTextSplitterandTokenTextSplittersrc/splitters/character.rs—CharacterTextSplitterwithsplit_text+split_texts(Rayon parallel);split_internalin separateimplblock (not exposed to Python)src/splitters/token.rs—TokenTextSplitterwith token counting and chunkingsrc/splitters/recursive.rs—RecursiveSplitterwith configurable separator hierarchysrc/utils.rs— shared Rust utilities (encoding helpers, etc.)cargo clippy --all-targets -- -D warningspasses;cargo fmt --checkpassesKey constraint
split_internalmust live in a separateimplblock (no#[pymethods]) so PyO3 does not expose it to Python.