incerto.llm.VerbalizedConfidence#
- class incerto.llm.VerbalizedConfidence[source]#
Bases:
objectAsk the model to verbalize its confidence.
Prompt: “How confident are you in this answer? (0-100%)” Extract and return the confidence score.
- __init__()#
Methods
__init__()extract_percentage(response)Extract a percentage value from text.
get_confidence_prompt(question, answer)Generate a prompt to elicit confidence.