This repository was archived by the owner on May 19, 2025. It is now read-only.
Commit 12d65f1
community[patch]: surrealdb provide functions for MMR (Maximal Marginal Relevance) (langchain-ai#21185)
This PR contains 4 added functions:
- max_marginal_relevance_search_by_vector
- amax_marginal_relevance_search_by_vector
- max_marginal_relevance_search
- amax_marginal_relevance_search
I'm no langchain expert, but tried do inspect other vectorstore sources
like chroma, to build these functions for SurrealDB. If someone has some
changes for me, please let me know. Otherwise I would be happy, if these
changes are added to the repository, so that I can use the orignal repo
and not my local monkey patched version.
---------
Co-authored-by: Harrison Chase <[email protected]>
Co-authored-by: Bagatur <[email protected]>1 parent 58b6c72 commit 12d65f1
File tree
1 file changed
+258
-22
lines changed- libs/community/langchain_community/vectorstores
1 file changed
+258
-22
lines changed
0 commit comments