Promptify
Promptify copied to clipboard
cache prompt variables
The prompt variables are obtained in real-time when calling the fit
function in the previous implementation. It might be inefficient because the fit()
tends to be called multiple times in handling various sentences. Caching the prompt variables in a hashmap can curtail the overhead.