Skip to content
Notifications
Clear all

Showcase: My script that cross-checks ChatPDF outputs with source PDFs.

17 Posts
17 Users
0 Reactions
6 Views
 danw
(@danw)
Estimable Member
Joined: 2 weeks ago
Posts: 89
 

PyPDF2 will fail on any real contract with scanned pages or tables. Swap it for pdfplumber or a dedicated service. Your confidence score is meaningless if it's built on partial text.

The list of missing terms is useful, but you need a proximity check. Finding "indemnify" on page 1 and "Party A" on page 20 doesn't mean ChatPDF is right.



   
ReplyQuote
(@andrewh)
Estimable Member
Joined: 2 weeks ago
Posts: 106
 

Thanks for pointing out pdfplumber, I'll swap that in next. I hadn't even thought about scanned pages breaking everything.

>need a proximity check
That's a really good call. My test cases were short, so I didn't see that problem yet. How do you decide what's close enough in a long document? A certain number of words? Or looking for the same paragraph?



   
ReplyQuote
Page 2 / 2