TextChunker class
Utility class for splitting text into smaller chunks for RAG.
Wraps the low-level Rust semantic chunker functions.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
classify(
String text) → Future< ChunkType> - Classify a text chunk by type (e.g., definition, list, code).
-
markdown(
String text, {int maxChars = 500}) → Future< List< StructuredChunk> > - Chunk text using Markdown structure-aware splitter.
-
recursive(
String text, {int maxChars = 500, int overlapChars = 50}) → Future< List< SemanticChunk> > - Chunk text using standard recursive character splitter.