News for hackers. Stuff that matters.

chiccomagnus

IMHO, your article is missing an important point: 90% of implementations today flatten documents to plain text before chunking them. Why not consider the visual appearance that the human gave to the document? Using layout information combined with semantics, you can increase rag performances by +160% (tested via benchmarks), so why do most of us only use text?

Note: multimodal ≠ layout

How does credits works?
If you don't want to reinvent the wheel, we have built exactly that, goggle "Preprocess"
Have you compared this solution with tools like Preprocess, Reducto, etc.. ? I'm curious about the performance gain you can achieve with your approach
Re:Chunkr – Vision model based PDF chunking on Thursday October 17, 2024 @01:05PM (#41871470)
It seems it tries to always extract tables even if the content is just text. Is not working and at a similar price you can get high performing solutions like preprocess.co and similars.
Re:Raglabs.co: Your Company's Own ChatGPT on Wednesday October 09, 2024 @09:22AM (#41787711)
I'm curious to know how you handle the chunking of complex documents
Re:Ask HN: What is the best way to chunk documents for RAG? on Wednesday October 09, 2024 @09:06AM (#41787537)
If for "documents" you mean PDF, Word, Powerpoints, Excel you should try preprocess.co

If that’s not what you meant, can you please clarify?

Do you use naive chunking? Have you tried something else?
By chance, have you tried preprocess.co for text extraction + chucking?
Re:Evaluating Chunking Strategies for Retrieval on Thursday July 11, 2024 @10:48AM (#40937396)
I see a huge missing point here: real world files are PDF, Word, PowerPoint and Excel, not only plain text.
Re:RAG: The Shaky Foundation of AI on Thursday July 11, 2024 @10:41AM (#40937312)
There are more sophisticated chunking strategies, you will lose lots of context like that
Well-written article, missing key considerations:

- Titles matter, a lot: if you add the title of the section at the start of each chunk you will get 10x better embeddings and so more accurate results.

- The size doesn't matter: It depends on the combination of the layout and semantics of the content.

- Avoid garbage in / out: increased context windows don't mean you can put trash inside them. The more good you are at putting relevant information the more precise answers you get. Especially for enterprise-grade solutions, this is so important.

There are good emerging API solutions that implement semantic + layout-based chunking, which in my opinion is the best chunking strategy for PDF / Office files (the widest use case scenario for enterprises).

Re:An Evaluation of RAG Retrieval Chunking Methods on Monday May 06, 2024 @10:08AM (#40274878)
The real point that has been completely ignored is that data for real applications come from Office and PDF files, and making them plain text throws all the visual information.
Re:I made a convenient API service to chunk files for RAG on Monday March 18, 2024 @11:57AM (#39746232)
Sorry, but it is really strange how haphazard it is. Am I doing something wrong?

It's missing more or less all the titles The order of the text is casual The system chunks at random points in the text

https://mlops.community/wp-content/uploads/2023/07/survey-re...

check out this https://preprocess.co
The datasets are composed by Documents like PDFs and/or Office files?
That's a good point, and documents too needs different chunking techniques. You don't want to split a word file the same way you split an excel...
You are both right about chunking, and i think is one of the main challenges. About more intelligent chunking approaches, i think you have to give a try to to preprocess.co It's able to preprocess and chunk PDFs, Office Files, and HTML content. It follows the original document layout considering the content semantics so you get optimal chunks

Seeking Datasets for Evaluating File Chunking Strategies for RAG/LLM

Hi everyone,I’m delvingg into optimizing RAG for ingest pipelines involving textual documents such as PDFs, Office documents (Word, PowerPoint, etc.), HTML files, emails, and plain text. My aim is to benchmark file chunking strategies acros these formats to evaluate the impact on the accuracy of the RAG process itself. For this, I need a dataset that includes:- Textual Documents: A diverse set...

( Read More... | 3 comments | on HN )
doesn't the basic chunking you are using for splitting documents have any impact on results?
It's an interesting topic i'm working on at the moment. Given the ones you shared, I figured out additional challenges. Especially for PDF and Office documents, it's really important to consider the original layout. You shouldn't split the text on a fixed word count based on the maximum length admitted by your embedding model. At preprocess.co we split documents considering sections, paragraphs, tables, images, lists, slides, and content semantics. The goal of a chunking method should be to generate text that increases the performance of a RAG not only to make it suitable for any text and file.

Does someone have ProductHunt Invite?

Hi, I'm Nicolò Magnanini the CEO of Pigro. I'm trying to enter with my startup in ProductHunt and i hope to receive an invite. My email is [email protected] is Pigro? Pigro is a starup that works in the AI area. We develop general purpose and topic focused bots. The core of Pigro is a big data technology developed by us. Our algorithms can group unstructured texts around topics. Our...

( Read More... | no comments | on HN )