Live data from Hacker News

How we index images for RAG

kapa.ai

31–40 of 41 posts

Re: How we index images for RAG

#31
"This is what makes the load-bearing case work,"

Man I hate that AI writing tic. I appreciate the instincts for sharing the workflow. It's still very difficult to get AI to put an info dense description together though, we tend to get long and vague.

Re: How we index images for RAG

#35
post #7

With media ingestion this is called "eager" processing. Historically for things like pulling thumbnails for images / video and pre-generating common sizes for things. This follows the same pattern and makes all the sense in the world. My only concern is that due to the non deterministic nature of LLMs new models will reveal new information about your data. For example you might identify a car in an image but the cont…

Reminds me of my years working on digital forensic software... Just I was working on smaller scale, but the idea was kind of similar, extract, carve, pull as many raw files as possible, then process them through various threads / pipelines of processing, then categorize and make some sort of report. I guess in this case, its get it all buttoned up for training. I have to also imagine, some of it goes through some level of human review, anyone wanting to make a worthwhile model is better off letting humans describe things, the outputs become drastically better is my understanding, sure the training can find all the patterns, but the wording to describe it all if you can get just enough detail, makes a difference.

Re: How we index images for RAG

#36

Earlier quoted context omitted.

What does Mermaid text description of an image mean? Descriptions of images that are charts or diagrams to start with?

Most diagrams I come across are basically boxes and arrows which are representable with mermaid flow charts without losing information. The layout of the mermaid will usually look differently, but that is not typically what matters. ChatGPT is quite good in creating mermaid flow charts from random box and arrow diagram images.

Which cheap vision model would you recommend for ingesting category diagrams and producing mermaid facsimiles?

Re: How we index images for RAG

#37

Earlier quoted context omitted.

For a RAG project for a client with a lot of PDFs and Powerpoints with images, I used ColPali a year ago. I see the provider ColiVara is still online but it seems to have fizzled out. 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 representat…

> For a RAG project for a client with a lot of PDFs and Powerpoints with images, I used ColPali a year ago How was the accuracy compared to pre-parsing the image and doing search in the text?

Leaps and bounds better! I don't think I benchmarked it.

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.

Re: How we index images for RAG

#38
post #36

Earlier quoted context omitted.

Most diagrams I come across are basically boxes and arrows which are representable with mermaid flow charts without losing information. The layout of the mermaid will usually look differently, but that is not typically what matters. ChatGPT is quite good in creating mermaid flow charts from random box and arrow diagram images.

Which cheap vision model would you recommend for ingesting category diagrams and producing mermaid facsimiles?

I haven't yet tried to solve this at any scale. So my models are ChatGPT (plus) in the browser, or Sonnet/Opus 4.x in Zoo Code.

Re: How we index images for RAG

#40
I did it a year ago for my company knowledge base we have an internal chatbot that answers with guides with images in the correct place. I did it for videos and webinars as well used Gemini to analyze videos and send people to the direct time that explains about the user question
Post reply on HN