Reference/Autoevals library/TypeScript/Modules

Namespace: AnswerRelevancy

Scores the relevancy of the generated answer to the given question. Answers with incomplete, redundant or unnecessary information are penalized.

Functions

partial

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

Type parameters

NameType
Textends string | number

Parameters

NameType
args{ [K in string | number]: (Object & Object & OpenAIAuth & Object & RagasEmbeddingModelArgs)[K] }

Returns

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

Defined in

autoevals/js/partial.ts:5

On this page