The agent engineering platform.
Python agentsaiai-agentsanthropicchatgptdeepagentsenterpriseframeworkgeminigenerative-ailangchainlanggraphllmmultiagentopen-sourceopenaipydanticpythonragtypescript
adjust docarray docstrings (#5185)
Saba Sturua47e4ee437034
diff --git a/langchain/vectorstores/docarray/base.py b/langchain/vectorstores/docarray/base.pyindex d7b2f3c9ac..d8b0f4b570 100644--- a/langchain/vectorstores/docarray/base.py+++ b/langchain/vectorstores/docarray/base.py@@ -19,10 +19,10 @@ def _check_docarray_import() -> None:import docarrayda_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.pyindex 9e334c3c47..26ed4afacd 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]"`."""@classmethoddiff --git a/langchain/vectorstores/docarray/in_memory.py b/langchain/vectorstores/docarray/in_memory.pyindex 8ab664859e..77570c0b06 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