Skip to main content

judgeCacheKey

@retinue/monorepo


@retinue/monorepo / backend/src / judgeCacheKey

Function: judgeCacheKey()

judgeCacheKey(input): string

Defined in: backend/src/evaluation/judge.ts:84

The cache key.

Includes the prompt version and the model id, so bumping either invalidates rather than silently reusing a verdict from a different instrument. And the output text rather than the case id alone — the same case scored against a new release produces different output and must be judged again.

Parameters​

input​

caseId​

string

modelId​

string

outputText​

string

promptVersion​

string

Returns​

string