API endpoint:
POST /railscore/v1/eval | Python: client.eval() | JavaScript: client.eval()8 RAIL dimensions
हर dimension की पूरी definition, उसके score anchors, और हल किए हुए examples के लिए देखें The RAIL Framework।
Basic, deep, and auto modes
दोनों modes उन्हीं 8 dimensions को score करते हैं और वही overall RAIL score लौटाते हैं। फर्क गहराई में है और इसमें कि कितना detail वापस आता है।- Basic mode
- Deep mode
- Auto mode
RAIL के core scoring models। तेज़ (आम तौर पर एक second से कम) और production में real-time scoring के लिए बना।Returns: overall score, per-dimension scores, और confidence values।
Response
हर evaluation यह लौटाती है:rail_score— overall score (0–10), उसकाconfidence, और एक line काsummary।dimension_scores— हर एक 8 dimensions काscoreऔरconfidence। Deep mode में हर एक के साथexplanationऔरissuesभी (और मांगने परsuggestions)।policy_outcome— आपकी application की policy ने result को कैसे judge किया।
Selective dimensions
Custom weights
Weights का जोड़ 100 होना चाहिए:Score tiers
कोई भी score पांच bands में से एक पर मैप होता है, Excellent (9.0–10.0) से लेकर नीचे Critical (0.0–2.9) तक। पूरी table और हर band का मतलब देखने के लिए The RAIL Framework देखें।Caching
एक जैसी requests cached results लौटाती हैं, इसलिए एक ही content को बार-बार score करना तेज़ रहता है और दोबारा charge नहीं होता। Basic mode 5 मिनट तक cache करता है, deep mode 3 मिनट तक।API Reference: Evaluation
पूरा endpoint specification
Python SDK: Evaluation
Python code examples