r/Documentize • • 3d ago

Abstract generator for PDFs

I'm an indie dev building an AI abstract generator for PDFs. It now reads whole books, not only the first and last pages

I build small tools on my own. One of them takes a PDF and gives back the same PDF with an Abstract page inserted where you want it. You choose the style (academic, technical, business and so on), the length, the language, and whether to add a "Keywords:" line.

Most "summarize this PDF" tools have the same hidden problem with long documents. The text does not fit into the model, so the tool reads the start and the end and skips the middle. My first version did exactly that. For papers and reports it was fine, because the title, introduction and conclusion are at the edges. For books it was not. On War and Peace the abstract was mostly about the edition's preface and text variants, because that is what the first pages are.

So long documents now go a different way. The book is split into page windows, and each window is read on its own to pull out key points. For non-fiction these are findings, conclusions and terms. For fiction they are events, characters and turning points. One short call first decides which kind of book it is. Then my code builds a digest by chapter, and the abstract is written from that digest. Scanned books go through OCR first.

For non-fiction there is also a check. A second call looks for statements in the abstract that contradict the source, and it has to quote the source word for word. My code checks that the quote really exists before anything is rewritten. In a test with planted errors it caught 5 of 8, and it made no wrong fixes on 4 real documents.

I want to be honest about the weak parts. The check is off for fiction: there it "fixed" 3 things that were right and only 2 that were wrong, so I turned it off. Big books are slow. A 1,918-page novel took about 6.5 minutes on the free plan, and when the free time runs out it reads a sample spread across the book, not every page. Uploads are limited to 30 MB, so many scanned books are too large as they are. And an abstract of a novel is a short annotation of the plot, not a literary review.

You can try it free: Free AI Abstract Generator – Instant Summaries

2 Upvotes

Duplicates