Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[RW-1172] Handle automated classification of reports #1036

Open
wants to merge 7 commits into
base: develop
Choose a base branch
from

Conversation

orakili
Copy link
Collaborator

@orakili orakili commented Mar 11, 2025

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.

@orakili orakili added the blocked This PR is blocked, do not merge it label Mar 11, 2025
Copy link

Coverage Report

Totals Coverage
Statements: 24.09% ( 3521 / 14617 )
Methods: 25.72% ( 222 / 863 )
Lines: 23.99% ( 3299 / 13754 )

Copy link

Build output

Composer Validate success

PHP Lint success

Docker Build success

Environment Setup success

Site Install success

PHP Code Sniffer success

Software Versions Docker version 26.1.3, build b72abbb PHP 8.3.17 (cli) (built: Feb 28 2025 18:16:47) (NTS) Copyright (c) The PHP Group Zend Engine v4.3.17, Copyright (c) Zend Technologies with Zend OPcache v8.3.17, Copyright (c), by Zend Technologies with Xdebug v3.4.1, Copyright (c) 2002-2025, by Derick Rethans Composer version 2.8.6 2025-02-25 13:03:50
Drupal Logs
PHP Logs

Pusher: @orakili, Action: pull_request, Workflow: Run tests

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
blocked This PR is blocked, do not merge it
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant