API Endpoints
Context Utilization
This metric evaluates whether all of the output relevant items present in the contexts are ranked higher or not. Higher scores indicate better utilization.
Docs: https://docs.ragas.io/en/latest/concepts/metrics/context_precision.html
POST
/
ragas
/
context_utilization
/
evaluate
Body
application/json
data
object[]
requiredList of entries to be evaluated, check the field type for the necessary keys
settings
object | null
Evaluator settings, check the field type for what settings this evaluator supports
env
object | null
Optional environment variables to override the server ones
Response
200 - application/json
status
enum<string>
default: processedAvailable options:
processed
score
number
requiredpassed
boolean | null
details
string | null
Short human-readable description of the result
cost
object | null