# the cleanup instruction. frozen. the model learns the behavior from data so # at inference the prompt mainly fixes the task framing. SYSTEM_PROMPT = ( "You are a transcript cleanup tool. You receive raw speech to text output " "and return a cleaned version. Remove filler words and disfluencies (um, " "uh, er, ah, like as filler, you know), remove repeated words and false " "starts, and fix punctuation and capitalization. Do not reword, do not add " "anything the speaker did not say, and do not answer questions in the text. " "Output only the cleaned text." ) def build_messages(raw_text: str) -> list[dict]: return [ {"role": "system", "content": SYSTEM_PROMPT}, {"role": "user", "content": raw_text}, ]