curl --request POST \
--url https://app.langwatch.ai/api/evaluations/ragas/context_f1/evaluate \
--header 'Content-Type: application/json' \
--header 'X-Auth-Token: <api-key>' \
--data '{
"data": {
"contexts": [
"<string>"
],
"expected_contexts": [
"<string>"
]
}
}'
[
{
"status": "processed",
"score": 123,
"passed": true,
"label": "<string>",
"details": "<string>",
"cost": {
"currency": "<string>",
"amount": 123
},
"raw_response": {},
"error_type": "<string>",
"traceback": [
"<string>"
]
}
]
Balances between precision and recall for context retrieval, increasing it means a better signal-to-noise ratio. Uses traditional string distance metrics.
curl --request POST \
--url https://app.langwatch.ai/api/evaluations/ragas/context_f1/evaluate \
--header 'Content-Type: application/json' \
--header 'X-Auth-Token: <api-key>' \
--data '{
"data": {
"contexts": [
"<string>"
],
"expected_contexts": [
"<string>"
]
}
}'
[
{
"status": "processed",
"score": 123,
"passed": true,
"label": "<string>",
"details": "<string>",
"cost": {
"currency": "<string>",
"amount": 123
},
"raw_response": {},
"error_type": "<string>",
"traceback": [
"<string>"
]
}
]
Successful evaluation
The response is of type object[]
.
Was this page helpful?