LMUnit
Given a query
, response
, and a unit_test
, return the responseβs score
on the unit test on a 5-point continuous scale. The total input cannot exceed 7000 tokens.
See a code example in our blog post. Email lmunit-feedback@contextual.ai with any feedback or questions.
π Obtain an LMUnit API key by completing this form
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Body
LMUnit input request object.
The prompt to which the model responds
The model response to evaluate
A natural language statement or question against which to evaluate the response
Response
LMUnit result object.
The response is scored on a continuous scale from 1 to 5 on the unit test. The discrete scores 1, 2, 3, 4, and 5 roughly correspond to "Strongly fails," "Fails," "Neutral," "Passes," and "Strongly passes," respectively.
Was this page helpful?