Skip to main content

Chunking

Defined in the knowledge module.
Rust AI Agent SDK Chunking utility.

Fields

NameTypeDescription
configChunkingConfig-

Methods

new

fn new(config: ChunkingConfig) -> Self
Create a new chunking utility Parameters:
NameType
configChunkingConfig

chunk

fn chunk(&self, text: &str) -> Vec<String>
Chunk text into smaller pieces Parameters:
NameType
text&str

Source

View on GitHub

praisonai/src/knowledge/mod.rs at line 572