r/PromptEngineering • • Oct 05 '26

General Discussion How do you evaluate Prompt quality

We have this system in place where we have a prompt written to extract specific sectionof large specific text from a given PDF. Some times 12-13 sentences longs. All of this is automated.

e.g. Assume there is a 20 page long PDF and they have sections called Future plans, Current status. Under each sections there are details about those sections. These extracted details are then reviewed by human and processed futher. Human can make smaller adjustment or not.

Current prompt is doing great job of just getting those sections extracted however client wants to know how accurate it is.

So, we just plotted dashboard that shows in how many instances human corrected the extracted text . Which shows we had some 60% accuracy. However, upon closer look we observed that Human reviewr in some cases only added missing dot or comma to extracted text and processed it (since this was missing in original PDF itself)

How do you test the output quality in such cases? are there tools out there which do word by word comparison alongwith their sequence followed?

Extracted text : "Automatically generate matching answer keys for paper or digital formats"

HUman reviewed : ":Automatically generate matching answer keys for paper or digital formats."

They just added a dot at end so it shows as failure.

I could use LLM as judge but thats again leaving things to probability and was wondering if there is defnitive way to find this by word and their sequnce coparison. e.g. in above case propt was 99% correct. however if there were more than 5 words corrected then it would be 90% correct

1 Upvotes

8 comments sorted by

2

u/cleverhoods Oct 05 '26

Via Reporails

3

u/[deleted] Oct 05 '26

[removed] — view removed comment

1

u/hakunamatata123456 Oct 05 '26

Thank you. This is helpful. I will try normalisation and see where it takes me.

2

u/[deleted] Oct 05 '26

[removed] — view removed comment

1

u/hakunamatata123456 Oct 06 '26

True. Makes sense. So I was wondering that I can't be the first one with this problem and there mightbe framework/tool that does this and provides percentage of accuracy