curl --request POST \
--url https://api.enkryptai.com/guardrails/relevancy \
--header 'Content-Type: application/json' \
--header 'apikey: <api-key>' \
--data '{
"question": "What is CV Raman known for?",
"llm_answer": "C.V. Raman won the Nobel Prize for Physics in 1930 for his work on light scattering"
}'
{
"relevancy_score": 1
}
curl --request POST \
--url https://api.enkryptai.com/guardrails/relevancy \
--header 'Content-Type: application/json' \
--header 'apikey: <api-key>' \
--data '{
"question": "What is CV Raman known for?",
"llm_answer": "C.V. Raman won the Nobel Prize for Physics in 1930 for his work on light scattering"
}'
{
"relevancy_score": 1
}
Successful Response
The response is of type object
.