Prompt:
You're a warehouse assistant. Answer using only the data given. Separate FACTS from RECOMMENDATION. Say if you're not sure. Don't make stuff up.

tool call: kpis({'uid': 'district_store:WH_0065'}) -> {'n_records': 1, 'avg_inventory_accuracy_pct': 10.0, 'avg_order_fulfilment_rate_pct': 24.6, 'months_with_stockout': 0, 'issue_counts': {'FEFO_not_followed': 1}, 'uid': 'district_store:WH_0065', 'warehouse_id': 'WH_0065', 'warehouse_level': 'district_store'}

Q: how is WH_0065 at the district_store doing overall?
A:

Chosen response:
FACTS: WH_0065 (district_store): avg inventory accuracy 10.0%, avg fulfilment 24.6%, 0 months w/ stockout (based on 1 records), issues on record: {'FEFO_not_followed': 1}
RECOMMENDATION: looks fine.

Rejected response:
FACTS: WH_0065 (district_store): avg inventory accuracy 25.8%, avg fulfilment 24.6%, 0 months w/ stockout (based on 1 records), issues on record: {'FEFO_not_followed': 1}
RECOMMENDATION: looks fine.
FACTS: WH_0065 (district_store): avg inventory accuracy 25.8%, avg fulfilment 24.6%, 0 months w/ stockout (based on 1 records), issues on record: {'FEFO_not_followed': 1}
RECOMMENDATION: looks fine.


Prompt:
You're a warehouse assistant. Answer using only the data given. Separate FACTS from RECOMMENDATION. Say if you're not sure. Don't make stuff up.

tool call: stockouts({'uid': 'regional_warehouse:WH_0021'}) -> [{'uid': 'regional_warehouse:WH_0021', 'warehouse_id': 'WH_0021', 'warehouse_level': 'regional_warehouse', 'commodity_category': 'PPE_IPC_supplies', 'facilities_affected_by_stockout': 0}]

Q: does WH_0021 at the regional_warehouse currently have any active stockouts?
A:

Chosen response:
FACTS: 1 active stockouts (uid=regional_warehouse:WH_0021). worst: WH_0021 (regional_warehouse, PPE_IPC_supplies), 0 facilities hit
RECOMMENDATION: prioritize WH_0021 (regional_warehouse) first.

Rejected response:
FACTS: 33.5 active stockouts (uid=regional_warehouse:WH_0021). worst: WH_0021 (regional_warehouse, PPE_IPC_supplies), 0 facilities hit
RECOMMENDATION: prioritize WH_0021 (regional_warehouse) first.


Prompt:
You're a warehouse assistant. Answer using only the data given. Separate FACTS from RECOMMENDATION. Say if you're not sure. Don't make stuff up.

