Few-shot chain-of-thought outputs end with a fixed phrase. Parsing that phrase is how the evaluation pulls the final answer out of a long reasoning trace.
Implement extract_final_answer(text), returning the text after the last 'The answer is' phrase.
Use re.findall to capture the content after each phrase, then take the last match.
No results yet
Run your code to check it against the examples, or submit to run every test.