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 <saba.sturua@jina.ai>
pull/5050/head
Saba Sturua 1 year ago committed by GitHub
parent cf19a2a59f
commit 47e4ee4370
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -19,10 +19,10 @@ def _check_docarray_import() -> None:
import docarray import docarray
da_version = docarray.__version__.split(".") 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( raise ValueError(
f"To use the DocArrayHnswSearch VectorStore the docarray " 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`." f"To upgrade, please run: `pip install -U docarray`."
) )
except ImportError: except ImportError:

@ -13,8 +13,8 @@ from langchain.vectorstores.docarray.base import (
class DocArrayHnswSearch(DocArrayIndex): class DocArrayHnswSearch(DocArrayIndex):
"""Wrapper around HnswLib storage. """Wrapper around HnswLib storage.
To use it, you should have the ``docarray[hnswlib]`` package with version >=0.31.0 To use it, you should have the ``docarray`` package with version >=0.32.0 installed.
installed. You can install it with `pip install "langchain[hnswlib]"`. You can install it with `pip install "langchain[docarray]"`.
""" """
@classmethod @classmethod

@ -13,8 +13,8 @@ from langchain.vectorstores.docarray.base import (
class DocArrayInMemorySearch(DocArrayIndex): class DocArrayInMemorySearch(DocArrayIndex):
"""Wrapper around in-memory storage for exact search. """Wrapper around in-memory storage for exact search.
To use it, you should have the ``docarray`` package with version >=0.31.0 installed. To use it, you should have the ``docarray`` package with version >=0.32.0 installed.
You can install it with `pip install "langchain[in_memory_store]"`. You can install it with `pip install "langchain[docarray]"`.
""" """
@classmethod @classmethod

Loading…
Cancel
Save