From 7a78ad3960e069dbc783971dc7ff13cf1868c767 Mon Sep 17 00:00:00 2001 From: Timothy Carambat Date: Thu, 27 Jun 2024 17:58:28 -0700 Subject: [PATCH] Apply workspace topN to agent call (#1779) resolves #1777 --- server/utils/agents/aibitat/plugins/memory.js | 1 + 1 file changed, 1 insertion(+) diff --git a/server/utils/agents/aibitat/plugins/memory.js b/server/utils/agents/aibitat/plugins/memory.js index d31a264d..4f43d0ec 100644 --- a/server/utils/agents/aibitat/plugins/memory.js +++ b/server/utils/agents/aibitat/plugins/memory.js @@ -94,6 +94,7 @@ const memory = { namespace: workspace.slug, input: query, LLMConnector, + topN: workspace?.topN ?? 4, }); if (contextTexts.length === 0) {