tool call: backorders({'compare_by': 'warehouse_level', 'compare_values': ['district_store', 'national_CMS', 'regional_warehouse']}) -> {'_grouped_by': 'warehouse_level', 'groups': {'district_store': [{'uid': 'district_store:WH_0067', 'warehouse_id': 'WH_0067', 'warehouse_level': 'district_store', 'commodity_category': 'surgical_supplies', 'orders_backordered': 2, 'backorder_rate_pct': 100.0}, {'uid': 'district_store:WH_0075', 'warehouse_id': 'WH_0075', 'warehouse_level': 'district_store', 'commodity_category': 'PPE_IPC_supplies', 'orders_backordered': 3, 'backorder_rate_pct': 100.0}, {'uid': 'district_store:WH_0033', 'warehouse_id': 'WH_0033', 'warehouse_level': 'district_store', 'commodity_category': 'ARVs', 'orders_backordered': 3, 'backorder_rate_pct': 100.0}, {'uid': 'district_store:WH_0012', 'warehouse_id': 'WH_0012', 'warehouse_level': 'district_store', 'commodity_category': 'PPE_IPC_supplies', 'orders_backordered': 2, 'backorder_rate_pct': 100.0}, {'uid': 'district_store:WH_0017', 'warehouse_id': 'WH_0017', 'warehouse_level': 'district_store', 'commodity_category': 'nutrition_commodities', 'orders_backordered': 2, 'backorder_rate_pct': 100.0}, {'uid': 'district_store:WH_0046', 'warehouse_id': 'WH_0046', 'warehouse_level': 'district_store', 'commodity_category': 'laboratory_reagents', 'orders_backordered': 2, 'backorder_rate_pct': 100.0}, {'uid': 'district_store:WH_0075', 'warehouse_id': 'WH_0075', 'warehouse_level': 'district_store', 'commodity_category': 'medical_devices_consumables', 'orders_backordered': 2, 'backorder_rate_pct': 100.0}, {'uid': 'district_store:WH_0080', 'warehouse_id': 'WH_0080', 'warehouse_level': 'district_store', 'commodity_category': 'IV_fluids', 'orders_backordered': 7, 'backorder_rate_pct': 100.0}, {'uid': 'district_store:WH_0041', 'warehouse_id': 'WH_0041', 'warehouse_level': 'district_store', 'commodity_category': 'malaria_commodities', 'orders_backordered': 1, 'backorder_rate_pct': 100.0}, {'uid': 'district_store:WH_0048', 'warehouse_id': 'WH_0048', 'warehouse_level': 'district_store', 'commodity_category': 'medical_devices_consumables', 'orders_backordered': 6, 'backorder_rate_pct': 100.0}, {'uid': 'district_store:WH_0042', 'warehouse_id': 'WH_0042', 'warehouse_level': 'district_store', 'commodity_category': 'medical_devices_consumables', 'orders_backordered': 3, 'backorder_rate_pct': 100.0}, {'uid': 'district_store:WH_0098', 'warehouse_id': 'WH_0098', 'warehouse_level': 'district_store', 'commodity_category': 'essential_medicines', 'orders_backordered': 3, 'backorder_rate_pct': 100.0}, {'uid': 'district_store:WH_0062', 'warehouse_id': 'WH_0062', 'warehouse_level': 'district_store', 'commodity_category': 'vaccines', 'orders_backordered': 2, 'backorder_rate_pct': 100.0}, {'uid': 'district_store:WH_0044', 'warehouse_id': 'WH_0044', 'warehouse_level': 'district_store', 'commodity_category': 'IV_fluids', 'orders_backordered': 2, 'backorder_rate_pct': 100.0}, {'uid': 'district_store:WH_0042', 'warehouse_id': 'WH_0042', 'warehouse_level': 'district_store', 'commodity_category': 'controlled_substances', 'orders_backordered': 5, 'backorder_rate_pct': 100.0}, {'uid': 'district_store:WH_0069', 'warehouse_id': 'WH_0069', 'warehouse_level': 'district_store', 'commodity_category': 'medical_devices_consumables', 'orders_backordered': 1, 'backorder_rate_pct': 100.0}, {'uid': 'district_store:WH_0009', 'warehouse_id': 'WH_0009', 'warehouse_level': 'district_store', 'commodity_category': 'ARVs', 'orders_backordered': 5, 'backorder_rate_pct': 100.0}, {'uid': 'district_store:WH_0018', 'warehouse_id': 'WH_0018', 'warehouse_level': 'district_store', 'commodity_category': 'contraceptives', 'orders_backordered': 2, 'backorder_rate_pct': 100.0}, {'uid': 'district_store:WH_0037', 'warehouse_id': 'WH_0037', 'warehouse_level': 'district_store', 'commodity_category': 'contraceptives', 'orders_backordered': 1, 'backorder_rate_pct': 100.0}, {'uid': 'district_store:WH_0099', 'warehouse_id': 'WH_0099', 'warehouse_level': 'district_store', 'commodity_category': 'controlled_substances', 'orders_backordered': 4, 'backorder_rate_pct': 100.0}, {'uid': 'district_store:WH_0038', 'warehouse_id': 'WH_0038', 'warehouse_level': 'district_store', 'commodity_category': 'IV_fluids', 'orders_backordered': 2, 'backorder_rate_pct': 100.0}, {'uid': 'district_store:WH_0007', 'warehouse_id': 'WH_0007', 'warehouse_level': 'district_store', 'commodity_category': 'ARVs', 'orders_backordered': 2, 'backorder_rate_pct': 100.0}, {'uid': 'district_store:WH_0050', 'warehouse_id': 'WH_0050', 'warehouse_level': 'district_store', 'commodity_category': 'PPE_IPC_supplies', 'orders_backordered': 5, 'backorder_rate_pct': 100.0}, {'uid': 'district_store:WH_0045', 'warehouse_id': 'WH_0045', 'warehouse_level': 'district_store', 'commodity_category': 'nutrition_commodities', 'orders_backordered': 2, 'backorder_rate_pct': 100.0}, {'uid': 'district_store:WH_0009', 'warehouse_id': 'WH_0009', 'warehouse_level': 'district_store', 'commodity_category': 'essential_medicines', 'orders_backordered': 8, 'backorder_rate_pct': 88.9}, {'uid': 'district_store:WH_0094', 'warehouse_id': 'WH_0094', 'warehouse_level': 'district_store', 'commodity_category': 'vaccines', 'orders_backordered': 8, 'backorder_rate_pct': 88.9}, {'uid': 'district_store:WH_0068', 'warehouse_id': 'WH_0068', 'warehouse_level': 'district_store', 'commodity_category': 'essential_medicines', 'orders_backordered': 7, 'backorder_rate_pct': 87.5}, {'uid': 'district_store:WH_0001', 'warehouse_id': 'WH_0001', 'warehouse_level': 'district_store', 'commodity_category': 'laboratory_reagents', 'orders_backordered': 6, 'backorder_rate_pct': 85.7}, {'uid': 'district_store:WH_0091', 'warehouse_id': 'WH_0091', 'warehouse_level': 'district_store', 'commodity_category': 'essential_medicines', 'orders_backordered': 5, 'backorder_rate_pct': 83.3}, {'uid': 'district_store:WH_0065', 'warehouse_id': 'WH_0065', 'warehouse_level': 'district_store', 'commodity_category': 'nutrition_commodities', 'orders_backordered': 5, 'backorder_rate_pct': 83.3}, {'uid': 'district_store:WH_0054', 'warehouse_id': 'WH_0054', 'warehouse_level': 'district_store', 'commodity_category': 'ARVs', 'orders_backordered': 5, 'backorder_rate_pct': 83.3}, {'uid': 'district_store:WH_0007', 'warehouse_id': 'WH_0007', 'warehouse_level': 'district_store', 'commodity_category': 'IV_fluids', 'orders_backordered': 5, 'backorder_rate_pct': 83.3}, {'uid': 'district_store:WH_0022', 'warehouse_id': 'WH_0022', 'warehouse_level': 'district_store', 'commodity_category': 'laboratory_reagents', 'orders_backordered': 9, 'backorder_rate_pct': 81.8}, {'uid': 'district_store:WH_0067', 'warehouse_id': 'WH_0067', 'warehouse_level': 'district_store', 'commodity_category': 'laboratory_reagents', 'orders_backordered': 4, 'backorder_rate_pct': 80.0}, {'uid': 'district_store:WH_0071', 'warehouse_id': 'WH_0071', 'warehouse_level': 'district_store', 'commodity_category': 'surgical_supplies', 'orders_backordered': 4, 'backorder_rate_pct': 80.0}, {'uid': 'district_store:WH_0028', 'warehouse_id': 'WH_0028', 'warehouse_level': 'district_store', 'commodity_category': 'vaccines', 'orders_backordered': 4, 'backorder_rate_pct': 80.0}, {'uid': 'district_store:WH_0080', 'warehouse_id': 'WH_0080', 'warehouse_level': 'district_store', 'commodity_category': 'essential_medicines', 'orders_backordered': 4, 'backorder_rate_pct': 80.0}, {'uid': 'district_store:WH_0053', 'warehouse_id': 'WH_0053', 'warehouse_level': 'district_store', 'commodity_category': 'controlled_substances', 'orders_backordered': 4, 'backorder_rate_pct': 80.0}, {'uid': 'district_store:WH_0014', 'warehouse_id': 'WH_0014', 'warehouse_level': 'district_store', 'commodity_category': 'controlled_substances', 'orders_backordered': 4, 'backorder_rate_pct': 80.0}, {'uid': 'district_store:WH_0092', 'warehouse_id': 'WH_0092', 'warehouse_level': 'district_store', 'commodity_category': 'vaccines', 'orders_backordered': 4, 'backorder_rate_pct': 80.0}, {'uid': 'district_store:WH_0056', 'warehouse_id': 'WH_0056', 'warehouse_level': 'district_store', 'commodity_category': 'malaria_commodities', 'orders_backordered': 4, 'backorder_rate_pct': 80.0}, {'uid': 'district_store:WH_0005', 'warehouse_id': 'WH_0005', 'warehouse_level': 'district_store', 'commodity_category': 'contraceptives', 'orders_backordered': 4, 'backorder_rate_pct': 80.0}, {'uid': 'district_store:WH_0010', 'warehouse_id': 'WH_0010', 'warehouse_level': 'district_store', 'commodity_category': 'malaria_commodities', 'orders_backordered': 7, 'backorder_rate_pct': 77.8}, {'uid': 'district_store:WH_0054', 'warehouse_id': 'WH_0054', 'warehouse_level': 'district_store', 'commodity_category': 'contraceptives', 'orders_backordered': 3, 'backorder_rate_pct': 75.0}, {'uid': 'district_store:WH_0063', 'warehouse_id': 'WH_0063', 'warehouse_level': 'district_store', 'commodity_category': 'surgical_supplies', 'orders_backordered': 3, 'backorder_rate_pct': 75.0}, {'uid': 'district_store:WH_0026', 'warehouse_id': 'WH_0026', 'warehouse_level': 'district_store', 'commodity_category': 'laboratory_reagents', 'orders_backordered': 3, 'backorder_rate_pct': 75.0}, {'uid': 'district_store:WH_0038', 'warehouse_id': 'WH_0038', 'warehouse_level': 'district_store', 'commodity_category': 'nutrition_commodities', 'orders_backordered': 3, 'backorder_rate_pct': 75.0}, {'uid': 'district_store:WH_0094', 'warehouse_id': 'WH_0094', 'warehouse_level': 'district_store', 'commodity_category': 'PPE_IPC_supplies', 'orders_backordered': 5, 'backorder_rate_pct': 71.4}, {'uid': 'district_store:WH_0054', 'warehouse_id': 'WH_0054', 'warehouse_level': 'district_store', 'commodity_category': 'surgical_supplies', 'orders_backordered': 5, 'backorder_rate_pct': 71.4}, {'uid': 'district_store:WH_0078', 'warehouse_id': 'WH_0078', 'warehouse_level': 'district_store', 'commodity_category': 'contraceptives', 'orders_backordered': 5, 'backorder_rate_pct': 71.4}, {'uid': 'district_store:WH_0032', 'warehouse_id': 'WH_0032', 'warehouse_level': 'district_store', 'commodity_category': 'contraceptives', 'orders_backordered': 2, 'backorder_rate_pct': 66.7}, {'uid': 'district_store:WH_0062', 'warehouse_id': 'WH_0062', 'warehouse_level': 'district_store', 'commodity_category': 'malaria_commodities', 'orders_backordered': 4, 'backorder_rate_pct': 66.7}, {'uid': 'district_store:WH_0036', 'warehouse_id': 'WH_0036', 'warehouse_level': 'district_store', 'commodity_category': 'essential_medicines', 'orders_backordered': 2, 'backorder_rate_pct': 66.7}, {'uid': 'district_store:WH_0087', 'warehouse_id': 'WH_0087', 'warehouse_level': 'district_store', 'commodity_category': 'vaccines', 'orders_backordered': 4, 'backorder_rate_pct': 66.7}, {'uid': 'district_store:WH_0048', 'warehouse_id': 'WH_0048', 'warehouse_level': 'district_store', 'commodity_category': 'medical_devices_consumables', 'orders_backordered': 2, 'backorder_rate_pct': 66.7}, {'uid': 'district_store:WH_0011', 'warehouse_id': 'WH_0011', 'warehouse_level': 'district_store', 'commodity_category': 'vaccines', 'orders_backordered': 4, 'backorder_rate_pct': 66.7}, {'uid': 'district_store:WH_0019', 'warehouse_id': 'WH_0019', 'warehouse_level': 'district_store', 'commodity_category': 'controlled_substances', 'orders_backordered': 2, 'backorder_rate_pct': 66.7}, {'uid': 'district_store:WH_0033', 'warehouse_id': 'WH_0033', 'warehouse_level': 'district_store', 'commodity_category': 'malaria_commodities', 'orders_backordered': 5, 'backorder_rate_pct': 62.5}, {'uid': 'district_store:WH_0019', 'warehouse_id': 'WH_0019', 'warehouse_level': 'district_store', 'commodity_category': 'nutrition_commodities', 'orders_backordered': 3, 'backorder_rate_pct': 60.0}, {'uid': 'district_store:WH_0033', 'warehouse_id': 'WH_0033', 'warehouse_level': 'district_store', 'commodity_category': 'laboratory_reagents', 'orders_backordered': 4, 'backorder_rate_pct': 57.1}, {'uid': 'district_store:WH_0070', 'warehouse_id': 'WH_0070', 'warehouse_level': 'district_store', 'commodity_category': 'vaccines', 'orders_backordered': 4, 'backorder_rate_pct': 57.1}, {'uid': 'district_store:WH_0006', 'warehouse_id': 'WH_0006', 'warehouse_level': 'district_store', 'commodity_category': 'controlled_substances', 'orders_backordered': 5, 'backorder_rate_pct': 55.6}, {'uid': 'district_store:WH_0024', 'warehouse_id': 'WH_0024', 'warehouse_level': 'district_store', 'commodity_category': 'nutrition_commodities', 'orders_backordered': 3, 'backorder_rate_pct': 50.0}, {'uid': 'district_store:WH_0009', 'warehouse_id': 'WH_0009', 'warehouse_level': 'district_store', 'commodity_category': 'IV_fluids', 'orders_backordered': 2, 'backorder_rate_pct': 50.0}, {'uid': 'district_store:WH_0018', 'warehouse_id': 'WH_0018', 'warehouse_level': 'district_store', 'commodity_category': 'nutrition_commodities', 'orders_backordered': 4, 'backorder_rate_pct': 44.4}], 'national_CMS': [{'uid': 'national_CMS:WH_0088', 'warehouse_id': 'WH_0088', 'warehouse_level': 'national_CMS', 'commodity_category': 'malaria_commodities', 'orders_backordered': 32, 'backorder_rate_pct': 61.5}, {'uid': 'national_CMS:WH_0075', 'warehouse_id': 'WH_0075', 'warehouse_level': 'national_CMS', 'commodity_category': 'PPE_IPC_supplies', 'orders_backordered': 32, 'backorder_rate_pct': 59.3}, {'uid': 'national_CMS:WH_0041', 'warehouse_id': 'WH_0041', 'warehouse_level': 'national_CMS', 'commodity_category': 'laboratory_reagents', 'orders_backordered': 23, 'backorder_rate_pct': 52.3}, {'uid': 'national_CMS:WH_0001', 'warehouse_id': 'WH_0001', 'warehouse_level': 'national_CMS', 'commodity_category': 'IV_fluids', 'orders_backordered': 26, 'backorder_rate_pct': 50.0}, {'uid': 'national_CMS:WH_0040', 'warehouse_id': 'WH_0040', 'warehouse_level': 'national_CMS', 'commodity_category': 'ARVs', 'orders_backordered': 27, 'backorder_rate_pct': 45.8}, {'uid': 'national_CMS:WH_0099', 'warehouse_id': 'WH_0099', 'warehouse_level': 'national_CMS', 'commodity_category': 'controlled_substances', 'orders_backordered': 21, 'backorder_rate_pct': 44.7}, {'uid': 'national_CMS:WH_0075', 'warehouse_id': 'WH_0075', 'warehouse_level': 'national_CMS', 'commodity_category': 'PPE_IPC_supplies', 'orders_backordered': 24, 'backorder_rate_pct': 44.4}, {'uid': 'national_CMS:WH_0031', 'warehouse_id': 'WH_0031', 'warehouse_level': 'national_CMS', 'commodity_category': 'vaccines', 'orders_backordered': 16, 'backorder_rate_pct': 42.1}, {'uid': 'national_CMS:WH_0094', 'warehouse_id': 'WH_0094', 'warehouse_level': 'national_CMS', 'commodity_category': 'essential_medicines', 'orders_backordered': 23, 'backorder_rate_pct': 40.4}, {'uid': 'national_CMS:WH_0078', 'warehouse_id': 'WH_0078', 'warehouse_level': 'national_CMS', 'commodity_category': 'contraceptives', 'orders_backordered': 17, 'backorder_rate_pct': 39.5}, {'uid': 'national_CMS:WH_0040', 'warehouse_id': 'WH_0040', 'warehouse_level': 'national_CMS', 'commodity_category': 'PPE_IPC_supplies', 'orders_backordered': 20, 'backorder_rate_pct': 39.2}, {'uid': 'national_CMS:WH_0082', 'warehouse_id': 'WH_0082', 'warehouse_level': 'national_CMS', 'commodity_category': 'nutrition_commodities', 'orders_backordered': 16, 'backorder_rate_pct': 39.0}, {'uid': 'national_CMS:WH_0026', 'warehouse_id': 'WH_0026', 'warehouse_level': 'national_CMS', 'commodity_category': 'surgical_supplies', 'orders_backordered': 16, 'backorder_rate_pct': 39.0}, {'uid': 'national_CMS:WH_0017', 'warehouse_id': 'WH_0017', 'warehouse_level': 'national_CMS', 'commodity_category': 'surgical_supplies', 'orders_backordered': 21, 'backorder_rate_pct': 38.9}, {'uid': 'national_CMS:WH_0060', 'warehouse_id': 'WH_0060', 'warehouse_level': 'national_CMS', 'commodity_category': 'essential_medicines', 'orders_backordered': 23, 'backorder_rate_pct': 38.3}, {'uid': 'national_CMS:WH_0098', 'warehouse_id': 'WH_0098', 'warehouse_level': 'national_CMS', 'commodity_category': 'PPE_IPC_supplies', 'orders_backordered': 17, 'backorder_rate_pct': 37.8}, {'uid': 'national_CMS:WH_0074', 'warehouse_id': 'WH_0074', 'warehouse_level': 'national_CMS', 'commodity_category': 'nutrition_commodities', 'orders_backordered': 19, 'backorder_rate_pct': 37.3}, {'uid': 'national_CMS:WH_0003', 'warehouse_id': 'WH_0003', 'warehouse_level': 'national_CMS', 'commodity_category': 'medical_devices_consumables', 'orders_backordered': 19, 'backorder_rate_pct': 35.8}, {'uid': 'national_CMS:WH_0093', 'warehouse_id': 'WH_0093', 'warehouse_level': 'national_CMS', 'commodity_category': 'contraceptives', 'orders_backordered': 20, 'backorder_rate_pct': 35.7}, {'uid': 'national_CMS:WH_0012', 'warehouse_id': 'WH_0012', 'warehouse_level': 'national_CMS', 'commodity_category': 'medical_devices_consumables', 'orders_backordered': 15, 'backorder_rate_pct': 34.9}, {'uid': 'national_CMS:WH_0007', 'warehouse_id': 'WH_0007', 'warehouse_level': 'national_CMS', 'commodity_category': 'ARVs', 'orders_backordered': 17, 'backorder_rate_pct': 34.7}, {'uid': 'national_CMS:WH_0019', 'warehouse_id': 'WH_0019', 'warehouse_level': 'national_CMS', 'commodity_category': 'surgical_supplies', 'orders_backordered': 18, 'backorder_rate_pct': 34.6}, {'uid': 'national_CMS:WH_0098', 'warehouse_id': 'WH_0098', 'warehouse_level': 'national_CMS', 'commodity_category': 'surgical_supplies', 'orders_backordered': 14, 'backorder_rate_pct': 33.3}, {'uid': 'national_CMS:WH_0016', 'warehouse_id': 'WH_0016', 'warehouse_level': 'national_CMS', 'commodity_category': 'IV_fluids', 'orders_backordered': 17, 'backorder_rate_pct': 32.7}, {'uid': 'national_CMS:WH_0099', 'warehouse_id': 'WH_0099', 'warehouse_level': 'national_CMS', 'commodity_category': 'nutrition_commodities', 'orders_backordered': 16, 'backorder_rate_pct': 32.7}, {'uid': 'national_CMS:WH_0082', 'warehouse_id': 'WH_0082', 'warehouse_level': 'national_CMS', 'commodity_category': 'surgical_supplies', 'orders_backordered': 15, 'backorder_rate_pct': 32.6}, {'uid': 'national_CMS:WH_0052', 'warehouse_id': 'WH_0052', 'warehouse_level': 'national_CMS', 'commodity_category': 'PPE_IPC_supplies', 'orders_backordered': 18, 'backorder_rate_pct': 32.1}, {'uid': 'national_CMS:WH_0019', 'warehouse_id': 'WH_0019', 'warehouse_level': 'national_CMS', 'commodity_category': 'contraceptives', 'orders_backordered': 16, 'backorder_rate_pct': 32.0}, {'uid': 'national_CMS:WH_0008', 'warehouse_id': 'WH_0008', 'warehouse_level': 'national_CMS', 'commodity_category': 'essential_medicines', 'orders_backordered': 15, 'backorder_rate_pct': 31.2}, {'uid': 'national_CMS:WH_0074', 'warehouse_id': 'WH_0074', 'warehouse_level': 'national_CMS', 'commodity_category': 'PPE_IPC_supplies', 'orders_backordered': 18, 'backorder_rate_pct': 31.0}, {'uid': 'national_CMS:WH_0018', 'warehouse_id': 'WH_0018', 'warehouse_level': 'national_CMS', 'commodity_category': 'vaccines', 'orders_backordered': 15, 'backorder_rate_pct': 30.6}, {'uid': 'national_CMS:WH_0077', 'warehouse_id': 'WH_0077', 'warehouse_level': 'national_CMS', 'commodity_category': 'vaccines', 'orders_backordered': 14, 'backorder_rate_pct': 28.6}, {'uid': 'national_CMS:WH_0079', 'warehouse_id': 'WH_0079', 'warehouse_level': 'national_CMS', 'commodity_category': 'laboratory_reagents', 'orders_backordered': 16, 'backorder_rate_pct': 28.6}, {'uid': 'national_CMS:WH_0080', 'warehouse_id': 'WH_0080', 'warehouse_level': 'national_CMS', 'commodity_category': 'controlled_substances', 'orders_backordered': 15, 'backorder_rate_pct': 27.3}, {'uid': 'national_CMS:WH_0050', 'warehouse_id': 'WH_0050', 'warehouse_level': 'national_CMS', 'commodity_category': 'laboratory_reagents', 'orders_backordered': 13, 'backorder_rate_pct': 27.1}, {'uid': 'national_CMS:WH_0004', 'warehouse_id': 'WH_0004', 'warehouse_level': 'national_CMS', 'commodity_category': 'surgical_supplies', 'orders_backordered': 11, 'backorder_rate_pct': 26.8}, {'uid': 'national_CMS:WH_0069', 'warehouse_id': 'WH_0069', 'warehouse_level': 'national_CMS', 'commodity_category': 'laboratory_reagents', 'orders_backordered': 15, 'backorder_rate_pct': 26.8}, {'uid': 'national_CMS:WH_0064', 'warehouse_id': 'WH_0064', 'warehouse_level': 'national_CMS', 'commodity_category': 'IV_fluids', 'orders_backordered': 14, 'backorder_rate_pct': 26.4}, {'uid': 'national_CMS:WH_0011', 'warehouse_id': 'WH_0011', 'warehouse_level': 'national_CMS', 'commodity_category': 'nutrition_commodities', 'orders_backordered': 15, 'backorder_rate_pct': 25.9}, {'uid': 'national_CMS:WH_0047', 'warehouse_id': 'WH_0047', 'warehouse_level': 'national_CMS', 'commodity_category': 'essential_medicines', 'orders_backordered': 14, 'backorder_rate_pct': 25.5}, {'uid': 'national_CMS:WH_0076', 'warehouse_id': 'WH_0076', 'warehouse_level': 'national_CMS', 'commodity_category': 'surgical_supplies', 'orders_backordered': 12, 'backorder_rate_pct': 25.0}, {'uid': 'national_CMS:WH_0047', 'warehouse_id': 'WH_0047', 'warehouse_level': 'national_CMS', 'commodity_category': 'IV_fluids', 'orders_backordered': 10, 'backorder_rate_pct': 24.4}, {'uid': 'national_CMS:WH_0001', 'warehouse_id': 'WH_0001', 'warehouse_level': 'national_CMS', 'commodity_category': 'controlled_substances', 'orders_backordered': 16, 'backorder_rate_pct': 24.2}, {'uid': 'national_CMS:WH_0092', 'warehouse_id': 'WH_0092', 'warehouse_level': 'national_CMS', 'commodity_category': 'medical_devices_consumables', 'orders_backordered': 9, 'backorder_rate_pct': 23.7}, {'uid': 'national_CMS:WH_0015', 'warehouse_id': 'WH_0015', 'warehouse_level': 'national_CMS', 'commodity_category': 'essential_medicines', 'orders_backordered': 13, 'backorder_rate_pct': 22.8}, {'uid': 'national_CMS:WH_0055', 'warehouse_id': 'WH_0055', 'warehouse_level': 'national_CMS', 'commodity_category': 'medical_devices_consumables', 'orders_backordered': 9, 'backorder_rate_pct': 22.0}, {'uid': 'national_CMS:WH_0096', 'warehouse_id': 'WH_0096', 'warehouse_level': 'national_CMS', 'commodity_category': 'malaria_commodities', 'orders_backordered': 8, 'backorder_rate_pct': 20.5}, {'uid': 'national_CMS:WH_0034', 'warehouse_id': 'WH_0034', 'warehouse_level': 'national_CMS', 'commodity_category': 'IV_fluids', 'orders_backordered': 10, 'backorder_rate_pct': 20.4}, {'uid': 'national_CMS:WH_0024', 'warehouse_id': 'WH_0024', 'warehouse_level': 'national_CMS', 'commodity_category': 'PPE_IPC_supplies', 'orders_backordered': 12, 'backorder_rate_pct': 20.0}, {'uid': 'national_CMS:WH_0068', 'warehouse_id': 'WH_0068', 'warehouse_level': 'national_CMS', 'commodity_category': 'surgical_supplies', 'orders_backordered': 10, 'backorder_rate_pct': 19.2}, {'uid': 'national_CMS:WH_0021', 'warehouse_id': 'WH_0021', 'warehouse_level': 'national_CMS', 'commodity_category': 'surgical_supplies', 'orders_backordered': 11, 'backorder_rate_pct': 18.6}, {'uid': 'national_CMS:WH_0081', 'warehouse_id': 'WH_0081', 'warehouse_level': 'national_CMS', 'commodity_category': 'laboratory_reagents', 'orders_backordered': 10, 'backorder_rate_pct': 17.9}, {'uid': 'national_CMS:WH_0049', 'warehouse_id': 'WH_0049', 'warehouse_level': 'national_CMS', 'commodity_category': 'medical_devices_consumables', 'orders_backordered': 8, 'backorder_rate_pct': 17.4}, {'uid': 'national_CMS:WH_0020', 'warehouse_id': 'WH_0020', 'warehouse_level': 'national_CMS', 'commodity_category': 'ARVs', 'orders_backordered': 8, 'backorder_rate_pct': 16.7}, {'uid': 'national_CMS:WH_0074', 'warehouse_id': 'WH_0074', 'warehouse_level': 'national_CMS', 'commodity_category': 'vaccines', 'orders_backordered': 9, 'backorder_rate_pct': 16.7}, {'uid': 'national_CMS:WH_0089', 'warehouse_id': 'WH_0089', 'warehouse_level': 'national_CMS', 'commodity_category': 'nutrition_commodities', 'orders_backordered': 7, 'backorder_rate_pct': 15.9}, {'uid': 'national_CMS:WH_0053', 'warehouse_id': 'WH_0053', 'warehouse_level': 'national_CMS', 'commodity_category': 'PPE_IPC_supplies', 'orders_backordered': 7, 'backorder_rate_pct': 14.6}, {'uid': 'national_CMS:WH_0086', 'warehouse_id': 'WH_0086', 'warehouse_level': 'national_CMS', 'commodity_category': 'medical_devices_consumables', 'orders_backordered': 9, 'backorder_rate_pct': 13.6}, {'uid': 'national_CMS:WH_0039', 'warehouse_id': 'WH_0039', 'warehouse_level': 'national_CMS', 'commodity_category': 'essential_medicines', 'orders_backordered': 8, 'backorder_rate_pct': 13.3}, {'uid': 'national_CMS:WH_0002', 'warehouse_id': 'WH_0002', 'warehouse_level': 'national_CMS', 'commodity_category': 'ARVs', 'orders_backordered': 5, 'backorder_rate_pct': 11.4}, {'uid': 'national_CMS:WH_0009', 'warehouse_id': 'WH_0009', 'warehouse_level': 'national_CMS', 'commodity_category': 'essential_medicines', 'orders_backordered': 6, 'backorder_rate_pct': 11.3}, {'uid': 'national_CMS:WH_0096', 'warehouse_id': 'WH_0096', 'warehouse_level': 'national_CMS', 'commodity_category': 'vaccines', 'orders_backordered': 5, 'backorder_rate_pct': 10.4}, {'uid': 'national_CMS:WH_0034', 'warehouse_id': 'WH_0034', 'warehouse_level': 'national_CMS', 'commodity_category': 'surgical_supplies', 'orders_backordered': 3, 'backorder_rate_pct': 10.3}, {'uid': 'national_CMS:WH_0046', 'warehouse_id': 'WH_0046', 'warehouse_level': 'national_CMS', 'commodity_category': 'malaria_commodities', 'orders_backordered': 4, 'backorder_rate_pct': 9.8}, {'uid': 'national_CMS:WH_0091', 'warehouse_id': 'WH_0091', 'warehouse_level': 'national_CMS', 'commodity_category': 'controlled_substances', 'orders_backordered': 4, 'backorder_rate_pct': 9.3}, {'uid': 'national_CMS:WH_0034', 'warehouse_id': 'WH_0034', 'warehouse_level': 'national_CMS', 'commodity_category': 'surgical_supplies', 'orders_backordered': 3, 'backorder_rate_pct': 7.0}, {'uid': 'national_CMS:WH_0095', 'warehouse_id': 'WH_0095', 'warehouse_level': 'national_CMS', 'commodity_category': 'IV_fluids', 'orders_backordered': 4, 'backorder_rate_pct': 6.3}, {'uid': 'national_CMS:WH_0032', 'warehouse_id': 'WH_0032', 'warehouse_level': 'national_CMS', 'commodity_category': 'ARVs', 'orders_backordered': 1, 'backorder_rate_pct': 2.0}], 'regional_warehouse': [{'uid': 'regional_warehouse:WH_0054', 'warehouse_id': 'WH_0054', 'warehouse_level': 'regional_warehouse', 'commodity_category': 'laboratory_reagents', 'orders_backordered': 12, 'backorder_rate_pct': 92.3}, {'uid': 'regional_warehouse:WH_0096', 'warehouse_id': 'WH_0096', 'warehouse_level': 'regional_warehouse', 'commodity_category': 'surgical_supplies', 'orders_backordered': 5, 'backorder_rate_pct': 83.3}, {'uid': 'regional_warehouse:WH_0050', 'warehouse_id': 'WH_0050', 'warehouse_level': 'regional_warehouse', 'commodity_category': 'medical_devices_consumables', 'orders_backordered': 10, 'backorder_rate_pct': 76.9}, {'uid': 'regional_warehouse:WH_0044', 'warehouse_id': 'WH_0044', 'warehouse_level': 'regional_warehouse', 'commodity_category': 'nutrition_commodities', 'orders_backordered': 6, 'backorder_rate_pct': 75.0}, {'uid': 'regional_warehouse:WH_0042', 'warehouse_id': 'WH_0042', 'warehouse_level': 'regional_warehouse', 'commodity_category': 'laboratory_reagents', 'orders_backordered': 12, 'backorder_rate_pct': 75.0}, {'uid': 'regional_warehouse:WH_0022', 'warehouse_id': 'WH_0022', 'warehouse_level': 'regional_warehouse', 'commodity_category': 'contraceptives', 'orders_backordered': 9, 'backorder_rate_pct': 75.0}, {'uid': 'regional_warehouse:WH_0089', 'warehouse_id': 'WH_0089', 'warehouse_level': 'regional_warehouse', 'commodity_category': 'essential_medicines', 'orders_backordered': 12, 'backorder_rate_pct': 70.6}, {'uid': 'regional_warehouse:WH_0028', 'warehouse_id': 'WH_0028', 'warehouse_level': 'regional_warehouse', 'commodity_category': 'vaccines', 'orders_backordered': 9, 'backorder_rate_pct': 69.2}, {'uid': 'regional_warehouse:WH_0073', 'warehouse_id': 'WH_0073', 'warehouse_level': 'regional_warehouse', 'commodity_category': 'contraceptives', 'orders_backordered': 10, 'backorder_rate_pct': 66.7}, {'uid': 'regional_warehouse:WH_0047', 'warehouse_id': 'WH_0047', 'warehouse_level': 'regional_warehouse', 'commodity_category': 'laboratory_reagents', 'orders_backordered': 8, 'backorder_rate_pct': 66.7}, {'uid': 'regional_warehouse:WH_0092', 'warehouse_id': 'WH_0092', 'warehouse_level': 'regional_warehouse', 'commodity_category': 'contraceptives', 'orders_backordered': 6, 'backorder_rate_pct': 66.7}, {'uid': 'regional_warehouse:WH_0030', 'warehouse_id': 'WH_0030', 'warehouse_level': 'regional_warehouse', 'commodity_category': 'contraceptives', 'orders_backordered': 6, 'backorder_rate_pct': 66.7}, {'uid': 'regional_warehouse:WH_0090', 'warehouse_id': 'WH_0090', 'warehouse_level': 'regional_warehouse', 'commodity_category': 'laboratory_reagents', 'orders_backordered': 6, 'backorder_rate_pct': 66.7}, {'uid': 'regional_warehouse:WH_0064', 'warehouse_id': 'WH_0064', 'warehouse_level': 'regional_warehouse', 'commodity_category': 'laboratory_reagents', 'orders_backordered': 16, 'backorder_rate_pct': 66.7}, {'uid': 'regional_warehouse:WH_0021', 'warehouse_id': 'WH_0021', 'warehouse_level': 'regional_warehouse', 'commodity_category': 'PPE_IPC_supplies', 'orders_backordered': 13, 'backorder_rate_pct': 65.0}, {'uid': 'regional_warehouse:WH_0066', 'warehouse_id': 'WH_0066', 'warehouse_level': 'regional_warehouse', 'commodity_category': 'surgical_supplies', 'orders_backordered': 9, 'backorder_rate_pct': 64.3}, {'uid': 'regional_warehouse:WH_0041', 'warehouse_id': 'WH_0041', 'warehouse_level': 'regional_warehouse', 'commodity_category': 'medical_devices_consumables', 'orders_backordered': 11, 'backorder_rate_pct': 61.1}, {'uid': 'regional_warehouse:WH_0079', 'warehouse_id': 'WH_0079', 'warehouse_level': 'regional_warehouse', 'commodity_category': 'essential_medicines', 'orders_backordered': 6, 'backorder_rate_pct': 60.0}, {'uid': 'regional_warehouse:WH_0029', 'warehouse_id': 'WH_0029', 'warehouse_level': 'regional_warehouse', 'commodity_category': 'essential_medicines', 'orders_backordered': 9, 'backorder_rate_pct': 60.0}, {'uid': 'regional_warehouse:WH_0025', 'warehouse_id': 'WH_0025', 'warehouse_level': 'regional_warehouse', 'commodity_category': 'malaria_commodities', 'orders_backordered': 6, 'backorder_rate_pct': 60.0}, {'uid': 'regional_warehouse:WH_0088', 'warehouse_id': 'WH_0088', 'warehouse_level': 'regional_warehouse', 'commodity_category': 'IV_fluids', 'orders_backordered': 6, 'backorder_rate_pct': 60.0}, {'uid': 'regional_warehouse:WH_0096', 'warehouse_id': 'WH_0096', 'warehouse_level': 'regional_warehouse', 'commodity_category': 'controlled_substances', 'orders_backordered': 6, 'backorder_rate_pct': 60.0}, {'uid': 'regional_warehouse:WH_0053', 'warehouse_id': 'WH_0053', 'warehouse_level': 'regional_warehouse', 'commodity_category': 'ARVs', 'orders_backordered': 6, 'backorder_rate_pct': 60.0}, {'uid': 'regional_warehouse:WH_0032', 'warehouse_id': 'WH_0032', 'warehouse_level': 'regional_warehouse', 'commodity_category': 'controlled_substances', 'orders_backordered': 6, 'backorder_rate_pct': 60.0}, {'uid': 'regional_warehouse:WH_0021', 'warehouse_id': 'WH_0021', 'warehouse_level': 'regional_warehouse', 'commodity_category': 'PPE_IPC_supplies', 'orders_backordered': 16, 'backorder_rate_pct': 57.1}, {'uid': 'regional_warehouse:WH_0075', 'warehouse_id': 'WH_0075', 'warehouse_level': 'regional_warehouse', 'commodity_category': 'medical_devices_consumables', 'orders_backordered': 8, 'backorder_rate_pct': 57.1}, {'uid': 'regional_warehouse:WH_0098', 'warehouse_id': 'WH_0098', 'warehouse_level': 'regional_warehouse', 'commodity_category': 'malaria_commodities', 'orders_backordered': 6, 'backorder_rate_pct': 54.5}, {'uid': 'regional_warehouse:WH_0070', 'warehouse_id': 'WH_0070', 'warehouse_level': 'regional_warehouse', 'commodity_category': 'vaccines', 'orders_backordered': 8, 'backorder_rate_pct': 53.3}, {'uid': 'regional_warehouse:WH_0017', 'warehouse_id': 'WH_0017', 'warehouse_level': 'regional_warehouse', 'commodity_category': 'medical_devices_consumables', 'orders_backordered': 9, 'backorder_rate_pct': 52.9}, {'uid': 'regional_warehouse:WH_0046', 'warehouse_id': 'WH_0046', 'warehouse_level': 'regional_warehouse', 'commodity_category': 'contraceptives', 'orders_backordered': 5, 'backorder_rate_pct': 50.0}, {'uid': 'regional_warehouse:WH_0004', 'warehouse_id': 'WH_0004', 'warehouse_level': 'regional_warehouse', 'commodity_category': 'malaria_commodities', 'orders_backordered': 8, 'backorder_rate_pct': 50.0}, {'uid': 'regional_warehouse:WH_0025', 'warehouse_id': 'WH_0025', 'warehouse_level': 'regional_warehouse', 'commodity_category': 'ARVs', 'orders_backordered': 9, 'backorder_rate_pct': 50.0}, {'uid': 'regional_warehouse:WH_0021', 'warehouse_id': 'WH_0021', 'warehouse_level': 'regional_warehouse', 'commodity_category': 'IV_fluids', 'orders_backordered': 5, 'backorder_rate_pct': 50.0}, {'uid': 'regional_warehouse:WH_0009', 'warehouse_id': 'WH_0009', 'warehouse_level': 'regional_warehouse', 'commodity_category': 'ARVs', 'orders_backordered': 8, 'backorder_rate_pct': 50.0}, {'uid': 'regional_warehouse:WH_0037', 'warehouse_id': 'WH_0037', 'warehouse_level': 'regional_warehouse', 'commodity_category': 'ARVs', 'orders_backordered': 8, 'backorder_rate_pct': 47.1}, {'uid': 'regional_warehouse:WH_0025', 'warehouse_id': 'WH_0025', 'warehouse_level': 'regional_warehouse', 'commodity_category': 'vaccines', 'orders_backordered': 8, 'backorder_rate_pct': 47.1}, {'uid': 'regional_warehouse:WH_0005', 'warehouse_id': 'WH_0005', 'warehouse_level': 'regional_warehouse', 'commodity_category': 'PPE_IPC_supplies', 'orders_backordered': 8, 'backorder_rate_pct': 47.1}, {'uid': 'regional_warehouse:WH_0091', 'warehouse_id': 'WH_0091', 'warehouse_level': 'regional_warehouse', 'commodity_category': 'medical_devices_consumables', 'orders_backordered': 8, 'backorder_rate_pct': 47.1}, {'uid': 'regional_warehouse:WH_0001', 'warehouse_id': 'WH_0001', 'warehouse_level': 'regional_warehouse', 'commodity_category': 'laboratory_reagents', 'orders_backordered': 8, 'backorder_rate_pct': 47.1}, {'uid': 'regional_warehouse:WH_0063', 'warehouse_id': 'WH_0063', 'warehouse_level': 'regional_warehouse', 'commodity_category': 'IV_fluids', 'orders_backordered': 7, 'backorder_rate_pct': 46.7}, {'uid': 'regional_warehouse:WH_0045', 'warehouse_id': 'WH_0045', 'warehouse_level': 'regional_warehouse', 'commodity_category': 'PPE_IPC_supplies', 'orders_backordered': 7, 'backorder_rate_pct': 46.7}, {'uid': 'regional_warehouse:WH_0066', 'warehouse_id': 'WH_0066', 'warehouse_level': 'regional_warehouse', 'commodity_category': 'contraceptives', 'orders_backordered': 6, 'backorder_rate_pct': 46.2}, {'uid': 'regional_warehouse:WH_0006', 'warehouse_id': 'WH_0006', 'warehouse_level': 'regional_warehouse', 'commodity_category': 'malaria_commodities', 'orders_backordered': 6, 'backorder_rate_pct': 46.2}, {'uid': 'regional_warehouse:WH_0046', 'warehouse_id': 'WH_0046', 'warehouse_level': 'regional_warehouse', 'commodity_category': 'malaria_commodities', 'orders_backordered': 6, 'backorder_rate_pct': 46.2}, {'uid': 'regional_warehouse:WH_0053', 'warehouse_id': 'WH_0053', 'warehouse_level': 'regional_warehouse', 'commodity_category': 'contraceptives', 'orders_backordered': 5, 'backorder_rate_pct': 45.5}, {'uid': 'regional_warehouse:WH_0011', 'warehouse_id': 'WH_0011', 'warehouse_level': 'regional_warehouse', 'commodity_category': 'nutrition_commodities', 'orders_backordered': 5, 'backorder_rate_pct': 45.5}, {'uid': 'regional_warehouse:WH_0013', 'warehouse_id': 'WH_0013', 'warehouse_level': 'regional_warehouse', 'commodity_category': 'surgical_supplies', 'orders_backordered': 5, 'backorder_rate_pct': 45.5}, {'uid': 'regional_warehouse:WH_0009', 'warehouse_id': 'WH_0009', 'warehouse_level': 'regional_warehouse', 'commodity_category': 'essential_medicines', 'orders_backordered': 7, 'backorder_rate_pct': 43.8}, {'uid': 'regional_warehouse:WH_0012', 'warehouse_id': 'WH_0012', 'warehouse_level': 'regional_warehouse', 'commodity_category': 'vaccines', 'orders_backordered': 7, 'backorder_rate_pct': 43.8}, {'uid': 'regional_warehouse:WH_0060', 'warehouse_id': 'WH_0060', 'warehouse_level': 'regional_warehouse', 'commodity_category': 'malaria_commodities', 'orders_backordered': 7, 'backorder_rate_pct': 43.8}, {'uid': 'regional_warehouse:WH_0052', 'warehouse_id': 'WH_0052', 'warehouse_level': 'regional_warehouse', 'commodity_category': 'nutrition_commodities', 'orders_backordered': 7, 'backorder_rate_pct': 41.2}, {'uid': 'regional_warehouse:WH_0082', 'warehouse_id': 'WH_0082', 'warehouse_level': 'regional_warehouse', 'commodity_category': 'nutrition_commodities', 'orders_backordered': 5, 'backorder_rate_pct': 38.5}, {'uid': 'regional_warehouse:WH_0028', 'warehouse_id': 'WH_0028', 'warehouse_level': 'regional_warehouse', 'commodity_category': 'IV_fluids', 'orders_backordered': 5, 'backorder_rate_pct': 38.5}, {'uid': 'regional_warehouse:WH_0074', 'warehouse_id': 'WH_0074', 'warehouse_level': 'regional_warehouse', 'commodity_category': 'ARVs', 'orders_backordered': 8, 'backorder_rate_pct': 38.1}, {'uid': 'regional_warehouse:WH_0027', 'warehouse_id': 'WH_0027', 'warehouse_level': 'regional_warehouse', 'commodity_category': 'surgical_supplies', 'orders_backordered': 3, 'backorder_rate_pct': 37.5}, {'uid': 'regional_warehouse:WH_0055', 'warehouse_id': 'WH_0055', 'warehouse_level': 'regional_warehouse', 'commodity_category': 'vaccines', 'orders_backordered': 7, 'backorder_rate_pct': 36.8}, {'uid': 'regional_warehouse:WH_0050', 'warehouse_id': 'WH_0050', 'warehouse_level': 'regional_warehouse', 'commodity_category': 'laboratory_reagents', 'orders_backordered': 4, 'backorder_rate_pct': 36.4}, {'uid': 'regional_warehouse:WH_0007', 'warehouse_id': 'WH_0007', 'warehouse_level': 'regional_warehouse', 'commodity_category': 'controlled_substances', 'orders_backordered': 9, 'backorder_rate_pct': 36.0}, {'uid': 'regional_warehouse:WH_0052', 'warehouse_id': 'WH_0052', 'warehouse_level': 'regional_warehouse', 'commodity_category': 'IV_fluids', 'orders_backordered': 7, 'backorder_rate_pct': 35.0}, {'uid': 'regional_warehouse:WH_0051', 'warehouse_id': 'WH_0051', 'warehouse_level': 'regional_warehouse', 'commodity_category': 'medical_devices_consumables', 'orders_backordered': 5, 'backorder_rate_pct': 33.3}, {'uid': 'regional_warehouse:WH_0003', 'warehouse_id': 'WH_0003', 'warehouse_level': 'regional_warehouse', 'commodity_category': 'PPE_IPC_supplies', 'orders_backordered': 5, 'backorder_rate_pct': 33.3}, {'uid': 'regional_warehouse:WH_0073', 'warehouse_id': 'WH_0073', 'warehouse_level': 'regional_warehouse', 'commodity_category': 'malaria_commodities', 'orders_backordered': 3, 'backorder_rate_pct': 33.3}, {'uid': 'regional_warehouse:WH_0082', 'warehouse_id': 'WH_0082', 'warehouse_level': 'regional_warehouse', 'commodity_category': 'controlled_substances', 'orders_backordered': 4, 'backorder_rate_pct': 30.8}, {'uid': 'regional_warehouse:WH_0008', 'warehouse_id': 'WH_0008', 'warehouse_level': 'regional_warehouse', 'commodity_category': 'malaria_commodities', 'orders_backordered': 3, 'backorder_rate_pct': 30.0}, {'uid': 'regional_warehouse:WH_0099', 'warehouse_id': 'WH_0099', 'warehouse_level': 'regional_warehouse', 'commodity_category': 'contraceptives', 'orders_backordered': 6, 'backorder_rate_pct': 30.0}, {'uid': 'regional_warehouse:WH_0029', 'warehouse_id': 'WH_0029', 'warehouse_level': 'regional_warehouse', 'commodity_category': 'vaccines', 'orders_backordered': 4, 'backorder_rate_pct': 28.6}, {'uid': 'regional_warehouse:WH_0091', 'warehouse_id': 'WH_0091', 'warehouse_level': 'regional_warehouse', 'commodity_category': 'laboratory_reagents', 'orders_backordered': 4, 'backorder_rate_pct': 28.6}, {'uid': 'regional_warehouse:WH_0086', 'warehouse_id': 'WH_0086', 'warehouse_level': 'regional_warehouse', 'commodity_category': 'malaria_commodities', 'orders_backordered': 5, 'backorder_rate_pct': 27.8}, {'uid': 'regional_warehouse:WH_0053', 'warehouse_id': 'WH_0053', 'warehouse_level': 'regional_warehouse', 'commodity_category': 'laboratory_reagents', 'orders_backordered': 3, 'backorder_rate_pct': 27.3}, {'uid': 'regional_warehouse:WH_0093', 'warehouse_id': 'WH_0093', 'warehouse_level': 'regional_warehouse', 'commodity_category': 'surgical_supplies', 'orders_backordered': 3, 'backorder_rate_pct': 23.1}, {'uid': 'regional_warehouse:WH_0043', 'warehouse_id': 'WH_0043', 'warehouse_level': 'regional_warehouse', 'commodity_category': 'PPE_IPC_supplies', 'orders_backordered': 5, 'backorder_rate_pct': 22.7}, {'uid': 'regional_warehouse:WH_0088', 'warehouse_id': 'WH_0088', 'warehouse_level': 'regional_warehouse', 'commodity_category': 'nutrition_commodities', 'orders_backordered': 2, 'backorder_rate_pct': 20.0}]}}

Q: compare backorder rates across tiers
A:

Chosen response:
FACTS: backorders by warehouse_level: district_store: worst WH_0067 (surgical_supplies) at 100.0%, 2 orders; national_CMS: worst WH_0088 (malaria_commodities) at 61.5%, 32 orders; regional_warehouse: worst WH_0054 (laboratory_reagents) at 92.3%, 12 orders
RECOMMENDATION: expedite the district_store group first - highest backorder rate.

Rejected response:
FACTS: backorders by warehouse_level: district_store: worst WH_0067 (surgical_supplies) at 100.0%, 2 orders; national_CMS: worst WH_0088 (malaria_commodities) at 61.5%, 32 orders; regional_warehouse: worst WH_0054 (laboratory_reagents) at 92.3%, 12 orders Not entirely sure if this is complete.
RECOMMENDATION: expedite the district_store group first - highest backorder rate.
FACTS: to repeat, the figure is 100.0. Again, 100.0 is the number.


Prompt:
You're a warehouse assistant. Answer using only the data given. Separate FACTS from RECOMMENDATION. Say if you're not sure. Don't make stuff up.

tool call: explain_issue({'compare_by': 'warehouse_level', 'compare_values': ['district_store', 'national_CMS', 'regional_warehouse']}) -> {'_grouped_by': 'warehouse_level', 'groups': {'district_store': {'dominant_issue': 'theft_pilferage', 'count': 6, 'n_records': 66, 'issue_counts': {'theft_pilferage': 6, 'expired_stock': 6, 'stock_record_discrepancy': 6, 'temperature_excursion': 6, 'FEFO_not_followed': 6, 'damaged_goods': 6, 'overstocking': 6, 'receiving_error': 6, 'understocking': 6, 'dispatch_error': 6, 'pest_infestation': 6}}, 'national_CMS': {'dominant_issue': 'theft_pilferage', 'count': 6, 'n_records': 72, 'issue_counts': {'theft_pilferage': 6, 'stock_record_discrepancy': 6, 'damaged_goods': 6, 'overstocking': 6, 'understocking': 6, 'expired_stock': 6, 'FEFO_not_followed': 6, 'receiving_error': 6, 'dispatch_error': 6, 'pest_infestation': 6, 'temperature_excursion': 6}}, 'regional_warehouse': {'dominant_issue': 'stock_record_discrepancy', 'count': 6, 'n_records': 72, 'issue_counts': {'stock_record_discrepancy': 6, 'pest_infestation': 6, 'theft_pilferage': 6, 'understocking': 6, 'expired_stock': 6, 'overstocking': 6, 'receiving_error': 6, 'FEFO_not_followed': 6, 'temperature_excursion': 6, 'damaged_goods': 6, 'dispatch_error': 6}}}}

Q: compare why warehouses are failing across tiers
A:

Chosen response:
FACTS: most common issue by warehouse_level: district_store: theft_pilferage (6x); national_CMS: theft_pilferage (6x); regional_warehouse: stock_record_discrepancy (6x)
RECOMMENDATION: focus on the district_store group's most common issue first.

Rejected response:
FACTS: most common issue by warehouse_level: district_store: theft_pilferage (6x); national_CMS: theft_pilferage (6x); regional_warehouse: stock_record_discrepancy (6x) Not sure if there's more to report here.
RECOMMENDATION: focus on the district_store group's most common issue first.


Prompt:
You're a warehouse assistant. Answer using only the data given. Separate FACTS from RECOMMENDATION. Say if you're not sure. Don't make stuff up.

tool call: stockouts({'uid': 'district_store:WH_0087'}) -> [{'uid': 'district_store:WH_0087', 'warehouse_id': 'WH_0087', 'warehouse_level': 'district_store', 'commodity_category': 'vaccines', 'facilities_affected_by_stockout': 2}]

Q: does WH_0087 at the district_store currently have any active stockouts?
A:

Chosen response:
FACTS: 1 active stockouts (uid=district_store:WH_0087). worst: WH_0087 (district_store, vaccines), 2 facilities hit
RECOMMENDATION: prioritize WH_0087 (district_store) first.

Rejected response:
FACTS: 1 active stockouts (uid=district_store:WH_0087). worst: WH_0087 (district_store, vaccines), 2 facilities hit
RECOMMENDATION: Not sure. (Not enough information to determine)


Prompt:
You're a warehouse assistant. Answer using only the data given. Separate FACTS from RECOMMENDATION. Say if you're not sure. Don't make stuff up.

tool call: backorders({'compare_by': 'region_type', 'compare_values': ['peri_urban', 'rural']}) -> {'_grouped_by': 'region_type', 'groups': {'rural': [{'uid': 'district_store:WH_0075', 'warehouse_id': 'WH_0075', 'warehouse_level': 'district_store', 'commodity_category': 'PPE_IPC_supplies', 'orders_backordered': 3, 'backorder_rate_pct': 100.0}, {'uid': 'district_store:WH_0033', 'warehouse_id': 'WH_0033', 'warehouse_level': 'district_store', 'commodity_category': 'ARVs', 'orders_backordered': 3, 'backorder_rate_pct': 100.0}, {'uid': 'district_store:WH_0012', 'warehouse_id': 'WH_0012', 'warehouse_level': 'district_store', 'commodity_category': 'PPE_IPC_supplies', 'orders_backordered': 2, 'backorder_rate_pct': 100.0}, {'uid': 'district_store:WH_0017', 'warehouse_id': 'WH_0017', 'warehouse_level': 'district_store', 'commodity_category': 'nutrition_commodities', 'orders_backordered': 2, 'backorder_rate_pct': 100.0}, {'uid': 'district_store:WH_0046', 'warehouse_id': 'WH_0046', 'warehouse_level': 'district_store', 'commodity_category': 'laboratory_reagents', 'orders_backordered': 2, 'backorder_rate_pct': 100.0}, {'uid': 'district_store:WH_0075', 'warehouse_id': 'WH_0075', 'warehouse_level': 'district_store', 'commodity_category': 'medical_devices_consumables', 'orders_backordered': 2, 'backorder_rate_pct': 100.0}, {'uid': 'district_store:WH_0080', 'warehouse_id': 'WH_0080', 'warehouse_level': 'district_store', 'commodity_category': 'IV_fluids', 'orders_backordered': 7, 'backorder_rate_pct': 100.0}, {'uid': 'district_store:WH_0041', 'warehouse_id': 'WH_0041', 'warehouse_level': 'district_store', 'commodity_category': 'malaria_commodities', 'orders_backordered': 1, 'backorder_rate_pct': 100.0}, {'uid': 'district_store:WH_0048', 'warehouse_id': 'WH_0048', 'warehouse_level': 'district_store', 'commodity_category': 'medical_devices_consumables', 'orders_backordered': 6, 'backorder_rate_pct': 100.0}, {'uid': 'district_store:WH_0042', 'warehouse_id': 'WH_0042', 'warehouse_level': 'district_store', 'commodity_category': 'medical_devices_consumables', 'orders_backordered': 3, 'backorder_rate_pct': 100.0}, {'uid': 'district_store:WH_0098', 'warehouse_id': 'WH_0098', 'warehouse_level': 'district_store', 'commodity_category': 'essential_medicines', 'orders_backordered': 3, 'backorder_rate_pct': 100.0}, {'uid': 'district_store:WH_0062', 'warehouse_id': 'WH_0062', 'warehouse_level': 'district_store', 'commodity_category': 'vaccines', 'orders_backordered': 2, 'backorder_rate_pct': 100.0}, {'uid': 'district_store:WH_0044', 'warehouse_id': 'WH_0044', 'warehouse_level': 'district_store', 'commodity_category': 'IV_fluids', 'orders_backordered': 2, 'backorder_rate_pct': 100.0}, {'uid': 'district_store:WH_0042', 'warehouse_id': 'WH_0042', 'warehouse_level': 'district_store', 'commodity_category': 'controlled_substances', 'orders_backordered': 5, 'backorder_rate_pct': 100.0}, {'uid': 'district_store:WH_0069', 'warehouse_id': 'WH_0069', 'warehouse_level': 'district_store', 'commodity_category': 'medical_devices_consumables', 'orders_backordered': 1, 'backorder_rate_pct': 100.0}, {'uid': 'district_store:WH_0009', 'warehouse_id': 'WH_0009', 'warehouse_level': 'district_store', 'commodity_category': 'ARVs', 'orders_backordered': 5, 'backorder_rate_pct': 100.0}, {'uid': 'district_store:WH_0037', 'warehouse_id': 'WH_0037', 'warehouse_level': 'district_store', 'commodity_category': 'contraceptives', 'orders_backordered': 1, 'backorder_rate_pct': 100.0}, {'uid': 'district_store:WH_0099', 'warehouse_id': 'WH_0099', 'warehouse_level': 'district_store', 'commodity_category': 'controlled_substances', 'orders_backordered': 4, 'backorder_rate_pct': 100.0}, {'uid': 'district_store:WH_0038', 'warehouse_id': 'WH_0038', 'warehouse_level': 'district_store', 'commodity_category': 'IV_fluids', 'orders_backordered': 2, 'backorder_rate_pct': 100.0}, {'uid': 'district_store:WH_0007', 'warehouse_id': 'WH_0007', 'warehouse_level': 'district_store', 'commodity_category': 'ARVs', 'orders_backordered': 2, 'backorder_rate_pct': 100.0}, {'uid': 'district_store:WH_0045', 'warehouse_id': 'WH_0045', 'warehouse_level': 'district_store', 'commodity_category': 'nutrition_commodities', 'orders_backordered': 2, 'backorder_rate_pct': 100.0}, {'uid': 'district_store:WH_0009', 'warehouse_id': 'WH_0009', 'warehouse_level': 'district_store', 'commodity_category': 'essential_medicines', 'orders_backordered': 8, 'backorder_rate_pct': 88.9}, {'uid': 'district_store:WH_0094', 'warehouse_id': 'WH_0094', 'warehouse_level': 'district_store', 'commodity_category': 'vaccines', 'orders_backordered': 8, 'backorder_rate_pct': 88.9}, {'uid': 'district_store:WH_0001', 'warehouse_id': 'WH_0001', 'warehouse_level': 'district_store', 'commodity_category': 'laboratory_reagents', 'orders_backordered': 6, 'backorder_rate_pct': 85.7}, {'uid': 'district_store:WH_0054', 'warehouse_id': 'WH_0054', 'warehouse_level': 'district_store', 'commodity_category': 'ARVs', 'orders_backordered': 5, 'backorder_rate_pct': 83.3}, {'uid': 'district_store:WH_0007', 'warehouse_id': 'WH_0007', 'warehouse_level': 'district_store', 'commodity_category': 'IV_fluids', 'orders_backordered': 5, 'backorder_rate_pct': 83.3}, {'uid': 'regional_warehouse:WH_0096', 'warehouse_id': 'WH_0096', 'warehouse_level': 'regional_warehouse', 'commodity_category': 'surgical_supplies', 'orders_backordered': 5, 'backorder_rate_pct': 83.3}, {'uid': 'district_store:WH_0022', 'warehouse_id': 'WH_0022', 'warehouse_level': 'district_store', 'commodity_category': 'laboratory_reagents', 'orders_backordered': 9, 'backorder_rate_pct': 81.8}, {'uid': 'district_store:WH_0071', 'warehouse_id': 'WH_0071', 'warehouse_level': 'district_store', 'commodity_category': 'surgical_supplies', 'orders_backordered': 4, 'backorder_rate_pct': 80.0}, {'uid': 'district_store:WH_0028', 'warehouse_id': 'WH_0028', 'warehouse_level': 'district_store', 'commodity_category': 'vaccines', 'orders_backordered': 4, 'backorder_rate_pct': 80.0}, {'uid': 'district_store:WH_0080', 'warehouse_id': 'WH_0080', 'warehouse_level': 'district_store', 'commodity_category': 'essential_medicines', 'orders_backordered': 4, 'backorder_rate_pct': 80.0}, {'uid': 'district_store:WH_0053', 'warehouse_id': 'WH_0053', 'warehouse_level': 'district_store', 'commodity_category': 'controlled_substances', 'orders_backordered': 4, 'backorder_rate_pct': 80.0}, {'uid': 'district_store:WH_0014', 'warehouse_id': 'WH_0014', 'warehouse_level': 'district_store', 'commodity_category': 'controlled_substances', 'orders_backordered': 4, 'backorder_rate_pct': 80.0}, {'uid': 'district_store:WH_0092', 'warehouse_id': 'WH_0092', 'warehouse_level': 'district_store', 'commodity_category': 'vaccines', 'orders_backordered': 4, 'backorder_rate_pct': 80.0}, {'uid': 'district_store:WH_0056', 'warehouse_id': 'WH_0056', 'warehouse_level': 'district_store', 'commodity_category': 'malaria_commodities', 'orders_backordered': 4, 'backorder_rate_pct': 80.0}, {'uid': 'district_store:WH_0010', 'warehouse_id': 'WH_0010', 'warehouse_level': 'district_store', 'commodity_category': 'malaria_commodities', 'orders_backordered': 7, 'backorder_rate_pct': 77.8}, {'uid': 'district_store:WH_0063', 'warehouse_id': 'WH_0063', 'warehouse_level': 'district_store', 'commodity_category': 'surgical_supplies', 'orders_backordered': 3, 'backorder_rate_pct': 75.0}, {'uid': 'district_store:WH_0038', 'warehouse_id': 'WH_0038', 'warehouse_level': 'district_store', 'commodity_category': 'nutrition_commodities', 'orders_backordered': 3, 'backorder_rate_pct': 75.0}, {'uid': 'regional_warehouse:WH_0044', 'warehouse_id': 'WH_0044', 'warehouse_level': 'regional_warehouse', 'commodity_category': 'nutrition_commodities', 'orders_backordered': 6, 'backorder_rate_pct': 75.0}, {'uid': 'district_store:WH_0094', 'warehouse_id': 'WH_0094', 'warehouse_level': 'district_store', 'commodity_category': 'PPE_IPC_supplies', 'orders_backordered': 5, 'backorder_rate_pct': 71.4}, {'uid': 'district_store:WH_0054', 'warehouse_id': 'WH_0054', 'warehouse_level': 'district_store', 'commodity_category': 'surgical_supplies', 'orders_backordered': 5, 'backorder_rate_pct': 71.4}, {'uid': 'district_store:WH_0078', 'warehouse_id': 'WH_0078', 'warehouse_level': 'district_store', 'commodity_category': 'contraceptives', 'orders_backordered': 5, 'backorder_rate_pct': 71.4}, {'uid': 'regional_warehouse:WH_0028', 'warehouse_id': 'WH_0028', 'warehouse_level': 'regional_warehouse', 'commodity_category': 'vaccines', 'orders_backordered': 9, 'backorder_rate_pct': 69.2}, {'uid': 'district_store:WH_0032', 'warehouse_id': 'WH_0032', 'warehouse_level': 'district_store', 'commodity_category': 'contraceptives', 'orders_backordered': 2, 'backorder_rate_pct': 66.7}, {'uid': 'district_store:WH_0048', 'warehouse_id': 'WH_0048', 'warehouse_level': 'district_store', 'commodity_category': 'medical_devices_consumables', 'orders_backordered': 2, 'backorder_rate_pct': 66.7}, {'uid': 'district_store:WH_0011', 'warehouse_id': 'WH_0011', 'warehouse_level': 'district_store', 'commodity_category': 'vaccines', 'orders_backordered': 4, 'backorder_rate_pct': 66.7}, {'uid': 'district_store:WH_0019', 'warehouse_id': 'WH_0019', 'warehouse_level': 'district_store', 'commodity_category': 'controlled_substances', 'orders_backordered': 2, 'backorder_rate_pct': 66.7}, {'uid': 'regional_warehouse:WH_0090', 'warehouse_id': 'WH_0090', 'warehouse_level': 'regional_warehouse', 'commodity_category': 'laboratory_reagents', 'orders_backordered': 6, 'backorder_rate_pct': 66.7}, {'uid': 'regional_warehouse:WH_0064', 'warehouse_id': 'WH_0064', 'warehouse_level': 'regional_warehouse', 'commodity_category': 'laboratory_reagents', 'orders_backordered': 16, 'backorder_rate_pct': 66.7}, {'uid': 'regional_warehouse:WH_0021', 'warehouse_id': 'WH_0021', 'warehouse_level': 'regional_warehouse', 'commodity_category': 'PPE_IPC_supplies', 'orders_backordered': 13, 'backorder_rate_pct': 65.0}, {'uid': 'regional_warehouse:WH_0066', 'warehouse_id': 'WH_0066', 'warehouse_level': 'regional_warehouse', 'commodity_category': 'surgical_supplies', 'orders_backordered': 9, 'backorder_rate_pct': 64.3}, {'uid': 'district_store:WH_0033', 'warehouse_id': 'WH_0033', 'warehouse_level': 'district_store', 'commodity_category': 'malaria_commodities', 'orders_backordered': 5, 'backorder_rate_pct': 62.5}, {'uid': 'national_CMS:WH_0088', 'warehouse_id': 'WH_0088', 'warehouse_level': 'national_CMS', 'commodity_category': 'malaria_commodities', 'orders_backordered': 32, 'backorder_rate_pct': 61.5}, {'uid': 'district_store:WH_0019', 'warehouse_id': 'WH_0019', 'warehouse_level': 'district_store', 'commodity_category': 'nutrition_commodities', 'orders_backordered': 3, 'backorder_rate_pct': 60.0}, {'uid': 'regional_warehouse:WH_0025', 'warehouse_id': 'WH_0025', 'warehouse_level': 'regional_warehouse', 'commodity_category': 'malaria_commodities', 'orders_backordered': 6, 'backorder_rate_pct': 60.0}, {'uid': 'district_store:WH_0033', 'warehouse_id': 'WH_0033', 'warehouse_level': 'district_store', 'commodity_category': 'laboratory_reagents', 'orders_backordered': 4, 'backorder_rate_pct': 57.1}, {'uid': 'district_store:WH_0006', 'warehouse_id': 'WH_0006', 'warehouse_level': 'district_store', 'commodity_category': 'controlled_substances', 'orders_backordered': 5, 'backorder_rate_pct': 55.6}, {'uid': 'regional_warehouse:WH_0098', 'warehouse_id': 'WH_0098', 'warehouse_level': 'regional_warehouse', 'commodity_category': 'malaria_commodities', 'orders_backordered': 6, 'backorder_rate_pct': 54.5}, {'uid': 'regional_warehouse:WH_0070', 'warehouse_id': 'WH_0070', 'warehouse_level': 'regional_warehouse', 'commodity_category': 'vaccines', 'orders_backordered': 8, 'backorder_rate_pct': 53.3}, {'uid': 'district_store:WH_0024', 'warehouse_id': 'WH_0024', 'warehouse_level': 'district_store', 'commodity_category': 'nutrition_commodities', 'orders_backordered': 3, 'backorder_rate_pct': 50.0}, {'uid': 'regional_warehouse:WH_0004', 'warehouse_id': 'WH_0004', 'warehouse_level': 'regional_warehouse', 'commodity_category': 'malaria_commodities', 'orders_backordered': 8, 'backorder_rate_pct': 50.0}, {'uid': 'regional_warehouse:WH_0025', 'warehouse_id': 'WH_0025', 'warehouse_level': 'regional_warehouse', 'commodity_category': 'ARVs', 'orders_backordered': 9, 'backorder_rate_pct': 50.0}, {'uid': 'regional_warehouse:WH_0053', 'warehouse_id': 'WH_0053', 'warehouse_level': 'regional_warehouse', 'commodity_category': 'contraceptives', 'orders_backordered': 5, 'backorder_rate_pct': 45.5}, {'uid': 'regional_warehouse:WH_0013', 'warehouse_id': 'WH_0013', 'warehouse_level': 'regional_warehouse', 'commodity_category': 'surgical_supplies', 'orders_backordered': 5, 'backorder_rate_pct': 45.5}, {'uid': 'district_store:WH_0018', 'warehouse_id': 'WH_0018', 'warehouse_level': 'district_store', 'commodity_category': 'nutrition_commodities', 'orders_backordered': 4, 'backorder_rate_pct': 44.4}, {'uid': 'national_CMS:WH_0075', 'warehouse_id': 'WH_0075', 'warehouse_level': 'national_CMS', 'commodity_category': 'PPE_IPC_supplies', 'orders_backordered': 24, 'backorder_rate_pct': 44.4}, {'uid': 'regional_warehouse:WH_0009', 'warehouse_id': 'WH_0009', 'warehouse_level': 'regional_warehouse', 'commodity_category': 'essential_medicines', 'orders_backordered': 7, 'backorder_rate_pct': 43.8}, {'uid': 'regional_warehouse:WH_0012', 'warehouse_id': 'WH_0012', 'warehouse_level': 'regional_warehouse', 'commodity_category': 'vaccines', 'orders_backordered': 7, 'backorder_rate_pct': 43.8}, {'uid': 'regional_warehouse:WH_0074', 'warehouse_id': 'WH_0074', 'warehouse_level': 'regional_warehouse', 'commodity_category': 'ARVs', 'orders_backordered': 8, 'backorder_rate_pct': 38.1}, {'uid': 'national_CMS:WH_0098', 'warehouse_id': 'WH_0098', 'warehouse_level': 'national_CMS', 'commodity_category': 'PPE_IPC_supplies', 'orders_backordered': 17, 'backorder_rate_pct': 37.8}, {'uid': 'regional_warehouse:WH_0007', 'warehouse_id': 'WH_0007', 'warehouse_level': 'regional_warehouse', 'commodity_category': 'controlled_substances', 'orders_backordered': 9, 'backorder_rate_pct': 36.0}, {'uid': 'national_CMS:WH_0019', 'warehouse_id': 'WH_0019', 'warehouse_level': 'national_CMS', 'commodity_category': 'surgical_supplies', 'orders_backordered': 18, 'backorder_rate_pct': 34.6}, {'uid': 'national_CMS:WH_0019', 'warehouse_id': 'WH_0019', 'warehouse_level': 'national_CMS', 'commodity_category': 'contraceptives', 'orders_backordered': 16, 'backorder_rate_pct': 32.0}, {'uid': 'national_CMS:WH_0074', 'warehouse_id': 'WH_0074', 'warehouse_level': 'national_CMS', 'commodity_category': 'PPE_IPC_supplies', 'orders_backordered': 18, 'backorder_rate_pct': 31.0}, {'uid': 'regional_warehouse:WH_0082', 'warehouse_id': 'WH_0082', 'warehouse_level': 'regional_warehouse', 'commodity_category': 'controlled_substances', 'orders_backordered': 4, 'backorder_rate_pct': 30.8}, {'uid': 'regional_warehouse:WH_0029', 'warehouse_id': 'WH_0029', 'warehouse_level': 'regional_warehouse', 'commodity_category': 'vaccines', 'orders_backordered': 4, 'backorder_rate_pct': 28.6}, {'uid': 'regional_warehouse:WH_0086', 'warehouse_id': 'WH_0086', 'warehouse_level': 'regional_warehouse', 'commodity_category': 'malaria_commodities', 'orders_backordered': 5, 'backorder_rate_pct': 27.8}, {'uid': 'regional_warehouse:WH_0053', 'warehouse_id': 'WH_0053', 'warehouse_level': 'regional_warehouse', 'commodity_category': 'laboratory_reagents', 'orders_backordered': 3, 'backorder_rate_pct': 27.3}, {'uid': 'national_CMS:WH_0064', 'warehouse_id': 'WH_0064', 'warehouse_level': 'national_CMS', 'commodity_category': 'IV_fluids', 'orders_backordered': 14, 'backorder_rate_pct': 26.4}, {'uid': 'national_CMS:WH_0068', 'warehouse_id': 'WH_0068', 'warehouse_level': 'national_CMS', 'commodity_category': 'surgical_supplies', 'orders_backordered': 10, 'backorder_rate_pct': 19.2}, {'uid': 'national_CMS:WH_0074', 'warehouse_id': 'WH_0074', 'warehouse_level': 'national_CMS', 'commodity_category': 'vaccines', 'orders_backordered': 9, 'backorder_rate_pct': 16.7}, {'uid': 'national_CMS:WH_0009', 'warehouse_id': 'WH_0009', 'warehouse_level': 'national_CMS', 'commodity_category': 'essential_medicines', 'orders_backordered': 6, 'backorder_rate_pct': 11.3}, {'uid': 'national_CMS:WH_0096', 'warehouse_id': 'WH_0096', 'warehouse_level': 'national_CMS', 'commodity_category': 'vaccines', 'orders_backordered': 5, 'backorder_rate_pct': 10.4}, {'uid': 'national_CMS:WH_0034', 'warehouse_id': 'WH_0034', 'warehouse_level': 'national_CMS', 'commodity_category': 'surgical_supplies', 'orders_backordered': 3, 'backorder_rate_pct': 10.3}, {'uid': 'national_CMS:WH_0032', 'warehouse_id': 'WH_0032', 'warehouse_level': 'national_CMS', 'commodity_category': 'ARVs', 'orders_backordered': 1, 'backorder_rate_pct': 2.0}], 'peri_urban': [{'uid': 'district_store:WH_0067', 'warehouse_id': 'WH_0067', 'warehouse_level': 'district_store', 'commodity_category': 'surgical_supplies', 'orders_backordered': 2, 'backorder_rate_pct': 100.0}, {'uid': 'district_store:WH_0018', 'warehouse_id': 'WH_0018', 'warehouse_level': 'district_store', 'commodity_category': 'contraceptives', 'orders_backordered': 2, 'backorder_rate_pct': 100.0}, {'uid': 'district_store:WH_0050', 'warehouse_id': 'WH_0050', 'warehouse_level': 'district_store', 'commodity_category': 'PPE_IPC_supplies', 'orders_backordered': 5, 'backorder_rate_pct': 100.0}, {'uid': 'regional_warehouse:WH_0054', 'warehouse_id': 'WH_0054', 'warehouse_level': 'regional_warehouse', 'commodity_category': 'laboratory_reagents', 'orders_backordered': 12, 'backorder_rate_pct': 92.3}, {'uid': 'district_store:WH_0091', 'warehouse_id': 'WH_0091', 'warehouse_level': 'district_store', 'commodity_category': 'essential_medicines', 'orders_backordered': 5, 'backorder_rate_pct': 83.3}, {'uid': 'district_store:WH_0065', 'warehouse_id': 'WH_0065', 'warehouse_level': 'district_store', 'commodity_category': 'nutrition_commodities', 'orders_backordered': 5, 'backorder_rate_pct': 83.3}, {'uid': 'district_store:WH_0067', 'warehouse_id': 'WH_0067', 'warehouse_level': 'district_store', 'commodity_category': 'laboratory_reagents', 'orders_backordered': 4, 'backorder_rate_pct': 80.0}, {'uid': 'district_store:WH_0005', 'warehouse_id': 'WH_0005', 'warehouse_level': 'district_store', 'commodity_category': 'contraceptives', 'orders_backordered': 4, 'backorder_rate_pct': 80.0}, {'uid': 'district_store:WH_0054', 'warehouse_id': 'WH_0054', 'warehouse_level': 'district_store', 'commodity_category': 'contraceptives', 'orders_backordered': 3, 'backorder_rate_pct': 75.0}, {'uid': 'district_store:WH_0026', 'warehouse_id': 'WH_0026', 'warehouse_level': 'district_store', 'commodity_category': 'laboratory_reagents', 'orders_backordered': 3, 'backorder_rate_pct': 75.0}, {'uid': 'regional_warehouse:WH_0042', 'warehouse_id': 'WH_0042', 'warehouse_level': 'regional_warehouse', 'commodity_category': 'laboratory_reagents', 'orders_backordered': 12, 'backorder_rate_pct': 75.0}, {'uid': 'regional_warehouse:WH_0089', 'warehouse_id': 'WH_0089', 'warehouse_level': 'regional_warehouse', 'commodity_category': 'essential_medicines', 'orders_backordered': 12, 'backorder_rate_pct': 70.6}, {'uid': 'district_store:WH_0062', 'warehouse_id': 'WH_0062', 'warehouse_level': 'district_store', 'commodity_category': 'malaria_commodities', 'orders_backordered': 4, 'backorder_rate_pct': 66.7}, {'uid': 'district_store:WH_0036', 'warehouse_id': 'WH_0036', 'warehouse_level': 'district_store', 'commodity_category': 'essential_medicines', 'orders_backordered': 2, 'backorder_rate_pct': 66.7}, {'uid': 'district_store:WH_0087', 'warehouse_id': 'WH_0087', 'warehouse_level': 'district_store', 'commodity_category': 'vaccines', 'orders_backordered': 4, 'backorder_rate_pct': 66.7}, {'uid': 'regional_warehouse:WH_0073', 'warehouse_id': 'WH_0073', 'warehouse_level': 'regional_warehouse', 'commodity_category': 'contraceptives', 'orders_backordered': 10, 'backorder_rate_pct': 66.7}, {'uid': 'regional_warehouse:WH_0047', 'warehouse_id': 'WH_0047', 'warehouse_level': 'regional_warehouse', 'commodity_category': 'laboratory_reagents', 'orders_backordered': 8, 'backorder_rate_pct': 66.7}, {'uid': 'regional_warehouse:WH_0092', 'warehouse_id': 'WH_0092', 'warehouse_level': 'regional_warehouse', 'commodity_category': 'contraceptives', 'orders_backordered': 6, 'backorder_rate_pct': 66.7}, {'uid': 'regional_warehouse:WH_0041', 'warehouse_id': 'WH_0041', 'warehouse_level': 'regional_warehouse', 'commodity_category': 'medical_devices_consumables', 'orders_backordered': 11, 'backorder_rate_pct': 61.1}, {'uid': 'regional_warehouse:WH_0029', 'warehouse_id': 'WH_0029', 'warehouse_level': 'regional_warehouse', 'commodity_category': 'essential_medicines', 'orders_backordered': 9, 'backorder_rate_pct': 60.0}, {'uid': 'regional_warehouse:WH_0088', 'warehouse_id': 'WH_0088', 'warehouse_level': 'regional_warehouse', 'commodity_category': 'IV_fluids', 'orders_backordered': 6, 'backorder_rate_pct': 60.0}, {'uid': 'regional_warehouse:WH_0096', 'warehouse_id': 'WH_0096', 'warehouse_level': 'regional_warehouse', 'commodity_category': 'controlled_substances', 'orders_backordered': 6, 'backorder_rate_pct': 60.0}, {'uid': 'regional_warehouse:WH_0053', 'warehouse_id': 'WH_0053', 'warehouse_level': 'regional_warehouse', 'commodity_category': 'ARVs', 'orders_backordered': 6, 'backorder_rate_pct': 60.0}, {'uid': 'national_CMS:WH_0075', 'warehouse_id': 'WH_0075', 'warehouse_level': 'national_CMS', 'commodity_category': 'PPE_IPC_supplies', 'orders_backordered': 32, 'backorder_rate_pct': 59.3}, {'uid': 'regional_warehouse:WH_0021', 'warehouse_id': 'WH_0021', 'warehouse_level': 'regional_warehouse', 'commodity_category': 'PPE_IPC_supplies', 'orders_backordered': 16, 'backorder_rate_pct': 57.1}, {'uid': 'regional_warehouse:WH_0017', 'warehouse_id': 'WH_0017', 'warehouse_level': 'regional_warehouse', 'commodity_category': 'medical_devices_consumables', 'orders_backordered': 9, 'backorder_rate_pct': 52.9}, {'uid': 'national_CMS:WH_0041', 'warehouse_id': 'WH_0041', 'warehouse_level': 'national_CMS', 'commodity_category': 'laboratory_reagents', 'orders_backordered': 23, 'backorder_rate_pct': 52.3}, {'uid': 'district_store:WH_0009', 'warehouse_id': 'WH_0009', 'warehouse_level': 'district_store', 'commodity_category': 'IV_fluids', 'orders_backordered': 2, 'backorder_rate_pct': 50.0}, {'uid': 'national_CMS:WH_0001', 'warehouse_id': 'WH_0001', 'warehouse_level': 'national_CMS', 'commodity_category': 'IV_fluids', 'orders_backordered': 26, 'backorder_rate_pct': 50.0}, {'uid': 'regional_warehouse:WH_0046', 'warehouse_id': 'WH_0046', 'warehouse_level': 'regional_warehouse', 'commodity_category': 'contraceptives', 'orders_backordered': 5, 'backorder_rate_pct': 50.0}, {'uid': 'regional_warehouse:WH_0021', 'warehouse_id': 'WH_0021', 'warehouse_level': 'regional_warehouse', 'commodity_category': 'IV_fluids', 'orders_backordered': 5, 'backorder_rate_pct': 50.0}, {'uid': 'regional_warehouse:WH_0037', 'warehouse_id': 'WH_0037', 'warehouse_level': 'regional_warehouse', 'commodity_category': 'ARVs', 'orders_backordered': 8, 'backorder_rate_pct': 47.1}, {'uid': 'regional_warehouse:WH_0025', 'warehouse_id': 'WH_0025', 'warehouse_level': 'regional_warehouse', 'commodity_category': 'vaccines', 'orders_backordered': 8, 'backorder_rate_pct': 47.1}, {'uid': 'regional_warehouse:WH_0091', 'warehouse_id': 'WH_0091', 'warehouse_level': 'regional_warehouse', 'commodity_category': 'medical_devices_consumables', 'orders_backordered': 8, 'backorder_rate_pct': 47.1}, {'uid': 'regional_warehouse:WH_0001', 'warehouse_id': 'WH_0001', 'warehouse_level': 'regional_warehouse', 'commodity_category': 'laboratory_reagents', 'orders_backordered': 8, 'backorder_rate_pct': 47.1}, {'uid': 'regional_warehouse:WH_0063', 'warehouse_id': 'WH_0063', 'warehouse_level': 'regional_warehouse', 'commodity_category': 'IV_fluids', 'orders_backordered': 7, 'backorder_rate_pct': 46.7}, {'uid': 'regional_warehouse:WH_0045', 'warehouse_id': 'WH_0045', 'warehouse_level': 'regional_warehouse', 'commodity_category': 'PPE_IPC_supplies', 'orders_backordered': 7, 'backorder_rate_pct': 46.7}, {'uid': 'regional_warehouse:WH_0066', 'warehouse_id': 'WH_0066', 'warehouse_level': 'regional_warehouse', 'commodity_category': 'contraceptives', 'orders_backordered': 6, 'backorder_rate_pct': 46.2}, {'uid': 'regional_warehouse:WH_0006', 'warehouse_id': 'WH_0006', 'warehouse_level': 'regional_warehouse', 'commodity_category': 'malaria_commodities', 'orders_backordered': 6, 'backorder_rate_pct': 46.2}, {'uid': 'regional_warehouse:WH_0046', 'warehouse_id': 'WH_0046', 'warehouse_level': 'regional_warehouse', 'commodity_category': 'malaria_commodities', 'orders_backordered': 6, 'backorder_rate_pct': 46.2}, {'uid': 'regional_warehouse:WH_0011', 'warehouse_id': 'WH_0011', 'warehouse_level': 'regional_warehouse', 'commodity_category': 'nutrition_commodities', 'orders_backordered': 5, 'backorder_rate_pct': 45.5}, {'uid': 'national_CMS:WH_0031', 'warehouse_id': 'WH_0031', 'warehouse_level': 'national_CMS', 'commodity_category': 'vaccines', 'orders_backordered': 16, 'backorder_rate_pct': 42.1}, {'uid': 'regional_warehouse:WH_0052', 'warehouse_id': 'WH_0052', 'warehouse_level': 'regional_warehouse', 'commodity_category': 'nutrition_commodities', 'orders_backordered': 7, 'backorder_rate_pct': 41.2}, {'uid': 'national_CMS:WH_0026', 'warehouse_id': 'WH_0026', 'warehouse_level': 'national_CMS', 'commodity_category': 'surgical_supplies', 'orders_backordered': 16, 'backorder_rate_pct': 39.0}, {'uid': 'national_CMS:WH_0017', 'warehouse_id': 'WH_0017', 'warehouse_level': 'national_CMS', 'commodity_category': 'surgical_supplies', 'orders_backordered': 21, 'backorder_rate_pct': 38.9}, {'uid': 'regional_warehouse:WH_0028', 'warehouse_id': 'WH_0028', 'warehouse_level': 'regional_warehouse', 'commodity_category': 'IV_fluids', 'orders_backordered': 5, 'backorder_rate_pct': 38.5}, {'uid': 'national_CMS:WH_0060', 'warehouse_id': 'WH_0060', 'warehouse_level': 'national_CMS', 'commodity_category': 'essential_medicines', 'orders_backordered': 23, 'backorder_rate_pct': 38.3}, {'uid': 'regional_warehouse:WH_0027', 'warehouse_id': 'WH_0027', 'warehouse_level': 'regional_warehouse', 'commodity_category': 'surgical_supplies', 'orders_backordered': 3, 'backorder_rate_pct': 37.5}, {'uid': 'regional_warehouse:WH_0050', 'warehouse_id': 'WH_0050', 'warehouse_level': 'regional_warehouse', 'commodity_category': 'laboratory_reagents', 'orders_backordered': 4, 'backorder_rate_pct': 36.4}, {'uid': 'regional_warehouse:WH_0052', 'warehouse_id': 'WH_0052', 'warehouse_level': 'regional_warehouse', 'commodity_category': 'IV_fluids', 'orders_backordered': 7, 'backorder_rate_pct': 35.0}, {'uid': 'national_CMS:WH_0007', 'warehouse_id': 'WH_0007', 'warehouse_level': 'national_CMS', 'commodity_category': 'ARVs', 'orders_backordered': 17, 'backorder_rate_pct': 34.7}, {'uid': 'national_CMS:WH_0098', 'warehouse_id': 'WH_0098', 'warehouse_level': 'national_CMS', 'commodity_category': 'surgical_supplies', 'orders_backordered': 14, 'backorder_rate_pct': 33.3}, {'uid': 'regional_warehouse:WH_0051', 'warehouse_id': 'WH_0051', 'warehouse_level': 'regional_warehouse', 'commodity_category': 'medical_devices_consumables', 'orders_backordered': 5, 'backorder_rate_pct': 33.3}, {'uid': 'regional_warehouse:WH_0003', 'warehouse_id': 'WH_0003', 'warehouse_level': 'regional_warehouse', 'commodity_category': 'PPE_IPC_supplies', 'orders_backordered': 5, 'backorder_rate_pct': 33.3}, {'uid': 'regional_warehouse:WH_0073', 'warehouse_id': 'WH_0073', 'warehouse_level': 'regional_warehouse', 'commodity_category': 'malaria_commodities', 'orders_backordered': 3, 'backorder_rate_pct': 33.3}, {'uid': 'national_CMS:WH_0099', 'warehouse_id': 'WH_0099', 'warehouse_level': 'national_CMS', 'commodity_category': 'nutrition_commodities', 'orders_backordered': 16, 'backorder_rate_pct': 32.7}, {'uid': 'regional_warehouse:WH_0008', 'warehouse_id': 'WH_0008', 'warehouse_level': 'regional_warehouse', 'commodity_category': 'malaria_commodities', 'orders_backordered': 3, 'backorder_rate_pct': 30.0}, {'uid': 'regional_warehouse:WH_0091', 'warehouse_id': 'WH_0091', 'warehouse_level': 'regional_warehouse', 'commodity_category': 'laboratory_reagents', 'orders_backordered': 4, 'backorder_rate_pct': 28.6}, {'uid': 'regional_warehouse:WH_0093', 'warehouse_id': 'WH_0093', 'warehouse_level': 'regional_warehouse', 'commodity_category': 'surgical_supplies', 'orders_backordered': 3, 'backorder_rate_pct': 23.1}, {'uid': 'regional_warehouse:WH_0043', 'warehouse_id': 'WH_0043', 'warehouse_level': 'regional_warehouse', 'commodity_category': 'PPE_IPC_supplies', 'orders_backordered': 5, 'backorder_rate_pct': 22.7}, {'uid': 'national_CMS:WH_0055', 'warehouse_id': 'WH_0055', 'warehouse_level': 'national_CMS', 'commodity_category': 'medical_devices_consumables', 'orders_backordered': 9, 'backorder_rate_pct': 22.0}, {'uid': 'regional_warehouse:WH_0088', 'warehouse_id': 'WH_0088', 'warehouse_level': 'regional_warehouse', 'commodity_category': 'nutrition_commodities', 'orders_backordered': 2, 'backorder_rate_pct': 20.0}, {'uid': 'national_CMS:WH_0021', 'warehouse_id': 'WH_0021', 'warehouse_level': 'national_CMS', 'commodity_category': 'surgical_supplies', 'orders_backordered': 11, 'backorder_rate_pct': 18.6}, {'uid': 'national_CMS:WH_0049', 'warehouse_id': 'WH_0049', 'warehouse_level': 'national_CMS', 'commodity_category': 'medical_devices_consumables', 'orders_backordered': 8, 'backorder_rate_pct': 17.4}, {'uid': 'national_CMS:WH_0020', 'warehouse_id': 'WH_0020', 'warehouse_level': 'national_CMS', 'commodity_category': 'ARVs', 'orders_backordered': 8, 'backorder_rate_pct': 16.7}, {'uid': 'national_CMS:WH_0053', 'warehouse_id': 'WH_0053', 'warehouse_level': 'national_CMS', 'commodity_category': 'PPE_IPC_supplies', 'orders_backordered': 7, 'backorder_rate_pct': 14.6}, {'uid': 'national_CMS:WH_0046', 'warehouse_id': 'WH_0046', 'warehouse_level': 'national_CMS', 'commodity_category': 'malaria_commodities', 'orders_backordered': 4, 'backorder_rate_pct': 9.8}, {'uid': 'national_CMS:WH_0091', 'warehouse_id': 'WH_0091', 'warehouse_level': 'national_CMS', 'commodity_category': 'controlled_substances', 'orders_backordered': 4, 'backorder_rate_pct': 9.3}]}}

Q: how do peri_urban and rural compare on backorders?
A:

Chosen response:
FACTS: backorders by region_type: peri_urban: worst WH_0067 (surgical_supplies) at 100.0%, 2 orders; rural: worst WH_0075 (PPE_IPC_supplies) at 100.0%, 3 orders
RECOMMENDATION: expedite the rural group first - highest backorder rate.

Rejected response:
FACTS: backorders by region_type: peri_urban: worst WH_0067 (surgical_supplies) at 100.0%, 2 orders; rural: worst WH_0075 (PPE_IPC_supplies) at 100.0%, 3 orders
RECOMMENDATION: Not sure. To get more information, I would need to check further.


Prompt:
You're a warehouse assistant. Answer using only the data given. Separate FACTS from RECOMMENDATION. Say if you're not sure. Don't make stuff up.

tool call: backorders({'uid': 'regional_warehouse:WH_0027'}) -> [{'uid': 'regional_warehouse:WH_0027', 'warehouse_id': 'WH_0027', 'warehouse_level': 'regional_warehouse', 'commodity_category': 'surgical_supplies', 'orders_backordered': 3, 'backorder_rate_pct': 37.5}]

Q: which category has the most backorders at WH_0027 at the regional_warehouse?
A:

Chosen response:
FACTS: 1 backordered records (uid=regional_warehouse:WH_0027). worst: WH_0027 (regional_warehouse, surgical_supplies) at 37.5% backorder rate
RECOMMENDATION: expedite WH_0027 (regional_warehouse).

Rejected response:
FACTS: 31.9 backordered records (uid=regional_warehouse:WH_0027). worst: WH_0027 (regional_warehouse, surgical_supplies) at 37.5% backorder rate
RECOMMENDATION: expedite WH_0027 (regional_warehouse).


Prompt:
You're a warehouse assistant. Answer using only the data given. Separate FACTS from RECOMMENDATION. Say if you're not sure. Don't make stuff up.

tool call: stockouts({'uid': 'district_store:WH_0006'}) -> [{'uid': 'district_store:WH_0006', 'warehouse_id': 'WH_0006', 'warehouse_level': 'district_store', 'commodity_category': 'controlled_substances', 'facilities_affected_by_stockout': 1}]

Q: does WH_0006 at the district_store currently have any active stockouts?
A:

Chosen response:
FACTS: 1 active stockouts (uid=district_store:WH_0006). worst: WH_0006 (district_store, controlled_substances), 1 facilities hit
RECOMMENDATION: prioritize WH_0006 (district_store) first.

Rejected response:
FACTS: 1 active stockouts (uid=district_store:WH_0006). worst: WH_0006 (district_store, controlled_substances), 1 facilities hit
RECOMMENDATION: Not sure. To get more information, I would need to check further.


Prompt:
You're a warehouse assistant. Answer using only the data given. Separate FACTS from RECOMMENDATION. Say if you're not sure. Don't make stuff up.

tool call: shortage_risk({'uid': 'district_store:WH_0068'}) -> [{'uid': 'district_store:WH_0068', 'warehouse_id': 'WH_0068', 'warehouse_level': 'district_store', 'commodity_category': 'essential_medicines', 'risk_score': 11.0, 'risk_factors': ['stockout', 'high_backorder_rate', 'low_fulfilment', 'high_wastage', 'storage_inadequate', 'criticality_high']}]

Q: is WH_0068 at the district_store at risk of running short on anything?
A:

Chosen response:
FACTS: top shortage risk (uid=district_store:WH_0068) is WH_0068 (district_store, essential_medicines), score=11.0, factors=['stockout', 'high_backorder_rate', 'low_fulfilment', 'high_wastage', 'storage_inadequate', 'criticality_high']
RECOMMENDATION: focus replenishment planning on WH_0068 (district_store).

Rejected response:
FACTS: top shortage risk (uid=district_store:WH_0801) is WH_0801 (district_store, essential_medicines), score=11.0, factors=['stockout', 'high_backorder_rate', 'low_fulfilment', 'high_wastage', 'storage_inadequate', 'criticality_high']
RECOMMENDATION: focus replenishment planning on WH_0801 (district_store).


Prompt:
You're a warehouse assistant. Answer using only the data given. Separate FACTS from RECOMMENDATION. Say if you're not sure. Don't make stuff up.

tool call: kpis({'uid': 'district_store:WH_0042'}) -> {'n_records': 2, 'avg_inventory_accuracy_pct': 22.4, 'avg_order_fulfilment_rate_pct': 15.0, 'months_with_stockout': 2, 'issue_counts': {'temperature_excursion': 1, 'damaged_goods': 1}, 'uid': 'district_store:WH_0042', 'warehouse_id': 'WH_0042', 'warehouse_level': 'district_store'}

Q: how is WH_0042 at the district_store doing overall?
A:

Chosen response:
FACTS: WH_0042 (district_store): avg inventory accuracy 22.4%, avg fulfilment 15.0%, 2 months w/ stockout (based on 2 records), issues on record: {'temperature_excursion': 1, 'damaged_goods': 1}
RECOMMENDATION: worth a review.

Rejected response: FACTS: worth a review.


Prompt:
You're a warehouse assistant. Answer using only the data given. Separate FACTS from RECOMMENDATION. Say if you're not sure. Don't make stuff up.

tool call: kpis({'uid': 'national_CMS:WH_0016'}) -> {'n_records': 1, 'avg_inventory_accuracy_pct': 63.6, 'avg_order_fulfilment_rate_pct': 68.8, 'months_with_stockout': 0, 'issue_counts': {'stock_record_discrepancy': 1}, 'uid': 'national_CMS:WH_0016', 'warehouse_id': 'WH_0016', 'warehouse_level': 'national_CMS'}

Q: how is WH_0016 at the national_CMS doing overall?
A:

Chosen response:
FACTS: WH_0016 (national_CMS): avg inventory accuracy 63.6%, avg fulfilment 68.8%, 0 months w/ stockout (based on 1 records), issues on record: {'stock_record_discrepancy': 1}
RECOMMENDATION: looks fine.

Rejected response:
FACTS: WH_0016 (national_CMS): avg inventory accuracy 63.6%, avg fulfilment 68.8%, 0 months w/ stockout (based on 1 records), issues on record: {'stock_record_discrepancy': 1} Not entirely sure if this is complete.
RECOMMENDATION: looks fine.
FACTS: WH_0016 (national_CMS): avg inventory accuracy 63.6%, avg fulfilment 68.8%, 0 months w/ stockout (based on 1 records), issues on record: {'stock_record_discrepancy': 1} Not entirely sure if this is complete.
RECOMMENDATION: looks fine.


Prompt:
You're a warehouse assistant. Answer using only the data given. Separate FACTS from RECOMMENDATION. Say if you're not sure. Don't make stuff up.

tool call: kpis({'uid': 'regional_warehouse:WH_0037'}) -> {'n_records': 1, 'avg_inventory_accuracy_pct': 47.0, 'avg_order_fulfilment_rate_pct': 55.3, 'months_with_stockout': 0, 'issue_counts': {'pest_infestation': 1}, 'uid': 'regional_warehouse:WH_0037', 'warehouse_id': 'WH_0037', 'warehouse_level': 'regional_warehouse'}

Q: how is WH_0037 at the regional_warehouse doing overall?
A:

Chosen response:
FACTS: WH_0037 (regional_warehouse): avg inventory accuracy 47.0%, avg fulfilment 55.3%, 0 months w/ stockout (based on 1 records), issues on record: {'pest_infestation': 1}
RECOMMENDATION: looks fine.

Rejected response:
FACTS: WH_0037 (regional_warehouse): avg inventory accuracy 47.0%, avg fulfilment 55.3%, 0 months w/ stockout (based on 1 records), issues on record: {'pest_infestation': 1}
RECOMMENDATION: Not sure. To get more information, I would need to check further.


Prompt:
You're a warehouse assistant. Answer using only the data given. Separate FACTS from RECOMMENDATION. Say if you're not sure. Don't make stuff up.

tool call: stockouts({'region_type': 'rural'}) -> [{'uid': 'national_CMS:WH_0074', 'warehouse_id': 'WH_0074', 'warehouse_level': 'national_CMS', 'commodity_category': 'vaccines', 'facilities_affected_by_stockout': 60}, {'uid': 'regional_warehouse:WH_0025', 'warehouse_id': 'WH_0025', 'warehouse_level': 'regional_warehouse', 'commodity_category': 'ARVs', 'facilities_affected_by_stockout': 38}, {'uid': 'regional_warehouse:WH_0064', 'warehouse_id': 'WH_0064', 'warehouse_level': 'regional_warehouse', 'commodity_category': 'laboratory_reagents', 'facilities_affected_by_stockout': 28}, {'uid': 'regional_warehouse:WH_0012', 'warehouse_id': 'WH_0012', 'warehouse_level': 'regional_warehouse', 'commodity_category': 'vaccines', 'facilities_affected_by_stockout': 25}, {'uid': 'regional_warehouse:WH_0070', 'warehouse_id': 'WH_0070', 'warehouse_level': 'regional_warehouse', 'commodity_category': 'vaccines', 'facilities_affected_by_stockout': 18}, '... and 40 more']

Q: which items are stocked out in rural areas?
A:

Chosen response:
FACTS: 45 active stockouts (region_type=rural). worst: WH_0074 (national_CMS, vaccines), 60 facilities hit
RECOMMENDATION: prioritize WH_0074 (national_CMS) first.

Rejected response:
FACTS: 45 active stockouts (region_type=rural). worst: WH_0074 (national_CMS, vaccines), 60 facilities hit
RECOMMENDATION: Not sure. To get more information, I would need to check further.
FACTS: 45 active stockouts (region_type=rural). worst: WH_0074 (national_CMS, vaccines), 60 facilities hit
RECOMMENDATION: Not sure. To get more information, I would need to check further.


Prompt:
You're a warehouse assistant. Answer using only the data given. Separate FACTS from RECOMMENDATION. Say if you're not sure. Don't make stuff up.

tool call: explain_issue({}) -> {'dominant_issue': 'theft_pilferage', 'count': 18, 'n_records': 210, 'issue_counts': {'theft_pilferage': 18, 'expired_stock': 18, 'stock_record_discrepancy': 18, 'temperature_excursion': 18, 'FEFO_not_followed': 18, 'damaged_goods': 18, 'overstocking': 18, 'receiving_error': 18, 'understocking': 18, 'dispatch_error': 18, 'pest_infestation': 18}}

Q: why do warehouses typically fail?
A:

Chosen response:
FACTS: most common issue: theft_pilferage (18 of 210 records)
RECOMMENDATION: investigate theft_pilferage as the top recurring issue.

Rejected response: not sure, you'd have to check the system yourself


Prompt:
You're a warehouse assistant. Answer using only the data given. Separate FACTS from RECOMMENDATION. Say if you're not sure. Don't make stuff up.

tool call: stockouts({'uid': 'regional_warehouse:WH_0011'}) -> []

Q: does WH_0011 at the regional_warehouse currently have any active stockouts?
A:

Chosen response:
FACTS: no active stockouts (uid=regional_warehouse:WH_0011)
RECOMMENDATION: nothing urgent here.

Rejected response:
FACTS: no active stockouts (uid=regional_warehouse:WH_0011)
RECOMMENDATION: Not sure. (Not enough information to determine)


Prompt:
You're a warehouse assistant. Answer using only the data given. Separate FACTS from RECOMMENDATION. Say if you're not sure. Don't make stuff up.

tool call: explain_issue({'uid': 'regional_warehouse:WH_0011', 'commodity_category': 'nutrition_commodities', 'year': 2021, 'month': 8}) -> {'status': 'ok', 'uid': 'regional_warehouse:WH_0011', 'warehouse_id': 'WH_0011', 'warehouse_level': 'regional_warehouse', 'year': 2021, 'month': 8, 'reported_issue': 'temperature_excursion', 'has_issue': True, 'signals': ['storage conditions not adequate', 'low inventory accuracy (56.5%)', 'high wastage (11.0%)'], 'uncertain': True}

Q: why is WH_0011 at the regional_warehouse failing fulfillment for nutrition commodities?
A:

Chosen response:
FACTS: WH_0011 (regional_warehouse, 8/2021): reported issue = temperature_excursion. other signals: storage conditions not adequate; low inventory accuracy (56.5%); high wastage (11.0%) (note: report not submitted, numbers may be provisional)
RECOMMENDATION: address the reported issue (temperature_excursion).

Rejected response: not sure, you'd have to check the system yourself

storage conditions not adequate
low inventory accuracy (56.5%)
high wastage (11.0%)


Prompt:
You're a warehouse assistant. Answer using only the data given. Separate FACTS from RECOMMENDATION. Say if you're not sure. Don't make stuff up.

tool call: explain_issue({'uid': 'national_CMS:WH_0081', 'commodity_category': 'laboratory_reagents', 'year': 2024, 'month': 11}) -> {'status': 'ok', 'uid': 'national_CMS:WH_0081', 'warehouse_id': 'WH_0081', 'warehouse_level': 'national_CMS', 'year': 2024, 'month': 11, 'reported_issue': 'expired_stock', 'has_issue': True, 'signals': ['low inventory accuracy (71.7%)', 'high wastage (15.9%)']}

Q: why is WH_0081 at the national_CMS failing fulfillment for laboratory reagents?
A:

Chosen response:
FACTS: WH_0081 (national_CMS, 11/2024): reported issue = expired_stock. other signals: low inventory accuracy (71.7%); high wastage (15.9%)
RECOMMENDATION: address the reported issue (expired_stock).

Rejected response: not sure, you'd have to check the system yourself

low inventory accuracy (71.7%)
high wastage (15.9%)


Prompt:
You're a warehouse assistant. Answer using only the data given. Separate FACTS from RECOMMENDATION. Say if you're not sure. Don't make stuff up.

tool call: explain_issue({}) -> {'dominant_issue': 'theft_pilferage', 'count': 18, 'n_records': 210, 'issue_counts': {'theft_pilferage': 18, 'expired_stock': 18, 'stock_record_discrepancy': 18, 'temperature_excursion': 18, 'FEFO_not_followed': 18, 'damaged_goods': 18, 'overstocking': 18, 'receiving_error': 18, 'understocking': 18, 'dispatch_error': 18, 'pest_infestation': 18}}

Q: what's the most common issue overall?
A:

Chosen response:
FACTS: most common issue: theft_pilferage (18 of 210 records)
RECOMMENDATION: investigate theft_pilferage as the top recurring issue.

Rejected response: FACTS: investigate theft_pilferage as the top recurring issue.


Prompt:
You're a warehouse assistant. Answer using only the data given. Separate FACTS from RECOMMENDATION. Say if you're not sure. Don't make stuff up.

tool call: shortage_risk({'uid': 'district_store:WH_0046'}) -> [{'uid': 'district_store:WH_0046', 'warehouse_id': 'WH_0046', 'warehouse_level': 'district_store', 'commodity_category': 'laboratory_reagents', 'risk_score': 7.0, 'risk_factors': ['high_backorder_rate', 'low_fulfilment', 'high_wastage', 'storage_inadequate', 'criticality_medium']}]

Q: is WH_0046 at the district_store at risk of running short on anything?
A:

Chosen response:
FACTS: top shortage risk (uid=district_store:WH_0046) is WH_0046 (district_store, laboratory_reagents), score=7.0, factors=['high_backorder_rate', 'low_fulfilment', 'high_wastage', 'storage_inadequate', 'criticality_medium']
RECOMMENDATION: focus replenishment planning on WH_0046 (district_store).

Rejected response:
FACTS: top shortage risk (uid=district_store:WH_0046) is WH_0046 (district_store, laboratory_reagents), score=7.0, factors=['high_backorder_rate', 'low_fulfilment', 'high_wastage', 'storage_inadequate', 'criticality_medium']
RECOMMENDATION: Not sure. (Not enough information to determine)


Prompt:
You're a warehouse assistant. Answer using only the data given. Separate FACTS from RECOMMENDATION. Say if you're not sure. Don't make stuff up.

tool call: stockouts({'uid': 'district_store:WH_0065'}) -> []

Q: does WH_0065 at the district_store currently have any active stockouts?
A:

Chosen response:
FACTS: no active stockouts (uid=district_store:WH_0065)
RECOMMENDATION: nothing urgent here.

Rejected response: FACTS: nothing urgent here.


Prompt:
You're a warehouse assistant. Answer using only the data given. Separate FACTS from RECOMMENDATION. Say if you're not sure. Don't make stuff up.

tool call: explain_issue({'uid': 'district_store:WH_0026', 'commodity_category': 'laboratory_reagents', 'year': 2023, 'month': 9}) -> {'status': 'ok', 'uid': 'district_store:WH_0026', 'warehouse_id': 'WH_0026', 'warehouse_level': 'district_store', 'year': 2023, 'month': 9, 'reported_issue': 'dispatch_error', 'has_issue': True, 'signals': ['storage conditions not adequate', 'FEFO compliance failed', 'low inventory accuracy (10.0%)', 'high wastage (28.8%)', 'active stockout'], 'uncertain': True}

Q: why is WH_0026 at the district_store failing fulfillment for laboratory reagents?
A:

Chosen response:
FACTS: WH_0026 (district_store, 9/2023): reported issue = dispatch_error. other signals: storage conditions not adequate; FEFO compliance failed; low inventory accuracy (10.0%); high wastage (28.8%); active stockout (note: report not submitted, numbers may be provisional)
RECOMMENDATION: address the reported issue (dispatch_error).

Rejected response:
FACTS: WH_0026 (district_store, 38.7/2023): reported issue = dispatch_error. other signals: storage conditions not adequate; FEFO compliance failed; low inventory accuracy (10.0%); high wastage (28.8%); active stockout (note: report not submitted, numbers may be provisional)
RECOMMENDATION: address the reported issue (dispatch_error).
FACTS: WH_0026 (district_store, 38.7/2023): reported issue = dispatch_error. other signals: storage conditions not adequate; FEFO compliance failed; low inventory accuracy (10.0%); high wastage (28.8%); active stockout (note: report not submitted, numbers may be provisional)
RECOMMENDATION: address the reported issue (dispatch_error).

storage conditions not adequate
FEFO compliance failed
low inventory accuracy (10.0%)
high wastage (28.8%)
active stockout


Prompt:
You're a warehouse assistant. Answer using only the data given. Separate FACTS from RECOMMENDATION. Say if you're not sure. Don't make stuff up.

tool call: stockouts({'uid': 'district_store:WH_0042'}) -> [{'uid': 'district_store:WH_0042', 'warehouse_id': 'WH_0042', 'warehouse_level': 'district_store', 'commodity_category': 'medical_devices_consumables', 'facilities_affected_by_stockout': 6}, {'uid': 'district_store:WH_0042', 'warehouse_id': 'WH_0042', 'warehouse_level': 'district_store', 'commodity_category': 'controlled_substances', 'facilities_affected_by_stockout': 3}]

Q: does WH_0042 at the district_store currently have any active stockouts?
A:

Chosen response:
FACTS: 2 active stockouts (uid=district_store:WH_0042). worst: WH_0042 (district_store, medical_devices_consumables), 6 facilities hit
RECOMMENDATION: prioritize WH_0042 (district_store) first.

Rejected response:
FACTS: 2 active stockouts (uid=district_store:WH_0042). worst: WH_0042 (district_store, medical_devices_consumables), 6 facilities hit
RECOMMENDATION: Not sure. (Not enough information to determine)
FACTS: 2 active stockouts (uid=district_store:WH_0042). worst: WH_0042 (district_store, medical_devices_consumables), 6 facilities hit
RECOMMENDATION: Not sure. (Not enough information to determine)


Prompt:
You're a warehouse assistant. Answer using only the data given. Separate FACTS from RECOMMENDATION. Say if you're not sure. Don't make stuff up.

tool call: stockouts({'uid': 'regional_warehouse:WH_0037'}) -> []

Q: does WH_0037 at the regional_warehouse currently have any active stockouts?
A:

Chosen response:
FACTS: no active stockouts (uid=regional_warehouse:WH_0037)
RECOMMENDATION: nothing urgent here.

Rejected response:
FACTS: no active stockouts (uid=regional_warehouse:WH_0348)
RECOMMENDATION: nothing urgent here.


Prompt:
You're a warehouse assistant. Answer using only the data given. Separate FACTS from RECOMMENDATION. Say if you're not sure. Don't make stuff up.

tool call: stockouts({'uid': 'national_CMS:WH_0003'}) -> [{'uid': 'national_CMS:WH_0003', 'warehouse_id': 'WH_0003', 'warehouse_level': 'national_CMS', 'commodity_category': 'medical_devices_consumables', 'facilities_affected_by_stockout': 7}]

Q: does WH_0003 at the national_CMS currently have any active stockouts?
A:

Chosen response:
FACTS: 1 active stockouts (uid=national_CMS:WH_0003). worst: WH_0003 (national_CMS, medical_devices_consumables), 7 facilities hit
RECOMMENDATION: prioritize WH_0003 (national_CMS) first.

Rejected response:
FACTS: 1 active stockouts (uid=national_CMS:WH_0789). worst: WH_0789 (national_CMS, medical_devices_consumables), 7 facilities hit
RECOMMENDATION: prioritize WH_0789 (national_CMS) first.


Prompt:
You're a warehouse assistant. Answer using only the data given. Separate FACTS from RECOMMENDATION. Say if you're not sure. Don't make stuff up.

tool call: stockouts({'uid': 'national_CMS:WH_0026'}) -> []

Q: does WH_0026 at the national_CMS currently have any active stockouts?
A:

Chosen response:
FACTS: no active stockouts (uid=national_CMS:WH_0026)
RECOMMENDATION: nothing urgent here.

Rejected response: not sure, you'd have to check the system yourself


Prompt:
You're a warehouse assistant. Answer using only the data given. Separate FACTS from RECOMMENDATION. Say if you're not sure. Don't make stuff up.

tool call: explain_issue({'compare_by': 'warehouse_level', 'compare_values': ['district_store', 'national_CMS']}) -> {'_grouped_by': 'warehouse_level', 'groups': {'district_store': {'dominant_issue': 'theft_pilferage', 'count': 6, 'n_records': 66, 'issue_counts': {'theft_pilferage': 6, 'expired_stock': 6, 'stock_record_discrepancy': 6, 'temperature_excursion': 6, 'FEFO_not_followed': 6, 'damaged_goods': 6, 'overstocking': 6, 'receiving_error': 6, 'understocking': 6, 'dispatch_error': 6, 'pest_infestation': 6}}, 'national_CMS': {'dominant_issue': 'theft_pilferage', 'count': 6, 'n_records': 72, 'issue_counts': {'theft_pilferage': 6, 'stock_record_discrepancy': 6, 'damaged_goods': 6, 'overstocking': 6, 'understocking': 6, 'expired_stock': 6, 'FEFO_not_followed': 6, 'receiving_error': 6, 'dispatch_error': 6, 'pest_infestation': 6, 'temperature_excursion': 6}}}}

Q: how do district_store and national_CMS compare on why they're failing?
A:

Chosen response:
FACTS: most common issue by warehouse_level: district_store: theft_pilferage (6x); national_CMS: theft_pilferage (6x)
RECOMMENDATION: focus on the district_store group's most common issue first.

Rejected response:
FACTS: most common issue by warehouse_level: district_store: theft_pilferage (6x); national_CMS: theft_pilferage (6x) Not entirely sure if this is complete.
RECOMMENDATION: focus on the district_store group's most common issue first.


Prompt:
You're a warehouse assistant. Answer using only the data given. Separate FACTS from RECOMMENDATION. Say if you're not sure. Don't make stuff up.

tool call: backorders({'uid': 'district_store:WH_0092'}) -> [{'uid': 'district_store:WH_0092', 'warehouse_id': 'WH_0092', 'warehouse_level': 'district_store', 'commodity_category': 'vaccines', 'orders_backordered': 4, 'backorder_rate_pct': 80.0}]

Q: which category has the most backorders at WH_0092 at the district_store?
A:

Chosen response:
FACTS: 1 backordered records (uid=district_store:WH_0092). worst: WH_0092 (district_store, vaccines) at 80.0% backorder rate
RECOMMENDATION: expedite WH_0092 (district_store).

Rejected response:
FACTS: 21.3 backordered records (uid=district_store:WH_0092). worst: WH_0092 (district_store, vaccines) at 80.0% backorder rate
RECOMMENDATION: expedite WH_0092 (district_store).