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

Litellm redis semantic caching #9356

Merged
merged 1 commit into from
Mar 24, 2025
Merged

Conversation

tylerhutcherson
Copy link
Collaborator

@tylerhutcherson tylerhutcherson commented Mar 19, 2025

Title

Improve Redis semantic cache implementation and dependency management.

Relevant issues

Working to address --> #3056

Pre-Submission checklist

Please complete all items before asking a LiteLLM maintainer to review your PR

  • I have Added testing in the tests/litellm/ directory, Adding at least 1 test is a hard requirement - see details
  • I have added a screenshot of my new test passing locally
  • My PR passes all unit tests on (make test-unit)[https://docs.litellm.ai/docs/extras/contributing_code]
  • My PR's scope is as isolated as possible, it only solves 1 specific problem

Type

🆕 New Feature
🐛 Bug Fix
🧹 Refactoring
📖 Documentation
✅ Test

Changes

  • Update redisvl version and pin dependency in the right places.
  • Add as optional to poetry environment.
  • Update semantic caching class.

@tylerhutcherson tylerhutcherson added the enhancement New feature or request label Mar 19, 2025
Copy link

vercel bot commented Mar 19, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
litellm ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 24, 2025 0:43am

@tylerhutcherson
Copy link
Collaborator Author

Screenshot 2025-03-19 at 12 18 26 PM Local unit tests passing for `RedisCache` and `RedisSemanticCache`

@krrishdholakia
Copy link
Contributor

Hey @tylerhutcherson your PR is good to merge, can you fix your poetry lock conflict. We can try and get this into this week's stable release

@tylerhutcherson tylerhutcherson force-pushed the litellm_redis_semantic_caching branch from 268b097 to 7864cd1 Compare March 24, 2025 12:42
@krrishdholakia krrishdholakia merged commit 72f15f6 into main Mar 24, 2025
34 of 39 checks passed
@krrishdholakia krrishdholakia deleted the litellm_redis_semantic_caching branch March 24, 2025 14:26
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