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

[FEATURE] Single request caching #588

Open
bjoernpl opened this issue Apr 25, 2024 · 0 comments
Open

[FEATURE] Single request caching #588

bjoernpl opened this issue Apr 25, 2024 · 0 comments

Comments

@bjoernpl
Copy link
Contributor

Is your feature request related to a problem? Please describe.
Currently, the caching system only works for full batches and doesn't seem to work across code changes. I think it would be very valuable to have the option of caching individual LLM requests (with Redis or something similar) so that repeated experiments don't require repeated execution and one can easily resume if something failed along the way even if code changes were necessary but the prompt/params didn't change.

Describe the solution you'd like
With some flag for the LLM such as cache_requests I would like individual requests to be cached.

Additional context
Litellm for example has a caching feature that I couldn't get to work with this library even when using the LiteLLM LLM wrapper. This can serve as reference though. I think it would be great to have this available on all LLM providers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant