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

Add async support to semantic cache extension #214

Merged
merged 6 commits into from
Sep 6, 2024

Conversation

tylerhutcherson
Copy link
Collaborator

This PR introduces new async compliant methods to the semantic cache class using lazy index construction. Because the AsyncSearchIndex requires an async redis python client, we needed to construct that class lazily upon first usage within the semantic cache class. This PR fixes some unclosed connection errors and is also in support of BerriAI/litellm#5412 at LiteLLM.

Copy link
Collaborator

@rbs333 rbs333 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good stuff! Nice solve

@tylerhutcherson tylerhutcherson merged commit 973d431 into main Sep 6, 2024
20 checks passed
@tylerhutcherson tylerhutcherson deleted the feat/RAAE-270/async-semantic-cache branch September 6, 2024 18:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants