> we don't send images to the model at query time. We describe each image once, at indexing time, with a cheap vision model, store the descriptions as text, and retrieve them alongside ordinary text chunks 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. T…
What does Mermaid text description of an image mean? Descriptions of images that are charts or diagrams to start with?
How we index images for RAG
21–30 of 41 posts
Re: How we index images for RAG
#22Re: How we index images for RAG
#23> we don't send images to the model at query time. We describe each image once, at indexing time, with a cheap vision model, store the descriptions as text, and retrieve them alongside ordinary text chunks 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. T…
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.
Re: How we index images for RAG
#24Earlier quoted context omitted.
Article says this misses important details, eg data that might be in the image.
very bad take. with most modern multomodal models you get way better performance then going to text first
Re: How we index images for RAG
#25- Marketing material? check
- Bloated to the extreme? check
- "Get a free trial" at the end? check
- Entirely LLM generated? check
Re: How we index images for RAG
#26> we don't send images to the model at query time. We describe each image once, at indexing time, with a cheap vision model, store the descriptions as text, and retrieve them alongside ordinary text chunks 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. T…
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…
How was the accuracy compared to pre-parsing the image and doing search in the text?
Re: How we index images for RAG
#27Re: How we index images for RAG
#28Re: How we index images for RAG
#29With 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…
Re: How we index images for RAG
#30That's smart. Just the other day, I was thinking about how I would solve images/graphs/rich PDF stuff in a RAG system. Now I know more, thanks!