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`
fix_agent_callbacks
OlajideOgun 1 year ago committed by GitHub
parent 6d84541ff9
commit 624554a43a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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

Loading…
Cancel
Save