[RW-1172] Handle automated classification of reports #1036
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.
Refs: RW-1172
Note: this depends on UN-OCHA/ocha_ai#107 and UN-OCHA/ocha_content_classification#4. The composer.json temporarily requires the RW-1172 branches of those modules until they have a new version available.
This PR add classification workflow for reports that is used for imported reports (ex: UNHCR). The workflow handles the tagging of the countries, format, language, themes as well as the generation of a summary.
This PR also fixes some clashing issue with the rw-icons from the ocha_ai_chat module. Now only the rw-icons component of the RW site is used.
Run
drush sset reliefweb_ai_summary_disclaimer 'This humanitarian document summary was generated using artificial intelligence. While we strive for accuracy, please verify important information independently.'
to set the AI summary disclaimer.