Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cache prompt variables #32

Open
wants to merge 1 commit into
base: old_main
Choose a base branch
from

Conversation

SeanLee97
Copy link
Contributor

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
Copy link
Contributor Author

Screen Shot 2023-02-22 at 23 25 37

Test case passed

@monk1337 monk1337 added enhancement New feature or request prompter issue related to prompter labels Mar 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request prompter issue related to prompter
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants