incerto.llm.SelfEvaluation#

class incerto.llm.SelfEvaluation[source]#

Bases: object

Multi-turn self-critique for uncertainty.

Ask the model to evaluate its own answer and look for inconsistencies.

__init__()#

Methods

__init__()

get_critique_prompt(question, answer)

Generate self-critique prompt.

static get_critique_prompt(question, answer)[source]#

Generate self-critique prompt.

Parameters:
  • question (str) – The original question

  • answer (str) – The model’s answer

Return type:

str

Returns:

Prompt for self-evaluation