Removing formatting in an LLM response

Despite the instructions in the prompt, many models use the “*” symbols in the response (** for bold text, * - list items). These characters are then said by the TTS (some tts engines do the normalisation themselves, but most can’t, Piper included).

It would be a great idea to add a simple filter (as an option) to the assist pipeline (after the conversation module) that removes the formatting from the text.

Great Idea mchk,

If you think it’s a good idea, you should vote for it. I did :ballot_box_with_check:

Suggested Reading:
More about Feature Requests.