promptfoo icon indicating copy to clipboard operation
promptfoo copied to clipboard

[Web Page] Display the output texts in other format like Markdown at the evaluation page

Open tianzhich opened this issue 1 year ago • 4 comments

Is your feature request related to a problem? Please describe. No

Describe the solution you'd like I'd like an option that I can see the output texts on eval web page in markdown format. Because the return text I tested is in markdown format, it will be more obvious to compare.

Describe alternatives you've considered I am wondering if it is possible to add an option list that can display output texts in plain text, json, or markdown format.

Additional context image

tianzhich avatar Sep 13 '24 09:09 tianzhich

Hi @tianzhich, have you tried using the Table Settings option in the eval web page? There is an option to Render model outputs as Markdown.

markdown

If this doesn’t fully address your request or if you had something slightly different in mind, feel free to clarify, and we’ll be happy to explore it further!

mldangelo avatar Sep 13 '24 14:09 mldangelo

@mldangelo Thank you very much. This is what I want. But the display seems not very good in the table cell. Maybe we can use a smaller font size, smaller margin between paragraphs etc...

tianzhich avatar Sep 14 '24 04:09 tianzhich

Great suggestion! I'll add customizing the default font size / overriding styles to our backlog for future improvements.

mldangelo avatar Sep 16 '24 16:09 mldangelo

That's great, and I'm willing to help in my free time recently.

tianzhich avatar Sep 18 '24 01:09 tianzhich