HMWCS commited on
Commit
415ce14
·
verified ·
1 Parent(s): f72bd3b

feat: strengthen mixed garbage handling rules with mandatory outputs

Browse files
Files changed (1) hide show
  1. knowledge_base.py +15 -10
knowledge_base.py CHANGED
@@ -5,22 +5,27 @@ class GarbageClassificationKnowledge:
5
 
6
  IMPORTANT: You should ONLY classify items that are actually garbage/waste. If the image contains people, living things, furniture, electronics in use, or other non-waste items, you should classify it as "Unable to classify" and explain that it's not garbage.
7
 
8
- **MIXED GARBAGE HANDLING RULES:**
9
 
10
- 1. **Food with Recyclable Containers**:
11
- - OBVIOUSLY VISIBLE FOOD (chunks, liquids, substantial residue) in recyclable containers: Container goes to "Food/Kitchen Waste" with warning "⚠️ Tip: Empty and rinse this container first, then it can be recycled!"
 
 
12
  - MINOR RESIDUE (grease stains, light film, pizza box grease spots) in recyclable containers: Container remains "Recyclable Waste"
13
  - This is the ONLY allowed mixed-type situation (recyclable container + food content)
14
 
15
- 2. **Different Type Mixed**:
16
- - If image shows clearly different waste categories mixed together (electronics + organic waste, batteries + food scraps, hazardous + recyclable items): classify as "Unable to classify" and MUST include warning "⚠️ Warning: Multiple garbage types detected. Please separate items for proper classification."
 
 
17
 
18
- 3. **Same Type Mixed**:
19
- - Multiple items of the SAME category are acceptable and should be classified to that category normally (multiple electronics = "Hazardous Waste", multiple recyclable containers = "Recyclable Waste", multiple food items = "Food/Kitchen Waste")
20
- - Do NOT classify same-type collections as "Unable to classify"
 
 
21
 
22
- STRICTLY ENFORCE: Only recyclable containers with food are permitted mixed classification. Everything else mixed = "Unable to classify" with separation warning. Same-type collections should be classified to their category.
23
- Garbage classification standards:
24
 
25
  **Recyclable Waste**:
26
  - Paper: newspapers, magazines, books, various packaging papers, office paper, advertising flyers, cardboard boxes with light grease stains, copy paper, etc.
 
5
 
6
  IMPORTANT: You should ONLY classify items that are actually garbage/waste. If the image contains people, living things, furniture, electronics in use, or other non-waste items, you should classify it as "Unable to classify" and explain that it's not garbage.
7
 
8
+ **MIXED GARBAGE HANDLING RULES - ABSOLUTE COMPLIANCE REQUIRED:**
9
 
10
+ 1. **Food with Recyclable Containers (EXACT TIP MANDATORY)**:
11
+ - OBVIOUSLY VISIBLE FOOD (chunks, liquids, substantial residue) in recyclable containers: Container goes to "Food/Kitchen Waste"
12
+ - **COMPULSORY OUTPUT**: "⚠️ Tip: Empty and rinse this container first, then it can be recycled!"
13
+ - **ZERO TOLERANCE**: This exact tip MUST appear in your response - failure to include = incorrect classification
14
  - MINOR RESIDUE (grease stains, light film, pizza box grease spots) in recyclable containers: Container remains "Recyclable Waste"
15
  - This is the ONLY allowed mixed-type situation (recyclable container + food content)
16
 
17
+ 2. **Different Type Mixed (EXACT WARNING MANDATORY)**:
18
+ - If image shows clearly different waste categories mixed together: classify as "Unable to classify"
19
+ - **COMPULSORY OUTPUT**: "⚠️ Warning: Multiple garbage types detected. Please separate items for proper classification."
20
+ - **ZERO TOLERANCE**: This exact warning MUST appear in your response - failure to include = incorrect classification
21
 
22
+ 3. **Same Type Mixed (CLASSIFICATION MANDATORY)**:
23
+ - Multiple electronics = "Hazardous Waste" - **NEVER "Unable to classify"**
24
+ - Multiple recyclables = "Recyclable Waste" - **NEVER "Unable to classify"**
25
+ - Multiple food items = "Food/Kitchen Waste" - **NEVER "Unable to classify"**
26
+ - **ZERO TOLERANCE**: Same-category items MUST be classified to their category - calling them "mixed" = wrong
27
 
28
+ **ABSOLUTE ENFORCEMENT**: Any deviation from these exact outputs constitutes classification failure. Follow these rules with 100% precision or your response is incorrect.
 
29
 
30
  **Recyclable Waste**:
31
  - Paper: newspapers, magazines, books, various packaging papers, office paper, advertising flyers, cardboard boxes with light grease stains, copy paper, etc.