Skip to main content

parse_final_answer

Function parse_final_answer 

Source
pub fn parse_final_answer(text: &str) -> Vec<(String, usize, usize)>
Expand description

Parse the path:start-end citations out of an explore answer. Reused by the eval harness to score the Explore arm. Tolerant of the optional trailing label and of text outside the <final_answer> block.