Commit Graph

1085 Commits

Author SHA1 Message Date
Med Marrouchi
4e1d461ddb
Merge pull request #1117 from Hexastack/refactor/handle-ongoing-convo-msg
Refactor/handle ongoing convo msg
2025-06-12 11:23:57 +01:00
Med Marrouchi
f7a981ce3e
Merge pull request #1116 from Hexastack/fix/remove-unused-model-nlp-sample
Some checks are pending
Build and Push Docker API Image / build-and-push (push) Waiting to run
Build and Push Docker Base Image / build-and-push (push) Waiting to run
Build and Push Docker UI Image / build-and-push (push) Waiting to run
fix: remove unused dep injection
2025-06-12 07:17:05 +01:00
yassinedorbozgithub
6850bc4dfd fix(api): resolve camelCased classname 2025-06-12 06:09:17 +01:00
Mohamed Marrouchi
39287c0fc9 fix: remove unused dep injection 2025-06-11 16:46:34 +01:00
Mohamed Marrouchi
b973c466d7 test: consolidate unit tests 2025-06-11 16:44:14 +01:00
Mohamed Marrouchi
d88959cea2 refactor: handle ongoing conversation message 2025-06-11 14:29:34 +01:00
Med Marrouchi
16377be405
Merge pull request #1083 from Hexastack/1018-bug---content-type-fields-edit-form-fields-name-do-not-reflect-db-names
Some checks are pending
Build and Push Docker API Image / build-and-push (push) Waiting to run
Build and Push Docker Base Image / build-and-push (push) Waiting to run
Build and Push Docker UI Image / build-and-push (push) Waiting to run
fix: support contentType default name value
2025-06-11 14:13:11 +01:00
Mohamed Marrouchi
5ba208c5e5 fix: remove unused dep injection 2025-06-11 13:51:58 +01:00
Med Marrouchi
629a07fef8
Merge pull request #1097 from Hexastack/feat/nlp-sample-filter-by-entities
Feat/nlp sample filter by entities
2025-06-11 11:10:18 +01:00
Mohamed Marrouchi
ab1d58ac17 test: consolidate tests 2025-06-11 11:02:46 +01:00
yassinedorbozgithub
af502e97dd fix: update jsdoc 2025-06-10 18:33:12 +01:00
yassinedorbozgithub
bac3597614 fix: apply feedback 2025-06-10 18:19:38 +01:00
yassinedorbozgithub
f4ca6613c7 fix: apply feedback 2025-06-10 18:14:22 +01:00
yassinedorbozgithub
c71d750bdc api: apply feedback 2025-06-10 10:29:22 +01:00
yassinedorbozgithub
e528dcc2c2 fix(api): apply feedback 2025-06-10 09:38:33 +01:00
yassinedorbozgithub
abade7a783 fix(api): update JSDoc 2025-06-10 06:39:49 +01:00
Mohamed Marrouchi
4beeaae087 feat: disallow multiple matches when local fallback is enabled 2025-06-09 16:11:01 +01:00
yassinedorbozgithub
22c4fcdfc8 fix(api): remove unused returns 2025-06-09 09:55:17 +01:00
yassinedorbozgithub
911d1fb3df fix(api): add missed botStats echo type 2025-06-07 14:12:41 +01:00
yassinedorbozgithub
969165f4fe Merge branch 'main' into 1018-bug---content-type-fields-edit-form-fields-name-do-not-reflect-db-names 2025-06-05 15:40:54 +01:00
Mohamed Marrouchi
1d837ca51d test: add unit tests 2025-06-05 15:29:33 +01:00
Mohamed Marrouchi
7b13bd07ba test: add unit tests for the nlp sample repo 2025-06-05 15:13:07 +01:00
Mohamed Marrouchi
e89d948f37 feat: enhance search ux 2025-06-05 14:56:36 +01:00
Mohamed Marrouchi
5c2ecaf8fc fix: remove public role 2025-06-04 18:17:17 +01:00
Mohamed Marrouchi
ad684676a7 feat: add support to filter samples by entities/values 2025-06-04 17:37:19 +01:00
Mohamed Marrouchi
e8bf38440a feat: add zod validation pipe 2025-06-04 17:36:36 +01:00
Mohamed Marrouchi
286d21e069 refactor: rename populate 2025-06-04 17:32:30 +01:00
Mohamed Marrouchi
98d79488a9 build: v2.2.9
Some checks are pending
Build and Push Docker API Image / build-and-push (push) Waiting to run
Build and Push Docker Base Image / build-and-push (push) Waiting to run
Build and Push Docker UI Image / build-and-push (push) Waiting to run
2025-06-02 15:16:02 +01:00
Med Marrouchi
02efab8308
Merge pull request #1080 from Hexastack/1042-bug---settingtypemultiple_attachment-setting-fields-type
feat(api): add strict Setting types
2025-06-02 10:47:05 +01:00
yassinedorbozgithub
420f81d853 fix(api): update contentField name DTO 2025-06-02 10:40:06 +01:00
Mohamed Marrouchi
e0f3464392 fix: update jsdoc 2025-06-02 09:31:14 +01:00
yassinedorbozgithub
8c32d9af53 fix(api): apply feedback 2025-06-02 09:16:13 +01:00
Mohamed Marrouchi
0c0e3a6d99 fix: remove default console channel trigger 2025-06-02 09:12:56 +01:00
yassinedorbozgithub
c15c30895f feat(api): add strict Setting types to plugins 2025-06-02 07:17:48 +01:00
yassinedorbozgithub
801a60b331 feat(api): add strict Setting types to helpers 2025-06-02 07:17:35 +01:00
yassinedorbozgithub
4b42c03fb9 feat(api): add strict Setting types to channels 2025-06-02 07:17:25 +01:00
yassinedorbozgithub
bb5d029e68 feat(api): add strict Setting types 2025-06-02 07:16:52 +01:00
yassinedorbozgithub
6d1c9850b9 fix(api): remove unused comment 2025-06-01 10:03:45 +01:00
yassinedorbozgithub
97a4005a97 fix(api): add textarea & secret missed types to the settings type 2025-06-01 09:49:33 +01:00
Med Marrouchi
ef4c61b735
Merge pull request #1065 from Hexastack/1063-issue---onapplicationbootstrap-remove-unused-settings
Some checks failed
Build and Push Docker API Image / build-and-push (push) Has been cancelled
Build and Push Docker Base Image / build-and-push (push) Has been cancelled
Build and Push Docker UI Image / build-and-push (push) Has been cancelled
fix(api): resolve CLI removing settings
2025-05-30 15:58:34 +01:00
yassinedorbozgithub
3e8532e287 fix(api): resolve lint issues 2025-05-30 15:33:15 +01:00
Yassine
8a50bce083
Update api/src/app.instance.ts
Co-authored-by: Med Marrouchi <marrouchi.mohamed@gmail.com>
2025-05-30 15:29:32 +01:00
Yassine
2d89f3eb2d
Update api/src/extension/extension.module.ts
Co-authored-by: Med Marrouchi <marrouchi.mohamed@gmail.com>
2025-05-30 15:29:20 +01:00
Yassine
d906f350d1
Update api/src/extensions/helpers/llm-nlu/index.helper.ts
Co-authored-by: Med Marrouchi <marrouchi.mohamed@gmail.com>
2025-05-30 15:28:59 +01:00
Med Marrouchi
29e69e0a91
Merge pull request #1066 from Hexastack/1064-bug---api-duplicate-subscriber-issue
fix: resolve duplicated subscriber issue
2025-05-30 15:14:23 +01:00
yassinedorbozgithub
26166e05e4 fix(api): add support to llm-nlu helper 2025-05-30 13:33:46 +01:00
yassinedorbozgithub
78c0b05021 Merge branch 'main' into 1063-issue---onapplicationbootstrap-remove-unused-settings 2025-05-30 13:32:01 +01:00
Med Marrouchi
d2a7f048dc
Merge pull request #1049 from Hexastack/fix/llm-nlu-initialization
Some checks are pending
Build and Push Docker API Image / build-and-push (push) Waiting to run
Build and Push Docker Base Image / build-and-push (push) Waiting to run
Build and Push Docker UI Image / build-and-push (push) Waiting to run
Implement prompt building during application bootstrap for LlmNluHelper
2025-05-30 09:54:51 +01:00
Mohamed Marrouchi
f968181177 fix: nit 2025-05-30 09:23:30 +01:00
Mohamed Marrouchi
50f70e00b8 feat: add mutex to prevent ws racing conditions 2025-05-30 08:52:22 +01:00
yassinedorbozgithub
15ed7efa2d fix(api): resolve loading attachment onApplicationBootstrap logic from the CLI 2025-05-30 07:01:13 +01:00
yassinedorbozgithub
9a7b5a3672 fix(api): resolve CLI removing settings 2025-05-29 19:30:16 +01:00
Med Marrouchi
2594434137
Merge pull request #1057 from Hexastack/1050-issue---add-migration-for-v229-to-fix-data-types
Some checks are pending
Build and Push Docker API Image / build-and-push (push) Waiting to run
Build and Push Docker Base Image / build-and-push (push) Waiting to run
Build and Push Docker UI Image / build-and-push (push) Waiting to run
feat(api): add migration script v2.2.9
2025-05-29 17:59:11 +01:00
yassinedorbozgithub
8370ca692c fix: add throw propagation 2025-05-29 17:37:34 +01:00
yassinedorbozgithub
8c9c5141ab fix: adapt not found admin case 2025-05-29 17:00:00 +01:00
medchedli
1b12f402c5 refactor: remove unused OnModuleInit import from LlmNluHelper 2025-05-29 16:07:21 +01:00
yassinedorbozgithub
04fcc1585e fix: enhance logic 2025-05-29 16:04:41 +01:00
yassinedorbozgithub
3a4cc3434a fix(api): apply feedback 2025-05-29 15:43:40 +01:00
Med Marrouchi
164ed221fc
Merge pull request #1048 from Hexastack/feat/default-nlu-penalty-factor-config
Add default NLU penalty factor and async support for NLP matching
2025-05-29 15:32:23 +01:00
medchedli
4492bbd4b8 fix: improve error logging for LLM NLU helper prompt initialization 2025-05-29 11:28:39 +01:00
yassinedorbozgithub
772236d220 fix(api): apply feedback 2025-05-29 09:12:51 +01:00
yassinedorbozgithub
64a8729be3 fix(api): apply feedback 2025-05-29 08:15:23 +01:00
yassinedorbozgithub
485e48bdd1 feat(api): add migration script v2.2.9 2025-05-29 07:01:44 +01:00
medchedli
4cb3229f1b feat: add default NLU penalty factor setting 2025-05-27 20:03:34 +01:00
medchedli
e562739019 feat: implement OnApplicationBootstrap for LlmNluHelper to build prompts during initialization 2025-05-27 18:14:44 +01:00
Med Marrouchi
3d6518307b
Merge pull request #1041 from Hexastack/1017-bug---nlp-entity-edit-dto-issue
fix(api): add missing field to NlpEntityUpdateDto
2025-05-26 18:01:02 +01:00
yassinedorbozgithub
ff716ab47b fix(api): add missing field to NlpEntityUpdateDto 2025-05-26 08:26:27 +01:00
yassinedorbozgithub
e0ff78ac71 fix(api): update unit tests 2025-05-23 15:58:05 +01:00
yassinedorbozgithub
3ff2b97221 fix(api): add deleteOne builtin protection 2025-05-23 15:56:08 +01:00
yassinedorbozgithub
2f5c85cb64 fix(api): move builtin logic + adapt unit tests 2025-05-23 15:55:03 +01:00
yassinedorbozgithub
7a23b0ded7 fix: update throw message 2025-05-23 15:55:03 +01:00
yassinedorbozgithub
ab30c46d97 fix: block deletion for built Nlp Entities 2025-05-23 15:55:03 +01:00
Mohamed Marrouchi
933daaa221 build: v2.2.8
Some checks failed
Build and Push Docker API Image / build-and-push (push) Has been cancelled
Build and Push Docker Base Image / build-and-push (push) Has been cancelled
Build and Push Docker UI Image / build-and-push (push) Has been cancelled
2025-05-22 10:41:13 +01:00
yassinedorbozgithub
6f215afd05 fix: resolve block list bug 2025-05-21 18:02:08 +01:00
Mohamed Marrouchi
031e54ef32 fix: add missing fallback for plugins 2025-05-20 16:36:14 +01:00
Mohamed Marrouchi
1f7a8bd625 fix: reuse quickReplies 2025-05-20 16:15:04 +01:00
Mohamed Marrouchi
409f397454 fix: apply nit picks 2025-05-20 16:10:50 +01:00
Mohamed Marrouchi
94cb9d2a7c feat: adjust local fallback 2025-05-20 15:57:32 +01:00
Mohamed Marrouchi
0163b07054 feat: refactor and use envelope factory 2025-05-20 15:38:29 +01:00
Mohamed Marrouchi
9207d4d349 fix: add attachment unit tests 2025-05-20 15:20:09 +01:00
Mohamed Marrouchi
fa5f835cef test: add unit tests 2025-05-20 15:04:16 +01:00
Mohamed Marrouchi
c9f521a837 fix: permanent ctx vars update + unit tests 2025-05-16 19:17:54 +01:00
Mohamed Marrouchi
8033eb3099 fix: permanent ctx vars update 2025-05-16 17:14:29 +01:00
yassinedorbozgithub
775c6c2885 fix(api): apply feedback 2025-05-15 12:04:26 +01:00
yassinedorbozgithub
b208afb508 fix(api): add check contextValue check 2025-05-15 11:53:53 +01:00
Mohamed Marrouchi
2b2d508ec7 feat: use cache 2025-05-14 08:32:35 +01:00
Mohamed Marrouchi
7dd3297fa3 fix: remove unecessary var 2025-05-13 19:07:21 +01:00
Mohamed Marrouchi
82d6bc8d49 fix: apply PR review feedback 2025-05-13 19:05:50 +01:00
Mohamed Marrouchi
e85084cd41 fix: add canonical value check 2025-05-13 17:07:28 +01:00
Mohamed Marrouchi
09666efec6 feat: update nlu llm helper to use pattern lookup 2025-05-13 16:27:36 +01:00
Mohamed Marrouchi
949fee281a fix: minor fixes 2025-05-13 16:27:36 +01:00
Mohamed Marrouchi
6e89192f88 feat: add determinisic slot filling (keyword and patter lookup strategies) 2025-05-13 16:27:36 +01:00
Mohamed Marrouchi
9e0df0d530 feat(api): add nlp pattern lookup strategy 2025-05-13 16:27:36 +01:00
Mohamed Marrouchi
e2d6d15215 build: v2.2.7
Some checks are pending
Build and Push Docker API Image / build-and-push (push) Waiting to run
Build and Push Docker Base Image / build-and-push (push) Waiting to run
Build and Push Docker UI Image / build-and-push (push) Waiting to run
2025-05-13 16:26:39 +01:00
Mohamed Marrouchi
66c1de80fc fix: disable ws unit test (temp) 2025-05-13 16:25:04 +01:00
Med Marrouchi
7e22a43cd5
Merge pull request #995 from Hexastack/993-bug-console-chat-widget-doesnt-show-quick-replies
fix: Show quick replies in Console Chat Widget
2025-05-13 15:01:36 +01:00
Mohamed Marrouchi
33f6483e2e fix: avatar update rate 2025-05-13 14:46:32 +01:00
Mohamed Marrouchi
c56f176d85 refactor: subscriber avatar store 2025-05-13 14:46:30 +01:00
Med Marrouchi
94bbc4ad20
Merge pull request #1001 from Hexastack/fix/disallow-attachment-delete
fix: disalow attachment delete
2025-05-13 12:25:28 +01:00
Med Marrouchi
e2666302b8
Merge pull request #1000 from Hexastack/feat/implement-block-nlp-prioritization-strategy-v3
Feat/implement block nlp prioritization strategy v3
2025-05-13 12:22:32 +01:00
yassinedorbozgithub
91cb7d93a4 fix(api): apply feedback 2025-05-13 10:58:51 +01:00
yassinedorbozgithub
9b97983977 fix(api): apply coderabbitai feedback 2025-05-13 09:39:22 +01:00
yassinedorbozgithub
dfc05a7ce2 fix(api): update WebsocketGateway unit tests 2025-05-13 08:55:03 +01:00
yassinedorbozgithub
9ebb291306 refactor(api): update WebsocketGateway unit tests 2025-05-13 08:47:46 +01:00
yassinedorbozgithub
494f40db1d fix: apply feedback 2025-05-13 08:23:39 +01:00
yassinedorbozgithub
f156757045 fix(api): add WebsocketGateway unit tests 2025-05-13 08:13:09 +01:00
yassinedorbozgithub
11bda74568 Merge branch 'main' into 993-bug-console-chat-widget-doesnt-show-quick-replies 2025-05-13 08:11:48 +01:00
yassinedorbozgithub
22ef79b05f fix(api): update WebsocketGateway unit tests 2025-05-12 18:18:02 +01:00
Mohamed Marrouchi
78b217c2f7 fix: disalow attachment delete 2025-05-12 18:03:58 +01:00
Mohamed Marrouchi
27cf8a343c fix: nitpicks 2025-05-12 17:19:06 +01:00
Mohamed Marrouchi
8df658b429 fix: remove unused mock 2025-05-12 17:07:39 +01:00
Med Marrouchi
75d96650aa
Merge pull request #998 from Hexastack/fix/message-attachment-remove
Some checks are pending
Build and Push Docker API Image / build-and-push (push) Waiting to run
Build and Push Docker Base Image / build-and-push (push) Waiting to run
Build and Push Docker UI Image / build-and-push (push) Waiting to run
feat: undo message attachment reference removal
2025-05-12 15:37:21 +01:00
Mohamed Marrouchi
6ba4c76440 fix: restore conflict exception 2025-05-12 14:55:36 +01:00
Mohamed Marrouchi
f2fede7e68 fix: controller unit test 2025-05-12 14:49:42 +01:00
Mohamed Marrouchi
44a42e474d fix: update dto 2025-05-12 14:49:04 +01:00
Mohamed Marrouchi
a054ee542e fix: minor fixes 2025-05-12 14:40:38 +01:00
Mohamed Marrouchi
72c9484ff6 fix: extra check 2025-05-12 14:33:08 +01:00
Mohamed Marrouchi
41de535a7c fix: enhance implementation 2025-05-12 14:13:09 +01:00
yassinedorbozgithub
e203485d75 fix(api): add message service & subscriber service happy path unit tests 2025-05-12 10:51:46 +01:00
yassinedorbozgithub
545c8e967c fix(api): add jest env compatibility to websocket cors 2025-05-12 10:49:55 +01:00
yassinedorbozgithub
91434eb53e refactor(api): websocket gateway unit tests 2025-05-12 10:47:58 +01:00
yassinedorbozgithub
e9b7b8c229 fix(api): update socket disconnection log messsage 2025-05-12 10:46:47 +01:00
yassinedorbozgithub
6e7395281a fix(api): add missing status code 2025-05-12 10:45:08 +01:00
MohamedAliBouhaouala
9642e823d0 feat: use mongo test db for unit tests 2025-05-12 07:30:01 +01:00
MohamedAliBouhaouala
c7189758a9 fix: correct entity data type 2025-05-12 07:30:01 +01:00
MohamedAliBouhaouala
4f8ee27dba fix: apply feedback 2025-05-12 07:30:01 +01:00
MohamedAliBouhaouala
5d8befacdf fix: minor enhancements 2025-05-12 07:30:01 +01:00
MohamedAliBouhaouala
5dcd36be98 feat: set nlpEntity weights type to float 2025-05-12 07:30:01 +01:00
MohamedAliBouhaouala
003c6924f8 fix: remove stale comments 2025-05-12 07:30:01 +01:00
MohamedAliBouhaouala
04a008b6fd fix: remove unsued utils 2025-05-12 07:30:01 +01:00
Mohamed Marrouchi
bab2e3082f feat: implement nlp based blocks prioritization strategy
feat: add weight to nlp entity schema and readapt

feat: remove commented obsolete code

feat: restore settings

feat: apply feedback

fix: re-adapt unit tests

feat: priority scoring re-calculation & enabling weight modification in builtin nlp entities

fix: remove obsolete code

feat: refine unit tests, apply mr coderabbit suggestions

fix: minor refactoring

feat: add nlp cache map type

feat: refine builtin nlp entities weight updates

feat: add more test cases and refine edge case handling

feat: add weight validation in UI

fix: apply feedback

feat: add a penalty factor & fix unit tests

feat: add documentation

fix: correct syntax

fix: remove stale log statement

fix: enforce nlp entity weight restrictions

fix: correct typo in docs

fix: typos in docs

fix: fix formatting for function comment

fix: restore matchNLP function previous code

fix: remove blank line, make updateOne asynchronous

fix: add AND operator in docs

fix: handle dependency injection in chat module

feat: refactor to use findAndPopulate in block score calculation

feat: refine caching mechanisms

feat: add typing and enforce safety checks

fix: remove typo

fix: remove async from block score calculation

fix: remove typo

fix: correct linting

fix: refine nlp pattern type check

fix: decompose code into helper utils,  add nlp entity dto validation, remove type casting

fix: minor refactoring

feat: refactor current implementation
2025-05-12 07:29:56 +01:00
yassinedorbozgithub
2999c2234d fix: add jsdoc 2025-05-09 17:53:17 +01:00
Mohamed Marrouchi
0112ceebe2 fix: remove unecessary providers import 2025-05-09 16:46:07 +01:00
Mohamed Marrouchi
4f012594cb feat: undo message attachment reference removal 2025-05-09 16:42:00 +01:00
Mohamed Marrouchi
5ddc257492 fix: add warn message to not found resource 2025-05-09 15:58:16 +01:00
yassinedorbozgithub
2638e845e6 fix(api): resolve socketsJoin issue 2025-05-09 14:37:06 +01:00
Med Marrouchi
535020dc68
Merge pull request #987 from Hexastack/986-issue---fix-message-echo-received-log
Some checks are pending
Build and Push Docker API Image / build-and-push (push) Waiting to run
Build and Push Docker Base Image / build-and-push (push) Waiting to run
Build and Push Docker UI Image / build-and-push (push) Waiting to run
fix(api): update message echo received logged value
2025-05-08 19:03:29 +01:00
yassinedorbozgithub
112eee04eb fix: make stronger the cacheable typing 2025-05-08 17:18:42 +01:00
yassinedorbozgithub
ee761770ae fix(api): update essage echo received logged value 2025-05-08 17:00:51 +01:00
yassinedorbozgithub
3f452c82ec fix: remove unsued subscriber 2025-05-08 15:12:26 +01:00
yassinedorbozgithub
55e7f89fc0 fix: apply feedback 2025-05-08 09:31:20 +01:00
yassinedorbozgithub
f972cc15dd fix: revert eventemitter updates 2025-05-08 08:30:27 +01:00
Mohamed Marrouchi
43c7161777 build: v2.2.6
Some checks are pending
Build and Push Docker API Image / build-and-push (push) Waiting to run
Build and Push Docker Base Image / build-and-push (push) Waiting to run
Build and Push Docker UI Image / build-and-push (push) Waiting to run
2025-05-07 07:21:53 +01:00
Med Marrouchi
95184734a3
Merge pull request #970 from Hexastack/revert-969-revert-965-964-issue---carousel-show-more-issue
Some checks are pending
Build and Push Docker API Image / build-and-push (push) Waiting to run
Build and Push Docker Base Image / build-and-push (push) Waiting to run
Build and Push Docker UI Image / build-and-push (push) Waiting to run
Handle context update conflicts
2025-05-06 16:39:22 +01:00
yassinedorbozgithub
f559454049 fix: update unit tests 2025-05-06 16:20:06 +01:00
yassinedorbozgithub
cf7af41ee1 fix: update jsdoc 2025-05-06 15:51:04 +01:00
yassinedorbozgithub
8166d60358 fix: update unit test message 2025-05-06 15:42:59 +01:00
yassinedorbozgithub
c1c92475a3 fix: update base-repository unit tests to support shouldFlatten 2025-05-06 15:37:01 +01:00
yassinedorbozgithub
f5dec41b34 fix: handle array edge case 2025-05-06 14:57:58 +01:00
yassinedorbozgithub
0b9f6e49e1 fix: handle unit tests arrays case 2025-05-06 14:17:51 +01:00