If you have repeated function calls with the same input, you can use caching to store the results of the function calls and avoid unnecessary computations. For example, you can use the lru_cache decorator from the functools library to cache the results of the find_intent and find_matched_keywords functions.
If you have repeated function calls with the same input, you can use caching to store the results of the function calls and avoid unnecessary computations. For example, you can use the lru_cache decorator from the functools library to cache the results of the find_intent and find_matched_keywords functions.
This is of course to look into and not a solution