Almost all known embedding model providers available via litellm patch
Project description
mem0-embeddings-litellm-patch
This patch adds support for embedding model providers via LiteLLM to the mem0 framework.
✨ What It Does
- Integrates nearly all providers supported by LiteLLM as embedding backends in mem0
- Enables use of high-performance providers like VoyageAI, Mistral, Groq, and more
- Drop-in replacement for the existing embedding logic
🔧 Installation
You can install the patch via pip:
pip install mem0-embeddings-litellm-patch
This will patch the necessary mem0.embeddings modules automatically.
Note: Make sure
mem0andlitellmare installed as dependencies. This package does not install them implicitly.
🧠 Requirements
- Python >= 3.8
mem0>= 0.1.0litellm>= 1.0.0
💡 Usage
After installing this patch you can use all embedding providers available via litellm inncluding those currently not supported via mem0 natively.
📢 Why This Exists
The mem0 maintainers have not yet merged support for LiteLLM-based embeddings, despite it being a fast, extensible abstraction layer. This patch bridges the gap until (or if) native support is added upstream. No need to fork and maintain a full project if you can just maintain the patch files instead am i right? :D No need to fork and maintain a full project if you can just maintain the patch files instead am i right? :D
📬 Feedback / Contributing
Feel free to fork or open issues. If the mem0 team integrates this feature officially, this package may be deprecated in favor of upstream support.
Licensed under the MIT License.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mem0_embeddings_litellm_patch-1.0.5.tar.gz.
File metadata
- Download URL: mem0_embeddings_litellm_patch-1.0.5.tar.gz
- Upload date:
- Size: 4.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4a7fc2ca29a2359711d2f0234faafac2ea56b0838f3b81fecc1dc681374c6429
|
|
| MD5 |
cf9ae20228a6c10d1a545f44b551fe40
|
|
| BLAKE2b-256 |
69b7ac343323e00ac36bd0e43872e68ac8ae1ac40d99a8b0e409534b337a9b01
|
File details
Details for the file mem0_embeddings_litellm_patch-1.0.5-py3-none-any.whl.
File metadata
- Download URL: mem0_embeddings_litellm_patch-1.0.5-py3-none-any.whl
- Upload date:
- Size: 5.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b0a27a03b76ed6bade691deed54f0590a70768511dcfd676d271e27f5997e461
|
|
| MD5 |
b9d08eee8bf932b7693694d47d3bc5a3
|
|
| BLAKE2b-256 |
4c81ecde8ecfd082ba8abbf8d80b3eb0b858781c609b7547f9082bc8fc69b2de
|