7 ms·
PDFs don’t always contain actual text. Sometimes they just contain instructions to draw the letters. For that reason, IMO rendering a PDF page as an image is a
by zffr 1y ago
PDFs don’t always contain actual text. Sometimes they just contain instructions to draw the letters.
For that reason, IMO rendering a PDF page as an image is a very reasonable way to extract information out of it.
For the other formats you mentioned, I agree that it is probably better to parse the document instead.
- ashishb 1y ago> PDFs don’t always contain actual text. Sometimes they just contain instructions to draw the letters. Yeah, but when they do, it makes a difference. Also, speaking from experience, most invoices do contain actual text.
- ArnavAgrawal03 1y agoCompletely agree with this. This is what we've observed in production too. Embedding images makes the RAG a lot more robust to the "inner workings" of a document.
- barrenko 1y agoThe more I learn about PDF, the more I am : what?
- fc417fc802 1y agoIt makes sense. If you "print" to pdf it makes far more sense to keep the vector representation around. Rasterizing it would simultaneously bloat the file size and lower the quality level when transformed.