Returns similar documents to the vector that also have diversity
This algorithm balances relevance and diversity in the search results.
max_marginal_relevance_search_by_vector(
self,
embedding: List[float],
k: int = 4,
fetch_k: int = 20,
lambda_mult: float = 0.5,
**kwargs: Any = {}
) -> List[Document]