DeepLake: Pass in rest of args to self._search_helper (#4080)

As of right now when trying to use functions like
`max_marginal_relevance_search()` or
`max_marginal_relevance_search_by_vector()` the rest of the kwargs are
not propagated to `self._search_helper()`. For example a user cannot
explicitly state the distance_metric they want to use when calling
`max_marginal_relevance_search`
This commit is contained in:
OlajideOgun
2023-05-04 05:14:22 -04:00
committed by GitHub
parent 6d84541ff9
commit 624554a43a

View File

@@ -450,6 +450,7 @@ class DeepLake(VectorStore):
fetch_k=fetch_k,
use_maximal_marginal_relevance=True,
lambda_mult=lambda_mult,
**kwargs,
)
def max_marginal_relevance_search(
@@ -484,6 +485,7 @@ class DeepLake(VectorStore):
fetch_k=fetch_k,
use_maximal_marginal_relevance=True,
lambda_mult=lambda_mult,
**kwargs,
)
@classmethod