Skip to content

The agent engineering platform.

Improvement[Community] Improve args description in api doc of `DocArrayInMemorySearch` (#26024)

ZhangShenaoc81223721773
diff --git a/libs/community/langchain_community/vectorstores/docarray/in_memory.py b/libs/community/langchain_community/vectorstores/docarray/in_memory.py
index 6abe0232e1..32fe95d950 100644
--- a/libs/community/langchain_community/vectorstores/docarray/in_memory.py
+++ b/libs/community/langchain_community/vectorstores/docarray/in_memory.py
@@ -59,9 +59,7 @@ class DocArrayInMemorySearch(DocArrayIndex):
embedding (Embeddings): Embedding function.
metadatas (Optional[List[Dict[Any, Any]]]): Metadata for each text
if it exists. Defaults to None.
- metric (str): metric for exact nearest-neighbor search.
- Can be one of: "cosine_sim", "euclidean_dist" and "sqeuclidean_dist".
- Defaults to "cosine_sim".
+ **kwargs: Other keyword arguments to be passed to the from_params method.
Returns:
DocArrayInMemorySearch Vector Store