Skip to content

Commit

Permalink
adjust docarray docstrings (#5185)
Browse files Browse the repository at this point in the history
Follow up of #5015

Thanks for catching this! 

Just a small PR to adjust couple of strings to these changes

Signed-off-by: jupyterjazz <saba.sturua@jina.ai>
  • Loading branch information
jupyterjazz committed May 24, 2023
1 parent cf19a2a commit 47e4ee4
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions langchain/vectorstores/docarray/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
4 changes: 2 additions & 2 deletions langchain/vectorstores/docarray/hnsw.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
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
Expand Down
4 changes: 2 additions & 2 deletions langchain/vectorstores/docarray/in_memory.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
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
Expand Down

0 comments on commit 47e4ee4

Please sign in to comment.