Industrial RAG: how to measure answer quality
Evaluate answers from engineering manuals with source relevance, device context and appropriate abstention.
Splitting a manual into arbitrary-length pieces makes the right answer get searched in the wrong context. Preserve headings, tables and revision information.
Manuals consist of headings, subheadings, tables and warning boxes. Splitting at a fixed character count cuts a table in the middle or separates a warning from its step. Split on heading boundaries and attach to each chunk the heading path it belongs to.
Fault-code tables carry meaning row by row. Storing a row without its header row is misleading. Attach the column headers to each table row or keep the table whole within a chunk boundary. For very large tables, form row groups and repeat the header in each.
Attach product family, model, document revision, language and page to every chunk. These fields are needed both for filtering at search time and for citing sources in the answer. A similar fault code from a different product family cannot be reliably separated without metadata.
Compare chunk size and overlap not by intuition but with a fixed question set: measure at each setting how often the expected document appears in the top five results. This approach is a suggested engineering method; the best setting depends on the document structure and question type.
Compare chunk size and overlap with a fixed question set rather than intuition. At each setting, measure how often the expected document appears in the top five results. The best setting depends on the document structure and question type, so this is a suggested engineering method.
Attach product family, model, document revision, language and page to every chunk. These fields are needed for filtering at search time and for citing sources in the answer. Without metadata, a similar fault code from a different product family cannot be reliably separated.
Pilot steps in this guide are proposed engineering workflows. Examples do not constitute measured field performance.