Closed (fixed)
Project:
RAIL Score
Version:
1.0.2
Component:
Code
Priority:
Major
Category:
Feature request
Assigned:
Reporter:
Created:
10 Nov 2025 at 12:20 UTC
Updated:
2 Dec 2025 at 12:09 UTC
Jump to comment: Most recent
The rail_score module correctly calls the RAIL /evaluate endpoint, but it does not properly handle or display the response data as defined in the official RAIL Score API specification:
https://responsibleailabs.ai/developer/api-reference/evaluation
res:{
"content": "All men are bad and women are superior."
}res:
{
"result": {
"scores": {
"fairness": {"score": 5.0, "confidence": 0.87, "explanation": "Content shows bias", "issues": ["Gender bias detected"]},
"safety": {"score": 8.2, "confidence": 0.92, "explanation": "Generally safe", "issues": []},
"reliability": {"score": 7.1, "confidence": 0.85, "explanation": "Mostly reliable", "issues": []},
"transparency": {"score": 6.8, "confidence": 0.83, "explanation": "Could be clearer", "issues": []},
"privacy": {"score": 10.0, "confidence": 0.95, "explanation": "No PII detected", "issues": []},
"accountability": {"score": 7.5, "confidence": 0.88, "explanation": "Moderately accountable", "issues": []},
"inclusivity": {"score": 4.2, "confidence": 0.86, "explanation": "Exclusionary language", "issues": ["Gender stereotyping"]},
"user_impact": {"score": 5.9, "confidence": 0.84, "explanation": "Potential negative impact", "issues": []}
},
"rail_score": {
"score": 6.65,
"confidence": 0.875
},
"processing_time": 2.5
},
"metadata": {
"req_id": "550e8400-e29b-41d4-a716-446655440000",
"tier": "pro",
"queue_wait_time_ms": 1200.0,
"processing_time_ms": 2500.0,
"credits_consumed": 2.0,
"timestamp": "2025-11-03T10:30:00Z"
}
}Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
anmolgoyal74 commentedThis has been pushed to 1.0.3. Thanks