Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 | 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x | import {
TurnRelevancyEvaluationAIParameters,
TurnRelevancyEvaluationParameters,
} from '@api/connectors/evaluations/turn-relevancy/types';
import type { EvaluationMethodConnector } from '@api/types/connector';
import {
type EvaluationMethodDetails,
EvaluationMethodName,
} from '@shared/types/evaluations';
import { evaluateLog } from './service/evaluate';
const methodConfig: EvaluationMethodDetails = {
method: EvaluationMethodName.TURN_RELEVANCY,
name: 'Turn Relevancy',
description:
'Evaluates whether a conversation turn is relevant to the prior context',
} as const;
export const turnRelevancyEvaluationConnector: EvaluationMethodConnector = {
getDetails: () => methodConfig,
evaluateLog,
getParameterSchema: TurnRelevancyEvaluationParameters,
getAIParameterSchema: TurnRelevancyEvaluationAIParameters,
};
|