Maximal Marginal Relevance retrieval #4396
Unanswered
sam-data-guy-iam
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am building an agent where I want to retrieve relevant memories to context when receiving a new user question. I see there is a search capability to find the most relevant memories. However, I want to make sure that there is minimal duplication in the returned contexts. I saw this technique called Maximal Marginal Relevance (MMR) e.g. https://www.elastic.co/search-labs/blog/maximum-marginal-relevance-diversify-results that is sort of like doing a minimal set cover for context. Is there already an implementation of this in mem0? I saw there is a reranker option but I wasn't sure how that plays into it.
Beta Was this translation helpful? Give feedback.
All reactions