ThanoSQL Functions
Cleanup Resources
thanosql.cleanup_resources()
The cleanup_resources
function in ThanoSQL is designed to clear all model related loaded resources including models, tokenizers, and pipelines. This helps in managing memory and ensuring that resources are properly freed after use.
Syntax
Parameters
This function does not take any parameters.
Returns
TABLE (result text): A message indicating the success or failure of the resource cleanup process.
Example Usage
Here is an example of how to use the cleanup_resources
function:
On execution, we get: