Chunking • Rust AI Agent SDK
Chunking: Chunking utility.
Chunking
Defined in the knowledge module.
Rust AI Agent SDK
Chunking utility.
Fields
| Name | Type | Description |
|---|---|---|
config | ChunkingConfig | – |
Methods
new
fn new(config: ChunkingConfig) -> SelfCreate a new chunking utility
Parameters:
| Name | Type |
|---|---|
config | ChunkingConfig |
chunk
fn chunk(&self, text: &str) -> Vec<String>Chunk text into smaller pieces
Parameters:
| Name | Type |
|---|---|
text | &str |
Source
View on GitHubpraisonai/src/knowledge/mod.rs at line 572