Skip to content

Commit

Permalink
Improvement[Community] Improve args description in api doc of `DocArr…
Browse files Browse the repository at this point in the history
…ayInMemorySearch` (#26024)

- Add missing arg
- Remove redundant arg
  • Loading branch information
ZhangShenao authored Sep 4, 2024
1 parent c649b44 commit c812237
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,7 @@ def from_texts(
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
Expand Down

0 comments on commit c812237

Please sign in to comment.