• Preparing search index...
  • The search index is not available
Arize Phoenix TS
  • Arize Phoenix TS
  • @arizeai/phoenix-evals
  • llm/createHallucinationEvaluator
  • createHallucinationEvaluator

Function createHallucinationEvaluator

  • createHallucinationEvaluator<
        RecordType extends
            Record<string, unknown> = HallucinationEvaluationRecord,
    >(
        args: HallucinationEvaluatorArgs,
    ): ClassificationEvaluator<RecordType>

    Creates a function that evaluates whether an answer is factual or hallucinated based on a query and reference text.

    Type Parameters

    • RecordType extends Record<string, unknown> = HallucinationEvaluationRecord

    Parameters

    • args: HallucinationEvaluatorArgs

      The arguments for creating the hallucination evaluator.

    Returns ClassificationEvaluator<RecordType>

    A function that evaluates whether an answer is factual or hallucinated based on a query and reference text.

    • Defined in llm/createHallucinationEvaluator.ts:35

Settings

Member Visibility
Arize Phoenix TS
  • Loading...

Generated using TypeDoc