“Transcendental-Programmer”
first commit
c3cc0a9
raw
history blame
4.44 kB
{
"timestamp": "2024-10-28T18:28:04.957085",
"health_check": {
"status_code": 200,
"response": {
"services": {
"intelligent_routing": "up",
"job_recommendation": "up",
"sentiment_analysis": "up",
"translation": "up"
},
"status": "healthy",
"timestamp": "2024-10-28T18:28:01.846113"
}
},
"translation_tests": [
{
"test_case": {
"user_message": "toilet me paani nahi aa rha hain",
"target_language": "en"
},
"status_code": 200,
"response": {
"confidence": 0.9,
"error": null,
"language_name": "English",
"original_message": "toilet me paani nahi aa rha hain",
"source_language": "hi",
"target_language": "en",
"timestamp": "2024-10-28T18:28:02.381673",
"translated_message": "There is no water coming in the toilet"
}
},
{
"test_case": {
"user_message": "AC not working properly",
"target_language": "hi"
},
"status_code": 200,
"response": {
"confidence": 0.9,
"error": null,
"language_name": "Hindi",
"original_message": "AC not working properly",
"source_language": "af",
"target_language": "hi",
"timestamp": "2024-10-28T18:28:09.334685",
"translated_message": "एसी ठीक से काम नहीं कर रहा है"
}
},
{
"test_case": {
"user_message": "ਪੱਖਾ ਕੰਮ ਨਹੀਂ ਕਰ ਰਿਹਾ",
"target_language": "en"
},
"status_code": 200,
"response": {
"confidence": 0.9,
"error": null,
"language_name": "English",
"original_message": "ਪੱਖਾ ਕੰਮ ਨਹੀਂ ਕਰ ਰਿਹਾ",
"source_language": "pa",
"target_language": "en",
"timestamp": "2024-10-28T18:28:10.832359",
"translated_message": "The fan is not working"
}
}
],
"sentiment_analysis_tests": [
{
"test_case": {
"grievance_id": "G12347",
"text": "I am extremely frustrated with the constant power outages in my room."
},
"status_code": 200,
"response": {
"confidence": 0.98044353723526,
"emotional_label": "Frustration",
"grievance_id": "G12347",
"timestamp": "2024-10-28T18:28:12.376193"
}
},
{
"test_case": {
"grievance_id": "G12348",
"text": "Thank you for quickly fixing the water issue."
},
"status_code": 200,
"response": {
"confidence": 0.938926100730896,
"emotional_label": "Satisfaction",
"grievance_id": "G12348",
"timestamp": "2024-10-28T18:28:13.784609"
}
},
{
"test_case": {
"grievance_id": "G12349",
"text": "The AC has been making strange noises all night."
},
"status_code": 200,
"response": {
"confidence": 0.8782024383544922,
"emotional_label": "Frustration",
"grievance_id": "G12349",
"timestamp": "2024-10-28T18:28:15.172750"
}
}
],
"routing_tests": [],
"job_recommendation_tests": [
{
"test_case": {
"job_id": "J60000",
"type": "IT",
"description": "IT issue in room 358.",
"urgency_level": "Low",
"location": {
"hostel_name": "Hostel B",
"floor_number": 3,
"room_number": "358"
},
"workers": [
{
"worker_id": "W97053",
"department": "IT",
"current_workload": 3,
"availability_status": "Available",
"job_success_rate": 0.95,
"current_location": {
"hostel_name": "Hostel A",
"floor_number": 3,
"room_number": "468"
}
},
{
"worker_id": "W97054",
"department": "IT",
"current_workload": 1,
"availability_status": "Available",
"job_success_rate": 0.92,
"current_location": {
"hostel_name": "Hostel B",
"floor_number": 3,
"room_number": "360"
}
}
]
},
"status_code": 500,
"response": {
"details": "hour must be in 0..23",
"error": "Internal server error"
}
}
]
}