Class: RelevancyEvaluator
Extends
Implements
BaseEvaluator
Constructors
new RelevancyEvaluator()
new RelevancyEvaluator(
params
?):RelevancyEvaluator
Parameters
• params?: RelevancyParams
Returns
Overrides
Source
packages/core/src/evaluation/Relevancy.ts:31
Properties
evalTemplate()
private
evalTemplate: (__namedParameters
) =>string
Parameters
• __namedParameters
• __namedParameters.context: string
• __namedParameters.query: string
Returns
string
Source
packages/core/src/evaluation/Relevancy.ts:28
raiseError
private
raiseError:boolean
Source
packages/core/src/evaluation/Relevancy.ts:26
refineTemplate()
private
refineTemplate: (__namedParameters
) =>string
Parameters
• __namedParameters
• __namedParameters.contextMsg: string
• __namedParameters.existingAnswer: string
• __namedParameters.query: string
Returns
string
Source
packages/core/src/evaluation/Relevancy.ts:29
serviceContext?
private
optional
serviceContext:ServiceContext
Source
packages/core/src/evaluation/Relevancy.ts:25
Methods
_getPromptModules()
protected
_getPromptModules():Record
<string
,any
>
Returns
Record
<string
, any
>