From 47e4ee4370347b26ea7c2867dbc8b6429596afcf Mon Sep 17 00:00:00 2001 From: Saba Sturua <45267439+jupyterjazz@users.noreply.github.com> Date: Wed, 24 May 2023 16:50:35 +0200 Subject: [PATCH] adjust docarray docstrings (#5185) Follow up of https://github.com/hwchase17/langchain/pull/5015 Thanks for catching this! Just a small PR to adjust couple of strings to these changes Signed-off-by: jupyterjazz --- langchain/vectorstores/docarray/base.py | 4 ++-- langchain/vectorstores/docarray/hnsw.py | 4 ++-- langchain/vectorstores/docarray/in_memory.py | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/langchain/vectorstores/docarray/base.py b/langchain/vectorstores/docarray/base.py index d7b2f3c9ac2..d8b0f4b570a 100644 --- a/langchain/vectorstores/docarray/base.py +++ b/langchain/vectorstores/docarray/base.py @@ -19,10 +19,10 @@ def _check_docarray_import() -> None: import docarray da_version = docarray.__version__.split(".") - if int(da_version[0]) == 0 and int(da_version[1]) <= 30: + if int(da_version[0]) == 0 and int(da_version[1]) <= 31: raise ValueError( f"To use the DocArrayHnswSearch VectorStore the docarray " - f"version >=0.31.0 is expected, received: {docarray.__version__}." + f"version >=0.32.0 is expected, received: {docarray.__version__}." f"To upgrade, please run: `pip install -U docarray`." ) except ImportError: diff --git a/langchain/vectorstores/docarray/hnsw.py b/langchain/vectorstores/docarray/hnsw.py index 9e334c3c47b..26ed4afacd5 100644 --- a/langchain/vectorstores/docarray/hnsw.py +++ b/langchain/vectorstores/docarray/hnsw.py @@ -13,8 +13,8 @@ from langchain.vectorstores.docarray.base import ( class DocArrayHnswSearch(DocArrayIndex): """Wrapper around HnswLib storage. - To use it, you should have the ``docarray[hnswlib]`` package with version >=0.31.0 - installed. You can install it with `pip install "langchain[hnswlib]"`. + To use it, you should have the ``docarray`` package with version >=0.32.0 installed. + You can install it with `pip install "langchain[docarray]"`. """ @classmethod diff --git a/langchain/vectorstores/docarray/in_memory.py b/langchain/vectorstores/docarray/in_memory.py index 8ab664859eb..77570c0b063 100644 --- a/langchain/vectorstores/docarray/in_memory.py +++ b/langchain/vectorstores/docarray/in_memory.py @@ -13,8 +13,8 @@ from langchain.vectorstores.docarray.base import ( class DocArrayInMemorySearch(DocArrayIndex): """Wrapper around in-memory storage for exact search. - To use it, you should have the ``docarray`` package with version >=0.31.0 installed. - You can install it with `pip install "langchain[in_memory_store]"`. + To use it, you should have the ``docarray`` package with version >=0.32.0 installed. + You can install it with `pip install "langchain[docarray]"`. """ @classmethod