curl --request POST \
--url https://api.enkryptai.com/guardrails/adherence \
--header 'Content-Type: application/json' \
--header 'apikey: <api-key>' \
--data '{
"llm_answer": "C.V. Raman won the Nobel Prize for Physics in 1930 for his work on making some science stuff or cooking stuff",
"context": "Indian scientists have made significant contributions to various scientific fields. C.V. Raman won the Nobel Prize for Physics in 1930 for his work on light scattering. Other notable scientists include Srinivasa Ramanujan, a mathematical genius, and A.P.J. Abdul Kalam, a key figure in India'\''s aerospace and nuclear programs."
}'
{
"adherence_score": 0.5
}
curl --request POST \
--url https://api.enkryptai.com/guardrails/adherence \
--header 'Content-Type: application/json' \
--header 'apikey: <api-key>' \
--data '{
"llm_answer": "C.V. Raman won the Nobel Prize for Physics in 1930 for his work on making some science stuff or cooking stuff",
"context": "Indian scientists have made significant contributions to various scientific fields. C.V. Raman won the Nobel Prize for Physics in 1930 for his work on light scattering. Other notable scientists include Srinivasa Ramanujan, a mathematical genius, and A.P.J. Abdul Kalam, a key figure in India'\''s aerospace and nuclear programs."
}'
{
"adherence_score": 0.5
}
Successful Response
The response is of type object
.