From f8fd65dea22bad26ed7ad519918b4a85072cd78d Mon Sep 17 00:00:00 2001 From: Mohammed Abbadi <43252562+m7mdhka@users.noreply.github.com> Date: Thu, 6 Feb 2025 18:25:13 +0300 Subject: [PATCH] community: Update deeplake.py (#29633) Deep Lake recently released version 4, which introduces significant architectural changes, including a new on-disk storage format, enhanced indexing mechanisms, and improved concurrency. However, LangChain's vector store integration currently does not support Deep Lake v4 due to breaking API changes. Previously, the installation command was: `pip install deeplake[enterprise]` This installs the latest available version, which now defaults to Deep Lake v4. Since LangChain's vector store integration is still dependent on v3, this can lead to compatibility issues when using Deep Lake as a vector database within LangChain. To ensure compatibility, the installation command has been updated to: `pip install deeplake[enterprise]<4.0.0` This constraint ensures that pip installs the latest available version of Deep Lake within the v3 series while avoiding the incompatible v4 update. --- libs/community/langchain_community/vectorstores/deeplake.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/community/langchain_community/vectorstores/deeplake.py b/libs/community/langchain_community/vectorstores/deeplake.py index 0de4c6032a7..fee677e0366 100644 --- a/libs/community/langchain_community/vectorstores/deeplake.py +++ b/libs/community/langchain_community/vectorstores/deeplake.py @@ -168,7 +168,7 @@ class DeepLake(VectorStore): if _DEEPLAKE_INSTALLED is False: raise ImportError( "Could not import deeplake python package. " - "Please install it with `pip install deeplake[enterprise]`." + "Please install it with `pip install deeplake[enterprise]<4.0.0`." ) if (