Class HallucinationEvaluator

Object
akka.javasdk.agent.Agent
akka.javasdk.agent.evaluator.HallucinationEvaluator
All Implemented Interfaces:
AgentDelegationWorker

@Deprecated(since="3.7.1", forRemoval=true) @Component(id="hallucination-evaluator", name="Hallucination Evaluator Agent", description="An agent that acts as an LLM judge to evaluate whether an output contains information\nnot available in the reference text given an input question.\n") public class HallucinationEvaluator extends Agent
Deprecated, for removal: This API element is subject to removal in a future version.
Write an Evaluator component that calls a judge agent of your own to judge whether an output is grounded in a reference text.
An agent that acts as an LLM judge to evaluate whether an output contains information not available in the reference text given an input question.

Model provider is defined in configuration akka.javasdk.agent.evaluators.hallucination-evaluator.model-provider, which by default is the same as the default model provider.

The system and user message prompts are loaded from PromptTemplate with id hallucination-evaluator.system and hallucination-evaluator.user respectively. Default prompts are used if these are not defined. The prompts can be initialized or updated with the PromptTemplate entity.

  • Field Details

    • componentId

      protected final String componentId
    • componentClient

      protected final ComponentClient componentClient
    • config

      protected final com.typesafe.config.Config config
  • Constructor Details

    • HallucinationEvaluator

      public HallucinationEvaluator(ComponentClient componentClient, com.typesafe.config.Config config)
      Deprecated, for removal: This API element is subject to removal in a future version.
  • Method Details