From c8122372177305c964866691a8254cb99c3809d2 Mon Sep 17 00:00:00 2001 From: ZhangShenao <15201440436@163.com> Date: Wed, 4 Sep 2024 21:26:26 +0800 Subject: [PATCH] Improvement[Community] Improve args description in api doc of `DocArrayInMemorySearch` (#26024) - Add missing arg - Remove redundant arg --- .../langchain_community/vectorstores/docarray/in_memory.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/libs/community/langchain_community/vectorstores/docarray/in_memory.py b/libs/community/langchain_community/vectorstores/docarray/in_memory.py index 6abe0232e16..32fe95d9506 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