Defines the interface for text chunking strategies.
Summary
Callbacks
Splits text into chunks using the given tokenizer.
Callbacks
@callback chunk( text :: String.t(), tokenizer :: Tokenizers.Tokenizer.t(), opts :: keyword() ) :: {:ok, [Chunx.Chunk.t()]} | {:error, any()}
Splits text into chunks using the given tokenizer.
Parameters
text- The text to chunktokenizer- The tokenizer to useopts- Options specific to the chunking strategy