Apply workspace topN to agent call (#1779)

resolves #1777
This commit is contained in:
Timothy Carambat 2024-06-27 17:58:28 -07:00 committed by GitHub
parent 4afdf846e0
commit 7a78ad3960
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -94,6 +94,7 @@ const memory = {
namespace: workspace.slug, namespace: workspace.slug,
input: query, input: query,
LLMConnector, LLMConnector,
topN: workspace?.topN ?? 4,
}); });
if (contextTexts.length === 0) { if (contextTexts.length === 0) {