AI & XML / RAG study series

This series by Manuel Montero Pineda (data2type’s managing director), called the RAG study series, comprises four successive investigations into ideal data processing for RAG systems (Retrieval-Augmented Generation). It aims to determine how data should be structured and managed optimally to ensure precise, consistent and efficient responses in RAG systems.

First study: structured vs. unstructured data

The results of the first study, titled "Structured vs. unstructured data for RAG training: a comparison", demonstrate the importance of data structuring for training a Retrieval-Augmented Generation (RAG) system. The superiority of structured data over unstructured formats such as PDF shows that data quality and structure significantly affect these systems’ performance. Notably, a specially adapted Markdown format offering optimal structure delivered the best results. This highlights the need to prepare data specifically for RAG systems to maximize their effectiveness. The study thus provides a clear basis for further investigations and emphasizes how crucial data preparation is to these systems’ success.

>> Part 1 of the RAG study series: "Structured vs. unstructured data for RAG training: a comparison"

Second study: optimal preparation of structured data

A follow-up study titled "Structured data and intelligent chunking strategies for RAG systems" examines how structured data should ideally be prepared for optimal processing by different RAG systems. It aims to identify formats enabling the greatest precision and consistency in responses.

This includes adapting token counts to the LLM (Large Language Model) used or structuring data for better citation. Some formats allow returning entire document sections rather than individual passages. Others are optimized for scholarly texts with footnotes, bibliographic references or semantic structure.

Particularly important are Embeddings – the final processing stage, where metadata also play a central role. Skillful use of metadata during embedding can substantially improve search and response quality. The study explores how to combine metadata and embeddings optimally to obtain the most precise, relevant results from a RAG system.

>> Part 2 of the RAG study series: "Structured data and intelligent chunking strategies for RAG systems"

Third study: converting unstructured data

The third study in the series, titled "Automated chunks and XML: from PDF to a flexible RAG system", examines how the Octopus platform can generate a structured, chunk-neutral and future-proof data foundation from any source format, such as PDF, DOCX or EPUB. While conventional approaches often involve information loss or inconsistent structure, Octopus can convert any PDF to XML. Octopus also stands out for its ability to transform many common formats, including Word, Excel, HTML or presentation formats, into structured XML. This conversion enables standardized, semantically enriched data representations for further applications such as cross-media publishing, integration in data management systems or AI-assisted processes such as RAG. 

The aim is an end-to-end workflow that automatically extracts semantically structured content from layout-oriented documents, stores it in a neutral intermediate format and flexibly generates chunks on demand, adapted to different models, media or application scenarios.

>> Part 3 of the RAG study series: "Automated chunks and XML: from PDF to a flexible RAG system"

Fourth study: optimal data storage

The fourth and final study in the series is titled "Content Delivery Services (CDS) and RAG" and examines optimal data storage for RAG systems.

Optimal data package structure is central to RAG systems for efficient discovery and use. Standards such as iiRDS (Intelligent Information Request and Delivery Standard) and approaches from the Semantic Web and RDF (Resource Description Framework) are used. The aim is to develop mechanisms for effective management and retrieval of structured data.

The fourth part also addresses implementing a Content Delivery Services (CDS), acting as an intelligent intermediary between structured formats in the RAG pipeline (e.g. ChunkML, RDF) and downstream components such as LLMs, embedding systems or chatbots.

A CDS gives RAG systems access to a central, standardized data source that is continually updated. This significantly improves scalability, consistency and maintenance and enables efficient management of large data volumes, a crucial factor for publishers and companies running many RAG models in parallel.

The study will examine how such a CDS can be implemented technically, integrated into existing XML hub systems and used productively in scenarios such as specialist portals, publishing systems or multi-agent environments.

>> Coming soon…

   

back to top