[DERCBOT-1329] Support filtering for Annotations + refined Dialogs filters#1845
Merged
Benvii merged 12 commits intofeature/annotation-anomaly/DERCBOT-1309from Mar 27, 2025
Conversation
assouktim
requested changes
Mar 19, 2025
...t/generated-sources/kapt/compile/ai/tock/nlp/front/shared/config/FaqSettings_Deserializer.kt
Show resolved
Hide resolved
...get/generated-sources/kapt/compile/ai/tock/nlp/front/shared/config/FaqSettings_Serializer.kt
Show resolved
Hide resolved
This reverts commit 21fb259.
rkuffer
approved these changes
Mar 27, 2025
9dfcebf to
67a76ca
Compare
67a76ca to
9dfcebf
Compare
Benvii
approved these changes
Mar 27, 2025
Benvii
pushed a commit
that referenced
this pull request
Mar 27, 2025
Adding modifications Typo [DERCBOT-1309] Documentation update + Annotation Model Move Model files + Add Annotation as a subdocument of an Action Update Action and Dialog to support single annotation per action DAO update to allow Annotation insertion in Action subdocument Initiate BotAnnotationEvent as emptyList Business logic + Annotation creation endpoint Model update, refacto and addEvent endpoint logic Update and Delete event endpoint Restore removed byStory endpoint DialogsVerticle + Annotation presence check Improvements Dialog Endpoints to DialogVerticle Update logic to retrieve annotations from /dialogs/search endpoint Modify annotation with PUT endpoint lastUpdateDate logic added Unused import Fix malfunctioning logic + Doc update Add initial event at annotation creation PR Review Rebase + fix canEdit bool Refacto and BotAnnotationUpdateDTO delete Doc update with latest endpoints Annotation on dialogs endpoint + canEdit logic fix namespace & botId check for annotation endpoints annotationId logic removal + doc & endpoint update Fix canEdit logic on updateAnnotation & updateAnnotationEvent [DERCBOT-1329] Support filtering for Annotations + refined Dialogs filters (#1845) * withAnnotations bool * [DERCBOT-1329] Fix annotation filter * Filter by annotation presence, by cumulative state, by cumulative reason * Sort by annotation lastUpdateDate * Filters addition * Filtering by dialog creationDate & sort by ASC/DESC order * FaqSettings files * Single POST endpoint for creation/update of an annotation * pr fix * Revert "FaqSettings files" This reverts commit 21fb259. * rollback on FaqSettings * rollback on FaqSettings V2 --------- Co-authored-by: Mohamed ASSOUKTI <mohamed.assoukti@partnre.com>
scezen
added a commit
that referenced
this pull request
Mar 28, 2025
Adding modifications Typo [DERCBOT-1309] Documentation update + Annotation Model Move Model files + Add Annotation as a subdocument of an Action Update Action and Dialog to support single annotation per action DAO update to allow Annotation insertion in Action subdocument Initiate BotAnnotationEvent as emptyList Business logic + Annotation creation endpoint Model update, refacto and addEvent endpoint logic Update and Delete event endpoint Restore removed byStory endpoint DialogsVerticle + Annotation presence check Improvements Dialog Endpoints to DialogVerticle Update logic to retrieve annotations from /dialogs/search endpoint Modify annotation with PUT endpoint lastUpdateDate logic added Unused import Fix malfunctioning logic + Doc update Add initial event at annotation creation PR Review Rebase + fix canEdit bool Refacto and BotAnnotationUpdateDTO delete Doc update with latest endpoints Annotation on dialogs endpoint + canEdit logic fix namespace & botId check for annotation endpoints annotationId logic removal + doc & endpoint update Fix canEdit logic on updateAnnotation & updateAnnotationEvent [DERCBOT-1329] Support filtering for Annotations + refined Dialogs filters (#1845) * withAnnotations bool * [DERCBOT-1329] Fix annotation filter * Filter by annotation presence, by cumulative state, by cumulative reason * Sort by annotation lastUpdateDate * Filters addition * Filtering by dialog creationDate & sort by ASC/DESC order * FaqSettings files * Single POST endpoint for creation/update of an annotation * pr fix * Revert "FaqSettings files" This reverts commit 21fb259. * rollback on FaqSettings * rollback on FaqSettings V2 --------- Co-authored-by: Mohamed ASSOUKTI <mohamed.assoukti@partnre.com>
Benvii
pushed a commit
that referenced
this pull request
Mar 28, 2025
…#1824) * [DERCBOT-1314] Documentation Adding modifications Typo [DERCBOT-1309] Documentation update + Annotation Model Move Model files + Add Annotation as a subdocument of an Action Update Action and Dialog to support single annotation per action DAO update to allow Annotation insertion in Action subdocument Initiate BotAnnotationEvent as emptyList Business logic + Annotation creation endpoint Model update, refacto and addEvent endpoint logic Update and Delete event endpoint Restore removed byStory endpoint DialogsVerticle + Annotation presence check Improvements Dialog Endpoints to DialogVerticle Update logic to retrieve annotations from /dialogs/search endpoint Modify annotation with PUT endpoint lastUpdateDate logic added Unused import Fix malfunctioning logic + Doc update Add initial event at annotation creation PR Review Rebase + fix canEdit bool Refacto and BotAnnotationUpdateDTO delete Doc update with latest endpoints Annotation on dialogs endpoint + canEdit logic fix namespace & botId check for annotation endpoints annotationId logic removal + doc & endpoint update Fix canEdit logic on updateAnnotation & updateAnnotationEvent [DERCBOT-1329] Support filtering for Annotations + refined Dialogs filters (#1845) * withAnnotations bool * [DERCBOT-1329] Fix annotation filter * Filter by annotation presence, by cumulative state, by cumulative reason * Sort by annotation lastUpdateDate * Filters addition * Filtering by dialog creationDate & sort by ASC/DESC order * FaqSettings files * Single POST endpoint for creation/update of an annotation * pr fix * Revert "FaqSettings files" This reverts commit 21fb259. * rollback on FaqSettings * rollback on FaqSettings V2 --------- Co-authored-by: Mohamed ASSOUKTI <mohamed.assoukti@partnre.com> * Small fix --------- Co-authored-by: Mohamed ASSOUKTI <mohamed.assoukti@partnre.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Ticket : DERCBOT-1329
🏷️ New Filters for Annotations
Added new filters in
DialogsSearchQueryandDialogReportQuery, allowing filtering by:annotationStates→ Filter dialogs by annotation states (e.g.,"RESOLVED","ANOMALY").annotationReasons→ Filter by annotation reasons (e.g.,"HALLUCINATION","INCOMPLETE_SOURCES").annotationSort→ Sort annotations bylastUpdateDate(ASCorDESC).annotationCreationDateFrom/annotationCreationDateTo→ Filter annotations by creation date range.withAnnotations→ Boolean flag to retrieve only dialogs with annotations.💬 Enhanced Dialogs Filtering
New filters to refine dialog search results:
creationDatefor a dialog, so we use the creation date of the first action in the dialog.dialogSort→ Sort dialogs by creation date (ASCorDESC).dialogCreationDateFrom/dialogCreationDateTo→ Filter dialogs by creation date range🔍 Example Query with All New Filters
{ "namespace": "app", "applicationName": "testingfeature", "language": "fr", "start": 0, "size": 99999, "playerId": null, "dialogId": null, "withAnnotations": true, "annotationStates": ["RESOLVED", "ANOMALY"], "annotationReasons": ["INCOMPLETE_SOURCES"], "annotationSort": "DESC", "dialogSort": "ASC", "annotationCreationDateFrom": "2025-02-06T00:00:00.000Z", "annotationCreationDateTo": "2025-02-07T23:59:59.999Z", "dialogCreationDateFrom": "2025-02-07T00:00:00.000Z", "dialogCreationDateTo": "2025-02-08T00:00:00.000Z" }