Promptify icon indicating copy to clipboard operation
Promptify copied to clipboard

cache prompt variables

Open SeanLee97 opened this issue 1 year ago • 1 comments

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.

SeanLee97 avatar Feb 22 '23 15:02 SeanLee97