Initialize DocArrayInMemorySearch store.
from_params(
cls,
embedding: Embeddings,
metric: Literal['cosine_sim', 'euclidian_dist', 'sgeuclidean_dist'] = 'cosine_sim',
**kwargs: Any = {}
) -> DocArrayInMemorySearch| Name | Type | Description |
|---|---|---|
embedding* | Embeddings | Embedding function. |
metric | str | Default: 'cosine_sim'metric for exact nearest-neighbor search. Can be one of: "cosine_sim", "euclidean_dist" and "sqeuclidean_dist". Defaults to "cosine_sim". |
**kwargs | Any | Default: {}Other keyword arguments to be passed to the get_doc_cls method. |