Predli Studio: Enterprise RAG
Document search that answers questions from PDFs, decks and spreadsheets, citing the page and section. Parsing each file type on its own terms mattered more than the choice of model.
+40%
The problem
The platform needed to answer questions across strategy decks, technical reports, financial spreadsheets, and legal contracts. A question such as "What was our Q2 margin in the Nordic region?" called for a figure and a source citation; a list of 50 PDFs still left the reader to find the answer.
A 200-page PDF manual, a 10-slide PowerPoint, and a spreadsheet with pivot tables organize information differently. Uniform chunking lost the section, slide, and table context needed to answer accurately.
Approach
I built a RAG platform with a separate extraction and chunking pipeline for each document type.
Scroll sideways to see the full diagram. Use the arrow keys when focused.
PDFs go through layout analysis to detect headers, paragraphs, tables, and figures. Long documents get table-of-contents mapping — the system identifies the document structure and uses it to create hierarchical chunks that preserve context. A chunk from "Section 3.2: Nordic Revenue" carries that structural metadata, so the retrieval step knows where in the document the information lives.
PowerPoint files are processed slide by slide, with speaker notes and slide titles preserved as metadata. Spreadsheets get special treatment — each sheet is analyzed for structure (is it a data table? a pivot table? a chart data source?), and numerical data is extracted with column headers intact so the LLM can reason about it.
On top of this, the system supports persona customization. A finance user asking about revenue gets responses formatted with numbers and comparisons. A legal user asking about contract terms gets responses that cite specific clauses. The persona layer adjusts both retrieval weights and response formatting.
Results
We measured relevance on a fixed set of questions, with reviewers grading each answer. Against the previous system, which used uniform chunking across all document types, the file-type-aware approach scored 40% higher. The biggest gains came from two changes: preserving table structure in spreadsheets (so the LLM could actually read financial data instead of getting garbled text) and using TOC-based chunking for long PDFs (so chunks carried their section context).
User adoption increased significantly once responses started including page numbers and section references. Being able to verify an answer against the source document was critical for trust.
Reflection
In this system, switching from a generic recursive text splitter to file-type-aware chunking improved answer quality more than upgrading the underlying LLM. Preserving the source structure made the retrieved context more useful to the model.
The persona system was initially overengineered. The first version tried to maintain detailed user profiles. The shipped version uses role-based presets (finance, legal, technical, executive) that adjust a few retrieval and formatting parameters.