@gettoor/core / scalar
Function: scalar()
scalar(
input:ScalarInput):Promise<ScalarOutput>
Scores a response against a prompt using a language model.
Parameters
| Parameter | Type | Description |
|---|---|---|
input | ScalarInput | The input for the scoring. |
Returns
Promise<ScalarOutput>
The output of the scoring.