Reference/Autoevals library/TypeScript/Modules

Namespace: ContextEntityRecall

Estimates context recall by estimating TP and FN using annotated answer and retrieved context.

Functions

partial

partial<T>(args): Scorer<string, Omit<{ context?: string | string[] ; input?: string ; model?: string } & { maxTokens?: number ; temperature?: number } & OpenAIAuth & { pairwiseScorer?: Scorer<string, {}> }, T> & Partial<Pick<{ context?: string | string[] ; input?: string ; model?: string } & { maxTokens?: number ; temperature?: number } & OpenAIAuth & { pairwiseScorer?: Scorer<string, {}> }, T>>>

Type parameters

NameType
Textends "model" | "temperature" | "maxTokens" | keyof OpenAIAuth | "input" | "context" | "pairwiseScorer"

Parameters

NameType
args{ [K in "model" | "temperature" | "maxTokens" | keyof OpenAIAuth | "input" | "context" | "pairwiseScorer"]: (Object & Object & OpenAIAuth & Object)[K] }

Returns

Scorer<string, Omit<{ context?: string | string[] ; input?: string ; model?: string } & { maxTokens?: number ; temperature?: number } & OpenAIAuth & { pairwiseScorer?: Scorer<string, {}> }, T> & Partial<Pick<{ context?: string | string[] ; input?: string ; model?: string } & { maxTokens?: number ; temperature?: number } & OpenAIAuth & { pairwiseScorer?: Scorer<string, {}> }, T>>>

Defined in

autoevals/js/partial.ts:5

On this page