Documentation
    Preparing search index...

    OkfEntryEvaluator orchestrates autonomous qualitative assessments of extracted OKF documents, supporting standalone Gemini audits and multi-model consensus scoring with ChatGPT and Claude.

    Index

    Constructors

    Properties

    Methods

    • Formats an extracted document target into a sanitized inspection string for the judge prompt.

      Parameters

      • extracted: string | OkfDocument | Record<string, unknown>

      Returns string

    • Normalizes raw LLM output into a validated OkfEvaluationReport.

      Parameters

      • raw: RawJudgePayload
      • judge: string
      • model: string

      Returns OkfEvaluationReport

    • Evaluates an OKF entry using Claude (Anthropic API or OpenRouter).

      Parameters

      • target: OkfEvaluationTarget
      • options: { apiKey?: string; model?: string; openRouterKey?: string } = {}

      Returns Promise<OkfEvaluationReport>

    • Computes an academic letter grade from a numerical score (0 to 100).

      Parameters

      • score: number

      Returns "A+" | "A" | "B" | "C" | "D" | "F"

    • Determines the pipeline verdict based on score and severity of hallucinations. A critical hallucination (such as inventing a species name) triggers an immediate FAIL.

      Parameters

      Returns "WARN" | "PASS" | "FAIL"

    • Computes the weighted composite score from the 5 qualitative dimensions.

      Parameters

      Returns number

    • Detects which LLM judges can be activated based on available API keys or adapters.

      Parameters

      Returns string[]