chunk • AI Agent SDK

chunk: Chunk text using the configured chunking strategy.

chunk

Method

</div>

This is a method of the Chunking class in the chunking module.

Chunk text using the configured chunking strategy.

Signature

python
def chunk(text: Union[str, List[str]]) -> Union[List[Any], List[List[Any]]]

Parameters

ParamField Union

No description available.

Returns

ResponseField Union[List[Any], List[List[Any]]]

The result of the operation.

Uses

  • chunker
  • warnings.warn

Used By

Source

View on GitHub

praisonaiagents/knowledge/chunking.py at line 236