From 8460571cadaa2f0e03da22f2f5a393cb0e0f1938 Mon Sep 17 00:00:00 2001 From: Diwank Singh Tomer Date: Tue, 29 Oct 2024 01:21:31 +0530 Subject: [PATCH] Update search_docs_by_embedding.py --- agents-api/agents_api/models/docs/search_docs_by_embedding.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/agents-api/agents_api/models/docs/search_docs_by_embedding.py b/agents-api/agents_api/models/docs/search_docs_by_embedding.py index 382238f99..382bff069 100644 --- a/agents-api/agents_api/models/docs/search_docs_by_embedding.py +++ b/agents-api/agents_api/models/docs/search_docs_by_embedding.py @@ -246,7 +246,7 @@ def search_docs_by_embedding( # Sort the results by distance to find the closest matches :sort -mmr_score - :limit {k*(3 if mmr_strength else 1)}, # Get more candidates for diversity + :limit {k*(3 if mmr_strength else 1)} # Get more candidates for diversity :create _interim {{ owner_type,