mirror of
https://github.com/hwchase17/langchain.git
synced 2025-07-14 08:56:27 +00:00
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:
parent
6d84541ff9
commit
624554a43a
@ -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…
Reference in New Issue
Block a user