Skip to main content

truncate_context

Method
This is a method of the RAG class in the rag module.
Truncate context to fit token budget

Signature

Parameters

&str
required
No description available.
usize
required
No description available.

Returns

String
The result of the operation.

Rust Context Management

Rust Token Management