Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add (disabled) course recommendation module (#23)
* migrated changes from https://github.com/mmig/ki-campus-bot * reverted local endpoint configuration * reverted to to default processing pipeline * BUGFIX removed duplication when referencing inform_coursesearch slot must set level-value via /inform_coursesearch{"level":"Experte"}'} not /inform_coursesearch/inform_coursesearch{"level":"Experte"}'} * FIX indent format: consistently use tabs for indenting code * BUGFIX [reapply fix] removed duplication when referencing inform_coursesearch slot must set level-value via /inform_coursesearch{"level":"Experte"}'} not /inform_coursesearch/inform_coursesearch{"level":"Experte"}'} * BUGFIX for typo fomat -> format * BUGFIX use correct method name levels_db() instead of duplicate duration_db() * updated usage-instructions for development * REVERT previous commit 76b7c1e * REVERT previous commit 76b7c1e * updated usage-instructions for development * implemented querying the recommender endpoint & showing its results * added instructions for configuring the recommender endpoint * git-ignore configuration/credentials file for recommender endpoint * added utterances in case of error-results when querying course-recommendations * FIX use absolute path for loading config-file instead of relative path w.r.t. current-working-directory * added some DEBUG-output for get-recommendations-action * small changes texts, action delete slot value * REFACTOR extracted recommender-specific actions to separate file * BUGFIX avoid duplicate class-names for actions * REFACTOR use own low-resources implementation for loading YAML file/configuration * changed training data, updated action, config * FIX update docker configuration for new config-loading mechanism * install dependency for YAML library in docker for action server * do load/mount recommender-config file via docker-compose config when running action server * FIX for spacy-pipeline: do install German spacy model via docker configuration * FIX indentation for volume configuration * added separate endpoints-configuration for docker * added specific endpoints-configuration file for docker to allow using default endpoints-configuration for local rasa shell * FEATURE implemented loading action's response-texts from YAML file * implemented helpers for loading YAML file with response-texts (i.e. "utterances") that are used within action implementations * extracted response-texts (i.e. "utterances") from actions/actions.py to action_responses/actions_responses.yml * added action_responses/ as mounted volume in docker-compose configuration * added (placeholder) label for course-title + use relative import for responses.py + removed commented-out utterances * extracted response-texts/utterances from actions_recommender.py * FIX explicitly load YAML files with UTF-8 encoding * WORKAROUND for BUG in socket.io adapter: do not dispatch utterances with empty text (i.e. avoid buttons-only utterances) NOTE currently socket.io adapter will cause error on encountering messages with empty/None text, e.g. messages that only contain a button group WORKAROUND do include some (non-empty) text when dispatching button-groups within the same message * IMPROVE only query course_title once per action invocation from responses * REFACTOR extract/use response-strings for course-titles * IMPROVE only query course_title once per action invocation from responses (2) * NOOP re-formatted to match formatting in rasa/KI-Campus_en/actions/actions.py * extracted English response texts * adapted docker for English chatbot for response-text loading * FIX disabled installing spacy model since NLU pipeline was reverted to not use spacy NLP * FIX instructions for starting action server to ensure that all actions are started i.e. also actions that are located in other python-files under actions/*.py, other than actions.py * IMPROVE documentation of parameters in response-texts * implemented new slot type * small correction domain * implemented login check & querying user profile & using profile data for recommendations * REVERT removed activation/configuration for socketio * small updates stories * BUGFIX initialize variable "response" for all cases / code-paths * FIX handle empty/None values for slots in actions * FIX handle empty/None values for slots in validate-action * added line-break after debug-output & marked all print-debug instructions with DEV comment FIXME DEBUG * NOOP (removed unused import) * FIX WORKAROUND to ensure that the message-text precedes button-list * workaround slot validation * HACK fix removed/missing intent utter_end_of_conversation temporary fix missing intent that was removed from domain.yml -> old version for intent copied to DFKIBot_de/domain.yml * REFACTOR extract language code for achievements-request from implementation file to labels file * deleted end_of_conversation, * KIC-Bot changed intent "inform" to "courses" * rename coursesearch "recommender", update stories * quick fix responses, cleanup * response fix * fixed action utterances * FIX use separate endpoint-configuration for docker deployment, i.e. do enable local service in default endpoint-configuration * disabled debug output * BUGFIX delete reference of removed DEBUG action utter_course_form_slots * added github-action for (testing) training rasa models upon PUSH * remove (disabled) debug-output for python version from action * disabled course recommender module * DISABLED import for course recommender module (sub-project DFKIBot_de) * REVERTED modified texts for greeting & goodbye * DISABLED additional tip-action (used in modified greeting) Co-authored-by: TabeaOt <[email protected]> Co-authored-by: Tabea Otten <[email protected]>
- Loading branch information