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

- Add missing arg
- Remove redundant arg
This commit is contained in:
ZhangShenao 2024-09-04 21:26:26 +08:00 committed by GitHub
parent c649b449d7
commit c812237217
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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