langchain.js
Preparing search index...
langsmith
evaluation
StringEvaluator
Class StringEvaluator
Implements
RunEvaluator
Index
Constructors
constructor
Properties
answer
Key?
evaluation
Name?
grading
Function
input
Key
prediction
Key
Methods
evaluate
Run
Constructors
constructor
new
StringEvaluator
(
params
:
StringEvaluatorParams
)
:
StringEvaluator
Parameters
params
:
StringEvaluatorParams
Returns
StringEvaluator
Properties
Protected
Optional
answer
Key
answerKey
?:
string
Protected
Optional
evaluation
Name
evaluationName
?:
string
Protected
grading
Function
gradingFunction
:
(
params
:
GradingFunctionParams
,
)
=>
Promise
<
GradingFunctionResult
>
Protected
input
Key
inputKey
:
string
Protected
prediction
Key
predictionKey
:
string
Methods
evaluate
Run
evaluateRun
(
run
:
Run
,
example
?:
Example
)
:
Promise
<
EvaluationResult
>
Parameters
run
:
Run
Optional
example
:
Example
Returns
Promise
<
EvaluationResult
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
answer
Key
evaluation
Name
grading
Function
input
Key
prediction
Key
Methods
evaluate
Run
langchain.js
Loading...