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.
Metadata
Release files for mem0-embeddings-litellm-patch 1.0.9
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| mem0_embeddings_litellm_patch-1.0.9.tar.gz | 4.5 kB | Without provenance | Details for mem0_embeddings_litellm_patch-1.0.9.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| mem0_embeddings_litellm_patch-1.0.9-py3-none-any.whl | Python 3 | none | any | Details for mem0_embeddings_litellm_patch-1.0.9-py3-none-any.whl |
Total release size: 9.9 kB
Release files / mem0_embeddings_litellm_patch-1.0.9.tar.gz
| Download URL | mem0_embeddings_litellm_patch-1.0.9.tar.gz |
|---|---|
| Size | 4.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
87dafb5d4deb3c353d2a843cfa4b62b64621a614b86146313ecff85a9b8b6048
|
|
BLAKE2b-256 checksum How to use checksums |
68c58f4ec4c836da47e0f7e4e08cd79c99828b9c38eb55455ef2bcc42b74bf5e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.5
|
Release files / mem0_embeddings_litellm_patch-1.0.9-py3-none-any.whl
| Download URL | mem0_embeddings_litellm_patch-1.0.9-py3-none-any.whl |
|---|---|
| Size | 5.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a95e1f2c74e1020b1184ea429a1c6e35e290b7636dbbe4bdbb535533ffa9c7de
|
|
BLAKE2b-256 checksum How to use checksums |
bb7b223e80347cc728ba3fa307b46b377b8a8191afe32df3270ddf41388ee01d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.5
|
Security for mem0-embeddings-litellm-patch 1.0.9
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.