by bad_username · 5mo ago · 0 comments
This is what I've been doing in my Obsidian infodump for a while. If I know that an image is important, I generate a text description (Mermaid if possible, English if not) and paste it after the image in a block. This lets agents see the image if they don't really see it. Though my process is manual, the improvements in outcomes for agents that rely on text search/retrieval is very real and is worth it.
Retrieving based on text and then giving the generation model the image instead is much smarter than retrieving based on image. Image-based retrieval is slow and expensive.
Same with giving the model an image vs a structured representation of it.
How was the accuracy compared to pre-parsing the image and doing search in the text?
But the experience was that it was able to find small details in PDFs, in technical diagrams, and this was really not captured well at all with OCR.
In general, OCR I think should be used more as an add-on to retrieve data, not given to the generation model itself. Similar to retrieving based off a text description and then giving the generation model the image.
Descriptions of images that are charts or diagrams to start with?