mirror of
https://github.com/hwchase17/langchain.git
synced 2025-06-22 14:49:29 +00:00
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>
This commit is contained in:
parent
cf19a2a59f
commit
47e4ee4370
@ -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:
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user