Namespace: ListContains

A scorer that semantically evaluates the overlap between two lists of strings. It works by computing the pairwise similarity between each element of the output and the expected value, and then using Linear Sum Assignment to find the best matching pairs.

Functions

partial

partial<T>(args): Scorer<string[], Omit<{ allowExtraEntities?: boolean ; pairwiseScorer?: Scorer<string, {}> }, T> & Partial<Pick<{ allowExtraEntities?: boolean ; pairwiseScorer?: Scorer<string, {}> }, T>>>

Type parameters

NameType
Textends "allowExtraEntities" | "pairwiseScorer"

Parameters

NameType
args{ [K in "allowExtraEntities" | "pairwiseScorer"]: Object[K] }

Returns

Scorer<string[], Omit<{ allowExtraEntities?: boolean ; pairwiseScorer?: Scorer<string, {}> }, T> & Partial<Pick<{ allowExtraEntities?: boolean ; pairwiseScorer?: Scorer<string, {}> }, T>>>

Defined in

autoevals/js/partial.ts:5