Gem questionnaire

I am trying to make a gem that can create one of the interactive multiple choice quizzes to gather more information about a users needs for a school project. The problem is it keeps coming up with write in multiple choice where you have to write out 3, a. 5, b. etc. This works but is a lot less slick. Has anyone come up with a good instruction for the gem to make this work more reliably.

Hi @Cade_Osenar
My approach to get interactive quiz output from a LLM is to use a structured prompt template that explicitly defines the desired output format and uses strict constraints. This template involves first defining the LLM’s role as a Quiz Generator, then specifying that the output MUST be in a clean Markdown format (like using simple * bullet points), and crucially, including a negative constraint to prevent unwanted prose formatting (e.g., “DO NOT use ‘a.’, ‘b.’, ‘1.’, ‘2.’”). This approach forces the model to bypass its natural language style and generate consistent, easy-to-parse data instead of conversational, numbered write-in answers.Please try this way let us know if it helps.