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

v2.25.2 #1023

Merged
merged 17 commits into from
Feb 20, 2025
Merged

v2.25.2 #1023

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
120 changes: 62 additions & 58 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 7 additions & 3 deletions config/field.field.node.report.field_ocha_product.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ dependencies:
- field.storage.node.field_ocha_product
- node.type.report
- taxonomy.vocabulary.ocha_product
content:
- 'taxonomy_term:ocha_product:a3ba79f0-7af9-40d0-bb1a-bf1e4d80613f'
id: node.report.field_ocha_product
field_name: field_ocha_product
entity_type: node
Expand All @@ -14,7 +16,9 @@ label: 'OCHA product'
description: ''
required: false
translatable: false
default_value: { }
default_value:
-
target_uuid: a3ba79f0-7af9-40d0-bb1a-bf1e4d80613f
default_value_callback: ''
settings:
handler: any_term
Expand All @@ -23,7 +27,7 @@ settings:
ocha_product: ocha_product
sort:
field: name
direction: asc
auto_create: false
direction: ASC
auto_create: 0
auto_create_bundle: ''
field_type: entity_reference
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,8 @@ classifier:
12033: 'Mine Action: Landmine/UXO clearance, education, victim assistance.'
49458: 'Camp Coordination/Management: Displaced persons services, life quality, post-displacement preparation.'
inference:
plugin_id: aws_bedrock_titan_text_premier_v1
plugin_id: aws_bedrock_nova_micro_v1
temperature: 0.0
top_p: 0.2
max_tokens: 512
prompt: "You are tasked with analyzing humanitarian job offers and classifying them according to specific career categories and focus areas. Your analysis will be conducted in three steps and should be presented in a clear XML format.\r\n\r\nPlease analyze the following job offer:\r\n\r\n<job>\r\nTitle: {job_title}\r\nDescription:\r\n{job_description}\r\n</job>\r\n\r\nBefore you begin, understand these key distinctions:\r\n\r\nCareer Categories in Humanitarian Work represent functional roles and professional specializations within the humanitarian sector. These categories describe the types of jobs and skill sets needed to perform humanitarian work, regardless of the specific intervention area.\r\n\r\nHumanitarian Focus Areas describe the thematic sectors or domains in which humanitarian interventions take place. These areas represent the specific fields of action or issues addressed by humanitarian work, distinct from the job functions themselves.\r\n\r\nFor your analysis, follow these steps:\r\n\r\n1. Provide a concise summary capturing the essence and important context of the job offer.\r\n2. Select the best matching category (only one) from the Career Categories list. Use the corresponding item number (e.g., A1, A2).\r\n3. Select the most relevant Humanitarian Focus Areas (minimum 0, maximum 3). Use the corresponding item numbers (e.g., B1, B2) in a comma-separated list.\r\n\r\nCareer Categories:\r\n{career_category}\r\n\r\nHumanitarian Focus Areas:\r\n{focus_areas}\r\n\r\nPresent your analysis STRICTLY in this XML format:\r\n\r\n<job_analysis>\r\n <summary>Concise summary of the job offer</summary>\r\n <career_category>Single item number (A1-A9)</career_category>\r\n <focus_areas>Comma-separated list of item numbers (B1-B20), 0-3 items</focus_areas>\r\n</job_analysis>\r\n\r\nExample output:\r\n\r\n<job_analysis>\r\n <summary>Managing water and sanitation projects in refugee camps.</summary>\r\n <career_category>A5</career_category>\r\n <focus_areas>B18,B20,B17</focus_areas>\r\n</job_analysis>\r\n\r\nIMPORTANT:\r\n1. Use ONLY the XML structure above.\r\n2. Ensure valid XML with proper opening and closing tags.\r\n3. If no focus areas apply, use: <focus_areas></focus_areas>\r\n4. Do not include ANY text or explanations outside of the XML tags.\r\n5. Your entire response must be valid XML."
prompt: "You are tasked with analyzing humanitarian job offers and classifying them according to specific career categories and focus areas. Your analysis will be conducted in three steps and should be presented in a clear XML format.\r\n\r\nPlease analyze the following job offer:\r\n\r\n<job>\r\nTitle: {job_title}\r\nDescription:\r\n{job_description}\r\n</job>\r\n\r\nBefore you begin, understand these key distinctions:\r\n\r\nCareer Categories in Humanitarian Work represent functional roles and professional specializations within the humanitarian sector. These categories describe the types of jobs and skill sets needed to perform humanitarian work, regardless of the specific intervention area.\r\n\r\nHumanitarian Focus Areas describe the thematic sectors or domains in which humanitarian interventions take place. These areas represent the specific fields of action or issues addressed by humanitarian work, distinct from the job functions themselves.\r\n\r\nFor your analysis, follow these steps:\r\n\r\n1. Provide a concise summary capturing the essence and important context of the job offer.\r\n2. Select the best matching category (only one) from the Career Categories list. Use the corresponding item number (e.g., A1, A2).\r\n3. Select the minimum number of Humanitarian Focus Areas (maximum 3) that are central and explicitly stated. Do not include indirectly related or implied focus areas. Opt for an empty selection rather than vague relevance. If unsure, prioritize focus areas most strongly tied to the job's main objectives.\r\n\r\nCareer Categories:\r\n{career_category}\r\n\r\nHumanitarian Focus Areas:\r\n{focus_areas}\r\n\r\nPresent your analysis STRICTLY in this XML format:\r\n\r\n<job_analysis>\r\n <summary>Concise summary of the job offer</summary>\r\n <career_category>Single item number (A1-A9)</career_category>\r\n <focus_areas>Comma-separated list of item numbers (B1-B20), 0-3 items</focus_areas>\r\n</job_analysis>\r\n\r\nExample output:\r\n\r\n<job_analysis>\r\n <summary>Managing water and sanitation projects in refugee camps.</summary>\r\n <career_category>A5</career_category>\r\n <focus_areas>B18</focus_areas>\r\n</job_analysis>\r\n\r\nIMPORTANT:\r\n1. Use ONLY the XML structure above.\r\n2. Ensure valid XML with proper opening and closing tags.\r\n3. If no focus areas apply, use: <focus_areas></focus_areas>\r\n4. Do not include ANY text or explanations outside of the XML tags.\r\n5. Your entire response must be valid XML."
Original file line number Diff line number Diff line change
Expand Up @@ -949,6 +949,10 @@ protected function processDocuments(array $documents, string $provider_uuid, Con
$countries = $countries + $country;
}
}
// Tag with World if empty so that, at least, we can import.
if (empty($countries)) {
$countries = [254];
}

// Retrieve the themes.
$themes = [];
Expand Down
Loading