Skip to content

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
@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.

3 participants