Skip to main content

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 mem0 and litellm are installed as dependencies. This package does not install them implicitly.

🧠 Requirements

  • Python >= 3.8
  • mem0 >= 0.1.0
  • litellm >= 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mem0_embeddings_litellm_patch-1.0.3.tar.gz (4.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file mem0_embeddings_litellm_patch-1.0.3.tar.gz.

File metadata

File hashes

Hashes for mem0_embeddings_litellm_patch-1.0.3.tar.gz
Algorithm Hash digest
SHA256 9916c185c13a569273d1635eb6f5a18bbfa2278d8dee131fa13253aa5343e649
MD5 36f44a2f15f1bf8ec1dc7fc7238571f7
BLAKE2b-256 66c4cb9f6cc5086ecacbcb001fc0471dd14dbe0610c4ea3e2e3b3b57ffc7a8c9

See more details on using hashes here.

File details

Details for the file mem0_embeddings_litellm_patch-1.0.3-py3-none-any.whl.

File metadata

File hashes

Hashes for mem0_embeddings_litellm_patch-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 fbe7671410a3e9d47fe9270dd80e01732cd87b81c95aba00de72f10bd6b5618e
MD5 ff7c945ec6d50f3159054abfcc96322a
BLAKE2b-256 f7de3bfeddb44ab2b4170a0745c9e20a7fcc5c8238e8937de442ff6557066bfc

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page