Reference/Autoevals library/Typescript/Modules

Namespace: Translation

Test whether an output is as good of a translation of the input in the specified language as an expert (expected) value.

Functions

partial

partial<T>(args): Scorer<string, Omit<LLMClassifierArgs<{ input: string ; language: string }>, T> & Partial<Pick<LLMClassifierArgs<{ input: string ; language: string }>, T>>>

Type parameters

NameType
Textends "model" | "temperature" | "maxTokens" | keyof OpenAIAuth | "useCoT" | "input" | "language"

Parameters

NameType
args{ [K in "model" | "temperature" | "maxTokens" | keyof OpenAIAuth | "useCoT" | "input" | "language"]: LLMClassifierArgs<Object>[K] }

Returns

Scorer<string, Omit<LLMClassifierArgs<{ input: string ; language: string }>, T> & Partial<Pick<LLMClassifierArgs<{ input: string ; language: string }>, T>>>

Defined in

autoevals/js/partial.ts:5

On this page