QuestionQ23

VerifiedBuilding an LLM Application using OCI Generative AI Service

In LangChain, which retriever search type is used to strike a balance between relevance and diversity?

Explanation

The mmr search type uses Maximal Marginal Relevance, which optimizes for similarity to the query while promoting diversity among the selected documents.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!