From 2f31639a5d668f0f3ac6620dc1d42459bb0f525e Mon Sep 17 00:00:00 2001 From: Mohamed Marrouchi Date: Thu, 28 Nov 2024 17:54:52 +0100 Subject: [PATCH] fix: apply nlp threshold --- api/src/chat/services/chat.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/src/chat/services/chat.service.ts b/api/src/chat/services/chat.service.ts index 6342127..bef0726 100644 --- a/api/src/chat/services/chat.service.ts +++ b/api/src/chat/services/chat.service.ts @@ -270,7 +270,7 @@ export class ChatService { if (event.getText() && !event.getNLP()) { try { const helper = await this.helperService.getDefaultNluHelper(); - const nlp = await helper.predict(event.getText()); + const nlp = await helper.predict(event.getText(), true); event.setNLP(nlp); } catch (err) { this.logger.error('Unable to perform NLP parse', err);