Skip to main content

extract_score

Function extract_score 

Source
pub fn extract_score(text: &str) -> Option<(u32, String)>
Expand description

Extract score and answer from LLM output.

Returns None when no parseable score is present — the caller then decides how to treat unscored output (skip the document or use a configured default) instead of silently assigning a middle score that pollutes ranking (P1-3).