truncate_context
Method
This is a method of the RAG class in the rag module.Truncate context to fit token budget
Signature
Parameters
No description available.
No description available.
Returns
The result of the operation.
truncate_context: Truncate context to fit token budget
This is a method of the RAG class in the rag module.Truncate context to fit token budget
def truncate_context(&self, context: &str, max_tokens: usize) -> String