[DERCBOT-1267] Gen AI - Document Compressor #1788
Open
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.
This pull request adds support for a new Document Compressor feature in the bot administration service. The changes include adding new data models, services, and API endpoints to manage the Document Compressor configuration. Additionally, some existing code has been updated to integrate this new functionality.
Document Compressor Feature:
bot/admin/server/src/main/kotlin/BotAdminService.kt
: AddedBotDocumentCompressorConfigurationDAO
and implemented methods to delete the Document Compressor configuration. [1] [2] [3]bot/admin/server/src/main/kotlin/BotAdminVerticle.kt
: Added new API endpoints to handle CRUD operations for the Document Compressor configuration.bot/admin/server/src/main/kotlin/model/BotDocumentCompressorConfigurationDTO.kt
: Created a new data transfer object for the Document Compressor configuration.bot/admin/server/src/main/kotlin/service/DocumentCompressorService.kt
: Implemented the service to manage Document Compressor configurations, including validation and error handling.bot/admin/server/src/main/kotlin/service/DocumentCompressorValidationService.kt
: Added a validation service to check the Document Compressor configuration settings.Other Changes:
bot/connector-rest-client/src/main/kotlin/model/ClientFootnote.kt
andbot/connector-web-model/src/main/kotlin/ai/tock/bot/connector/web/send/Footnote.kt
: Added a newscore
field to theFootnote
data class. [1] [2]bot/connector-web/src/main/kotlin/WebMessageProcessor.kt
andbot/connector-web/src/test/kotlin/WebConnectorResponseTest.kt
: Updated theWebMessageProcessor
and its test to handle the newscore
field inFootnote
. [1] [2]bot/engine/src/main/kotlin/admin/bot/compressor/BotDocumentCompressorConfiguration.kt
andbot/engine/src/main/kotlin/admin/bot/compressor/BotDocumentCompressorConfigurationDAO.kt
: Added new data models and DAO interfaces for the Document Compressor configuration. [1] [2]bot/engine/src/main/kotlin/definition/BotDefinition.kt
andbot/engine/src/main/kotlin/definition/BotDefinitionBase.kt
: Updated theBotDefinition
andBotDefinitionBase
to include the Document Compressor configuration. [1] [2] [3] [4]bot/engine/src/main/kotlin/engine/BotRepository.kt
: Added import forBotDocumentCompressorConfigurationMonitor
.