Skip to Content
TechnologiesTechnologies
  • Article
  • Open Access

20 October 2026

31 Pages

Source Page Evaluation of Local RAG Retrieval for Engineering Safety: Implications for Mechanical and Civil Engineering

,
,
and
1
Mechanical Engineering Department, Faculty of Engineering, The British University in Egypt, El Sherouk City 11837, Cairo, Egypt
2
Construction Engineering and Management Programme, Civil Engineering Department, Faculty of Engineering, The British University in Egypt, El Sherouk City 11837, Cairo, Egypt
*
Authors to whom correspondence should be addressed.
This article belongs to the Special Issue AI for Smart Engineering Systems

Abstract

Industrial safety question answering requires access to the exact source material that supports an answer, not merely a related document. This study evaluates the retrieval stage of a local retrieval-augmented generation (RAG) system at the source page level. Eighteen documents on lockout/tagout, machine guarding, and personal protective equipment were prepared in raw, cleaned, and metadata-enriched forms. Best Matching 25 (BM25), latent semantic analysis (LSA), and reciprocal rank fusion (RRF) hybrid retrieval were tested on 54 questions: 36 answerable, 12 safety-related but unsupported, and 6 outside the covered topics. Raw BM25 achieved the highest mean reciprocal rank (0.492) and Hit@5 (0.722), cleaned BM25 achieved the highest Hit@3 (0.556) and answerability AUROC (0.765), and metadata-enriched BM25 achieved the highest Hit@10 (0.833). For raw text, the retrieval method affected reciprocal rank (Friedman χ2 = 7.13, p = 0.028). Hybrid retrieval exceeded LSA after Holm correction (p = 0.011), whereas BM25 and hybrid retrieval did not differ (p = 0.302). Text preparation had no overall effect within BM25 (p = 0.220). The results show that document-level evaluation can overstate access to exact evidence. The study provides a repeatable procedure for source tracking, page-level relevance labeling, separate retrieval and generation evaluation, and refusal analysis. These design principles are also relevant to construction safety knowledge systems that combine regulations, accident reports, project data, and BIM-linked information. Because the relevance set is a model-assisted silver standard, the findings remain exploratory rather than expert-certified absolute retrieval accuracy. A controlled same-run extension with all MiniLM L6 v2 and BM25 + MiniLM RRF is reported separately; its observed fusion gains did not reach statistical significance on the 36 answerable questions. The work is intended to support safety engineers, researchers, and developers designing evidence-grounded industrial and construction safety information systems.

1. Introduction

Industrial safety engineers routinely consult regulations, guidance documents, procedures, training material, incident narratives, and lessons learned. The practical value of a large language model (LLM) assistant in this setting depends not only on fluent generation but also on whether the system retrieves the precise and authoritative evidence required for a safety judgment. Unsupported or weakly grounded responses are especially problematic where an apparently minor omission can change the meaning of an energy control, guarding, or personal protective equipment (PPE) requirement.
Retrieval-augmented generation (RAG) combines a large language model with an external collection of source material, so answers can be based on retrieved passages rather than only on information stored in the model [1]. Best Matching 25 (BM25) is a word-based search method and remains a strong baseline for technical document collections that use precise terminology [2]. Embedding-based semantic search methods represent questions and passages in a shared mathematical space so that they can match similar meanings even when the wording differs [3,4]. Hybrid systems combine exact word- and meaning-based search, often through reciprocal rank fusion [5]. However, combining methods does not guarantee better results: a weak semantic ranking can reduce the value of a strong BM25 ranking by adding less useful pages.
These evidence retrieval challenges are also important in civil and construction engineering. Construction safety information is distributed across regulations; accident reports; project records; safety management systems; and, increasingly, BIM- and knowledge graph-based platforms. Recent reviews identify falls, material handling, heavy machinery, temporary support systems, PPE, training, supervision, and site conditions as recurring concerns, while digital construction research highlights the difficulty of integrating heterogeneous safety knowledge into decisions [6,7,8,9]. A retrieval system that returns only a related document rather than the exact supporting page can therefore mislead a site engineer, safety manager, or project manager, even when the generated answer sounds plausible.
Despite growing use of RAG- and LLM-based systems in engineering, the reviewed literature leaves an important evaluation gap. Existing safety studies commonly assess classification accuracy, generated recommendations, or end-to-end system outputs, while regulatory search studies often evaluate retrieval under different document structures and relevance units. As a result, it remains unclear how much reported document-level success translates into access to the exact source page needed to support a safety answer and whether the text preparation or retrieval method changes that page-level evidence access under controlled conditions. To address this gap without confounding retrieval with answer generation, the present study was designed as a controlled source page retrieval experiment. The document collection, text segmentation settings, question set, and relevance labels were fixed across methods. Retrieval quality, whether the documents support an answer, and answer generation were treated as separate stages, and the current paper evaluates only the retrieval and answer-support stages. This design enables direct comparison of word-based, semantic, and hybrid retrieval while preventing differences in generated wording from obscuring evidence of access failures.
The answer generation model is intentionally excluded so that differences in generated wording do not hide retrieval effects.
The study makes four contributions. First, it implements a repeatable retrieval pipeline with stable document identifiers, source details, checksums, and versioned text files. Second, it replaces broad document relevance with labels for the exact source pages that support an answer. Third, it separates retrieval, assessment of whether the documents support an answer, and answer generation into distinct stages while evaluating only the first two stages in the present experiment; this prevents a correct refusal from being counted as answer quality and prevents fluent generation from hiding missing evidence. Fourth, it provides paired statistical comparisons, analysis by safety topic and question type, and a transparent source-evidence labeling structure that supports future external adjudication without changing the archived retrieval results.
The scope is deliberately limited. The paper does not propose a new language model, claim deployment readiness, or evaluate answer generation. Its engineering contribution is the controlled evaluation of the evidence access layer that must operate before a local RAG assistant can produce a defensible safety response.
  • The study addresses the following four research questions:
  • RQ1. How do BM25, latent semantic analysis (LSA)-based semantic search, and hybrid retrieval differ in retrieving exact industrial safety evidence?
  • RQ2. Do raw, cleaned, or metadata-enriched text versions improve retrieval?
  • RQ3. Which safety domains and question types are most difficult?
  • RQ4. Can retrieval scores distinguish questions that the documents can answer from unsupported and out-of-domain questions?
The remainder of the paper is organized as follows. Section 2 reviews related work in safety text mining, RAG evaluation, regulatory information retrieval, human oversight, and construction safety knowledge systems. Section 3 describes the document collection, text extraction, indexing, retrieval methods, evaluation questions, and statistical analysis. Section 4 reports the retrieval, answer support, domain level, and failure analysis results. Section 5 discusses the implications for industrial and construction safety, Section 6 summarizes limitations and future work, and Section 7 concludes the study. The appendices provide the source document inventory (Appendix A Table A1), the complete evaluation question set, review fields, and a reproducibility checklist.

3. Materials and Methods

3.1. Source Documents and Document Management

The study uses 18 English-language PDF documents: six on lockout/tagout (LOTO), four on machine guarding, and eight on PPE. Sources include the Occupational Safety and Health Administration (OSHA), the UK Health and Safety Executive (HSE), and training or consultation material linked to recognized authorities. Each file was assigned a stable document identifier, source URL, safety topic, issuing authority, jurisdiction, and SHA 256 checksum. Because the documents come from different jurisdictions and years, these fields were retained with each page instead of treating all statements as interchangeable requirements. The collection includes OSHA LOTO and safeguarding guidance [38,39], HSE PPE guidance [37], and OSHA PPE guidance [40]. The unified ranking used in this experiment is a controlled retrieval condition for comparing methods; it is not proposed as an operational rule for combining regulatory requirements across jurisdictions. In deployment, the applicable jurisdiction should normally be established before retrieval and used as a metadata filter or routing constraint. If jurisdiction is unknown or if retrieved US and UK sources conflict in terminology, required procedure, or legal status, the system should display the authority and jurisdiction explicitly and refer the case for professional review rather than synthesize the requirements as though they were equivalent. Table 2 lists the document groups used in the experiment.
Table 2. Safety documents used in the retrieval experiments.
Documents were included when they contained substantial information about one of the three target safety topics and were available as stable, readable PDF files. Promotional material, duplicate copies, files with no usable text, and documents limited to unrelated safety topics were excluded. The final document collection contains 417 pages: 120 LOTO pages, 68 machine guarding pages, and 229 PPE pages.
A separate document review record was maintained outside the text used for retrieval. For each document, the record identifies the issuing body, publication or revision year where available, intended role in the experiment, and any concern about jurisdiction or whether the material is current. Regulations and guidance issued by recognized authorities were treated as the main evidence sources. Grant-funded training material and consultation manuals were kept as supporting material but were not described as binding requirements. This distinction matters because a search result can be topically relevant while still coming from a source with less authority or from a different jurisdiction. Figure 1 summarizes the controlled source page retrieval workflow used in the study.
Figure 1. Controlled source page retrieval workflow.

3.2. Text Extraction and Text Versions

Text was extracted separately from each PDF page. The retained corpus contained 18 PDFs and 417 source pages with usable machine-readable text; the retrieval pipeline did not apply image OCR as a preprocessing step. The source set nevertheless remained heterogeneous. It included guidance booklets, regulatory guidance, fact sheets, training manuals and handouts, a sample written program, an assessment guide, a quick card, and a slide deck export. Archived representation statistics recorded 723,217 raw extracted characters, with large differences in page text density across sources. A later independent PDF layout re-extraction produced 726,618 characters in the current software environment; that auxiliary count is used only for layout and runtime diagnostics and does not replace the archived text segment inventory. Three experimental text versions were generated from the same evidence: raw extraction, cleaned text, and metadata-enriched text. The raw version preserved extraction noise; the cleaned version normalized spacing, broken lines, and repeated formatting artifacts; and the metadata-enriched version prepended short document, topic, source, and page fields. The third condition was intentionally included to test whether source metadata helps or interferes with retrieval; it was not imposed on the raw or cleaned conditions.

Extraction and Normalization Quality Controls

Extraction was reviewed at the page level rather than only as a whole document stream. The processing pipeline retained page identifiers, normalized repeated whitespace, repaired line-break hyphenation when a word was clearly split across lines, and removed recurrent headers or footers only when they did not carry evidential meaning. A separate automated layout audit of all 417 retained PDF pages identified 198 pages containing at least one embedded image object, 27 pages with fewer than 100 extracted characters, and 79 pages with fewer than 300 extracted characters. A conservative text fragment heuristic flagged 72 pages as having potential multi-column or side-by-side reading-order risk; these flags are automated risk indicators rather than manually adjudicated layout labels. The corpus audit also identified the 59-page PPE slide deck export (PPE 06) as a low text source requiring inspection and identified spacing artifacts in PPE 07. Raw extracted text density ranged from approximately 192 characters per page in PPE 06 to approximately 4371 characters per page in PPE 08. These differences are reported as corpus properties because they can influence extraction quality, candidate exposure, and retrieval behavior.
The experiment evaluates textual evidence retrieval rather than multimodal document understanding. Tables were retained only as extracted linearized text, and no layout parser was used to reconstruct graphical structure, multi-column reading order, diagrams, or image-only table content. The 54 evaluation questions were designed around textual procedural, definitional, comparative, and scenario evidence; none intentionally required interpretation of information available only in a chart, diagram, or image. Consequently, the reported results should not be generalized to visually dependent technical document questions. No summarization, paraphrasing, or language model rewriting was applied to the indexed source passages. Table 3 summarizes the three text versions.
Table 3. Text versions used in the experiment.

3.3. Text Segmentation and Indexing

All text versions were divided into segments of 1000 characters with an overlap of 200 characters. Segment boundaries were placed at sentence or word breaks where possible. Keeping the segmentation settings fixed allows differences in text preparation and search method to be compared fairly. The 1000-character size and 200-character overlap were fixed before evaluation as a practical balance between preserving procedural context and limiting unrelated material within each segment; they were not tuned on the reported test results.
The fixed files contained 1065 raw text segments, 1025 cleaned text segments, and 1065 metadata-enriched text segments. The small reduction after cleaning reflects removal of repeated formatting and consolidation of broken lines. Each segment kept the document ID and page number so that overlapping results from the same page could be combined before evaluation. Collapsing overlapping segment hits to unique source pages prevents the same page from occupying several evaluation ranks, but it does not completely remove the greater candidate exposure of longer or denser documents. The 1000/200 setting is therefore treated as a controlled baseline rather than as a universally optimal segmentation rule.

3.4. Retrieval Methods

A word-based sparse search method using BM25 was implemented with k1 = 1.5 and b = 0.75. BM25 gives greater weight to exact and near-exact term matches using how often a term appears, how rare it is across the documents, and document length normalization [2].
BM 25 ( q , d ) = Σ t ∈ q   IDF t   ·   f ( t , d ) ( k 1 + 1 ) / [ f ( t , d ) + k 1 ( 1 − b + b d avgdl ) ]
where f(t,d) is the frequency of query term t in text segment d, |d| is the segment length, and avgdl is the mean segment length.
Here, IDF(t) is the inverse document frequency of term t, k1 controls term frequency saturation, and b controls document length normalization.
For the latent semantic analysis (LSA) baseline, term frequency–inverse document frequency unigrams and bigrams were projected to 256 dimensions using truncated singular value decomposition, and cosine similarity was used for ranking. LSA is used here as a corpus-derived statistical latent semantic baseline rather than as a proxy for modern neural dense retrieval. Because the decomposition is learned directly from this relatively small 417-page experimental corpus, the latent dimensions can reflect collection-specific term co-occurrence, sparsity, and extraction noise rather than semantic relationships that generalize beyond the corpus. Its purpose is therefore to provide a transparent and reproducible non neural comparison and to exercise the semantic search and fusion pipeline. It is not all MiniLM L6 v2 and is not presented as a modern sentence transformer result. Embedding-based methods such as dense passage retrieval and Sentence BERT provide the basis for the modern neural semantic search extension reported in Section 4.7 [3,4].
X   ≈   U k Σ k V k T , k = 256
zd = xd Vk, zq = xq Vk
Here, X is the TF IDF matrix, U k   Σ k   V k T is its rank-k truncated singular value decomposition, and xd and xq are document segment and query vectors projected through Vk.
The LSA model was fitted separately to each text version. Questions and text segments were projected into the same 256-dimensional space and normalized before cosine ranking. The fitted representation is therefore transductive to the fixed experimental corpus: it summarizes statistical co-occurrence within that corpus and is not claimed to provide a transferable semantic encoder. This method remains useful as a transparent non neural baseline, but it is not treated as a substitute for modern sentence embeddings; the separate all MiniLM L6 v2 comparison is reported in Section 4.7.
cos ( q , d ) = q   ·   d q 2 d 2  
For hybrid search, BM25 and LSA rankings were combined using reciprocal rank fusion with a constant of k = 60 [5]. The method combines ranking positions rather than raw scores, avoiding an invalid direct comparison between word-based and semantic score scales.
RRF ( d ) = Σ r ∈ BM 25 ,   LSA   1 k + ran k r d , k = 60
The number of retrieved candidates and the fusion constant were fixed before evaluation. Let Cp denote the set of indexed text segments originating from source page p, and let sm(c,q) be the segment-level score assigned by retrieval method m to segment c for query q. Segment hits were collapsed to a page-level score using the maximum segment score ( S m p , q   =   ma x c ∈ C p   s m c , q ). Pages were then ordered independently within each retrieval method to obtain the ordinal page rank (rankm(p,q)). RRF was applied only to these page-level ordinal ranks: RRF ( p , q )   =   Σ m ∈ BM 25 , LSA 1 60   +   ran k m p , q . Thus, BM25 scores and cosine similarities were never added, averaged, or otherwise compared on their absolute scales. The maximum score aggregation only determines the within-method ordering of unique pages before fusion; RRF itself remains an ordinal rank fusion operation. Collapsing segments before fusion also prevents the same source page from appearing several times simply because overlapping text segments were retrieved.

3.5. Evaluation Question Set and Silver Standard Page Labels

The evaluation set contains 54 questions: 36 questions that can be answered from the documents, 12 safety-related questions whose requested information is not present in the document collection, and 6 questions outside the covered safety topics. The benchmark was constructed before the final source page comparison, then frozen so that retrieval methods would be evaluated on the same questions. Candidate questions were selected to cover direct lookup, multi-step procedural interpretation, scenario reasoning, comparison, near-domain refusal, and out-of-domain refusal. Answerable questions were tied to mandatory answer elements and candidate supporting pages; unsupported questions deliberately used plausible safety vocabulary while requesting information absent from the corpus. Because the primary benchmark had already been used for method comparison, we did not add new primary questions after observing retrieval failures, which would introduce post hoc test set adaptation. Additional broad and multi-step questions are therefore treated as a prospective extension rather than silently changing the reported benchmark. The construction engineering implications are discussed separately; no construction-specific question is included in the present experiment.
The 36 answerable questions were balanced across the three safety topics. They comprised 18 direct questions, 11 procedural questions, 5 scenario questions, and 2 comparison questions. The procedural group includes multi-step energy control, maintenance, group lockout, PPE assessment, retraining, and guarding questions rather than only single-fact lookups. The unsupported set contained four safety-related questions per topic, while the six questions outside the covered topics tested clear rejection. The safety-related unsupported cases are particularly important because they contain plausible safety terminology and therefore challenge score-based refusal more strongly than unrelated questions. Appendix B, Table A2 summarizes the composition of the evaluation set, while the complete list of 54 questions is provided in Appendix B, Table A3.
For answerable questions, the relevant item is a unique source page identified by document ID and page number. Retrieved text segments were combined into unique source pages before scoring. Each question includes a draft reference answer, the minimum points that the answer should cover, supporting page identifiers, supporting text segment identifiers, and a short evidence excerpt.
Candidate pages were collected from the highest ranked results of the rebuilt retrieval pipeline and checked against the extracted source text. A page was marked relevant when it contained evidence for at least one required part of the answer. A relevant page therefore provides supporting evidence but may not be sufficient by itself for the complete answer. Several pages were retained when the full answer was spread across the documents. The review record stores the question, whether the documents can answer it, the draft reference answer, required answer points, relevant document IDs, relevant page IDs, supporting text segment IDs, and an evidence excerpt.
The present benchmark uses a model-assisted silver standard for source evidence relevance rather than an independently expert-adjudicated safety ground truth. This distinction reflects the task being evaluated: the applicable safety requirements are taken from the fixed source corpus, and the annotation task asks whether a specified source page directly supports predefined mandatory answer elements, not whether an annotator would formulate the safety requirement independently from professional experience. A page is treated as supporting when its text directly supports at least one mandatory answer element; pages that provide useful context but incomplete support are distinguished conceptually from pages sufficient for the claimed element, and multi-page answers are represented by mapping required elements to the corresponding source pages. The question record retains the draft reference answer, required answer points, source page identifiers, supporting segments, and evidence excerpts so that each judgment is traceable and reproducible. Independent dual review adjudication by qualified safety reviewers would provide an additional external validation layer, particularly for ambiguous, scenario-based, multi-page, or jurisdiction-sensitive cases. Accordingly, the current labels are reported transparently as a silver standard and are used for controlled comparative retrieval evaluation; they are not presented as expert-certified safety ground truth. This distinction limits claims about absolute accuracy and deployment validation without invalidating the paired within-benchmark comparison because every retrieval condition is evaluated against the same frozen questions, evidence units, and relevance decisions.

3.6. Retrieval Measures and Whether the Documents Support an Answer

Retrieval performance was measured using Hit@1, Hit@3, Hit@5, Hit@10, Recall@k, mean reciprocal rank (MRR), and normalized discounted cumulative gain at rank 10 (nDCG@10). Hit@k shows whether at least one labeled supporting source page appears within the first k unique pages, Recall@k measures the proportion of all labeled supporting pages retrieved, and MRR rewards early retrieval of the first supporting page. nDCG@10 was calculated with binary gains, assigning a gain of 1 to a page labeled as supporting the reference answer and 0 otherwise; binary gain is therefore the special two-level case of the general graded relevance formulation. This does not imply that partial and fully sufficient evidence are equivalent in practice, and graded independently adjudicated labels would provide a stronger external validation construct. The ability to distinguish answerable from unsupported questions was evaluated using AUROC based on the top retrieval score. Answer generation was not evaluated because the retrieval method and supporting pages should be selected and reviewed before complete answers are scored.
Hit@k answers the practical question of whether at least one supporting page appears early enough to be shown to a user or an answer generation model. Recall@k is stricter when several pages jointly support an answer. MRR emphasizes the first relevant page, while nDCG reflects the order of all labeled pages. Because some questions require several evidence pages, no single measure is sufficient on its own.
MRR = 1 N Σ i = 1 N 1 r i
Hit @ k = 1 N Σ i = 1 N I R i ∩   P i , k   ≠   ∅
Recall @ k = 1 N Σ i = 1 N R i ∩   P i , k R i
DCG @ k = Σ j = 1 k g j log 2 j + 1 , nDCG @ k = DCG @ k IDCG k , g j   ∈   0 , 1
Here, N is the number of evaluated questions, ri is the rank of the first supporting page for question i, Ri is the set of labeled supporting pages for question i, Pi, k is the set of the top k retrieved pages, and gj is the binary gain assigned to rank j.
The AUROC for distinguishing answerable and unsupported questions was calculated from each method’s top retrieval score. These scores are method-specific: BM25 values, cosine similarities, and RRF scores are not interchangeable probabilities. The AUROC analysis therefore measures how well each score ranks answerable questions above unsupported questions; it does not define one universal threshold for operational use.

3.7. Statistical Analysis

The same 36 answerable questions formed paired observations across all tested settings. Confidence intervals and paired differences were estimated with 20,000 question-level bootstrap resamples. Friedman tests assessed overall differences among the three search methods within each text version and among the three text versions within BM25. Planned pairwise comparisons used Wilcoxon signed rank tests on reciprocal rank with Holm correction within each comparison family. Exact McNemar tests assessed paired Hit@3 outcomes. The statistical analysis is exploratory because the relevance decisions form a model-assisted silver standard rather than an independently expert-adjudicated gold standard.

3.8. Reproducibility and Implementation

The experiments were implemented as repeatable Python scripts with a random seed of 42. The reproducibility package contains the source document list and SHA 256 checksums, raw/cleaned/metadata-enriched text segment files, evaluation questions, ranked results, detailed relevance scores, settings files, and statistical analysis outputs; Appendix C provides the corresponding reproducibility checklist. Core dependencies were NumPy, SciPy, scikit learn, pypdf, and PyYAML. The original archived experiment did not preserve a complete hardware manifest, so historical CPU, GPU, RAM, and operating system specifications cannot be reconstructed reliably and are not assigned retrospectively. This remains a reproducibility limitation of the original run.
To characterize computational scale without inventing historical hardware, a separate reference benchmark was performed on the same 18-PDF, 417-page corpus using a Linux x86 64 virtual machine with five allocated vCPUs on an AMD EPYC 9V74 host and 5.8 GB RAM; no GPU was used. The reference environment used Python 3.13.5, pypdf 5.9.0, NumPy 2.3.5, SciPy 1.17.0, scikit learn 1.8.0, and PyYAML 6.0.3. In this independently reconstructed BM25 benchmark, extraction of the 417 PDF pages required 9.70 s, chunk preparation required 0.023 s, and BM25 index construction required 0.074 s. Across the 54 evaluation questions after warmup, mean retrieval time was 0.735 ms per query (median if 0.671 ms; 95th percentile of 1.250 ms; maximum of 2.865 ms), and peak process memory was approximately 334 MB. The reconstruction produced 1052 raw chunks rather than the 1065 archived raw segments, so these timing results characterize computational requirements only and do not replace the primary effectiveness results. They exclude LLM answer generation and therefore should not be interpreted as end-to-end response time or as evidence of deployment readiness.
Every result row can be traced to an evaluation question, text version, search method, ranked page ID, score, supporting text segment ID, and relevance decision. The run logs record all settings and input file checksums. This structure allows future sensitivity analyses to substitute independently adjudicated labels without changing the underlying retrieval results. The same evaluation questions and page-level scoring principle were subsequently reused for the controlled MiniLM extension in Section 4.7.

4. Results

4.1. Overall Evidence-Level Retrieval

Overall performance is summarized in Table 4. BM25 produced the strongest pilot results among the tested methods tested. Raw BM25 achieved the highest MRR (0.492, 95% bootstrap CI of 0.368–0.619) and the highest Hit@5 (0.722). Cleaned BM25 achieved the highest Hit@3 (0.556, 95% bootstrap CI of 0.389–0.722) and the highest AUROC for distinguishing answerable questions (0.765). Metadata-enriched BM25 achieved the highest Hit@10 (0.833). These values are based on the model-assisted silver-standard relevance set and should be interpreted as exploratory comparative estimates. Among the 36 answerable questions, nDCG@10 ranged from 0.374 to 0.500 across configurations, with raw BM25 highest at 0.500; Recall@10 ranged from 0.579 to 0.713, with metadata enriched BM25 highest at 0.713.
Table 4. Source page retrieval performance under the silver-standard benchmark (Hit@k and MRR: 36 answerable questions; AUROC: all 54 questions).
At rank 1, all three BM25 text versions achieved a Hit@1 of 0.333. Differences appeared at deeper cutoffs: cleaned BM25 produced the best Hit@3, raw BM25 produced the best Hit@5, and metadata-enriched BM25 produced the best Hit@10. This pattern suggests that text cleaning and added source information changed where relevant pages appeared in the ranking rather than producing one consistently better version. The LSA baseline was weaker at early ranks, although it recovered some evidence by rank 10.
The gap between document-level and source page performance was substantial. In the earlier development evaluation, most tested methods retrieved a labeled document within the top three results. Under source page scoring, the best Hit@3 was 0.556. Thus, a retrieval method may reach the correct publication while still missing the exact section that supports the answer.

4.2. Paired Statistical Comparisons

Table 5 summarizes the selected paired comparisons. Within the raw text version, reciprocal rank differed among methods (Friedman χ2 = 7.13, p = 0.028). Hybrid search outperformed the LSA baseline after Holm correction (adjusted p = 0.011), whereas the BM25–LSA comparison did not reach significance after Holm correction (adjusted p = 0.058). BM25 and hybrid search did not differ (adjusted p = 0.302). The comparison of text versions within BM25 was not significant (Friedman χ2 = 3.03, p = 0.220). No paired Hit@3 comparison was significant under exact McNemar tests.
Table 5. Selected paired reciprocal rank comparisons.
The bootstrap confidence intervals show substantial question-level uncertainty, which is expected with 36 paired answerable items. The statistical findings should therefore be read together with effect sizes and error cases rather than as a simple winner–loser ranking. The strongest corrected comparison was hybrid RRF versus LSA for raw text; this indicates that adding the sparse ranking improved the weak semantic baseline, not that hybrid retrieval surpassed BM25.

4.3. Domain-Level Performance

As shown in Figure 2, raw BM25 performance varied by domain: LOTO (Hit@3 = 0.500, MRR = 0.459), machine guarding (Hit@3 = 0.250, MRR = 0.280), and PPE (Hit@3 = 0.833, MRR = 0.736). Machine guarding was the weakest domain, while PPE was strongest. Possible explanations include overlapping machine-guarding sources, variation in terminology, broad question wording, and stricter page-level labels. The difference also indicates that an overall retrieval average can conceal domain-specific failure modes.
Figure 2. Hit@3 by industrial safety topic and retrieval method for the raw text version.

4.4. Whether the Documents Support an Answer and When the System Should Refuse

The highest archived AUROC for distinguishing answerable from the combined unsupported set was 0.765 for cleaned BM25. This value compares 36 answerable questions with all 18 unsupported questions, including six clearly out-of-domain cases, and should therefore be interpreted as broad answer support discrimination rather than as a realistic estimate of near-domain refusal performance. The operationally more demanding comparison is the 36 answerable questions against only the 12 safety-related unsupported questions because these cases share terminology with the corpus. To quantify this issue without inventing a value from aggregate results, we independently reconstructed the raw text BM25 pipeline from the 18 retained PDFs and frozen 54-question benchmark. The reconstruction reproduced the archived broad raw BM25 discrimination closely (AUROC = 0.756 versus 0.758 in the archived experiment) and yielded AUROC = 0.669 when the negative class was restricted to the 12 safety-related unsupported questions; discrimination against the six clearly out-of-domain questions was substantially higher (AUROC = 0.931). These reconstructed values are reported as an auxiliary robustness analysis rather than substituted for the archived cleaned BM25 result because the historical cleaned text preprocessing cannot be reproduced bit for bit from the aggregate archive. The decrease from broad to near-domain discrimination confirms that plausible safety questions lacking corpus support are materially harder to reject than unrelated questions. Neither the archived 0.765 value nor the reconstructed 0.669 near-domain value is evidence of deployment-ready refusal reliability. This separation remains insufficient for an automatic refusal decision in a safety-critical system. RRF scores represent combined rank positions rather than calibrated probabilities and should not use the same thresholds as cosine similarity or BM25 scores. The diagnostic workflow records both the top retrieval score and the margin between the first and second ranked unique pages for each method because the same numerical threshold is not meaningful across BM25, cosine similarity, and RRF. In an auxiliary silver-standard diagnostic, top-score AUROC exceeded score-margin AUROC for BM25 (0.759 vs. 0.670), LSA (0.736 vs. 0.583), and RRF (0.608 vs. 0.541), indicating that score margin alone is not a sufficient refusal signal. Method-specific thresholds should therefore be calibrated on development data and evaluated on held-out questions. We intentionally do not promote a deployment threshold from the present silver-standard benchmark. Any operational calibration should be re-evaluated on a larger externally validated benchmark and should extend the completed MiniLM analysis to additional modern dense retrievers and rerankers. A practical refusal mechanism should combine method-specific top scores; score margins; agreement between sparse and semantic retrieval; required evidence coverage; support from more than one passage; and, where justified, a separately validated answerability classifier.
Safety-related unsupported questions were the more realistic source of false acceptance because they used the same vocabulary as the source documents. A high exact word score can therefore show topical similarity without proving that the requested fact is actually present. In practice, the system should make a separate decision about whether the documents support an answer and should show the evidence pages, the top score margin, and agreement between methods to a reviewer instead of turning the top score directly into a yes/no decision. The present paper therefore treats refusal calibration as a method-specific validation problem rather than selecting a single global threshold after inspecting the full test set.

4.5. Error and Failure Analysis

Manual inspection of raw BM25 failures identified recurring patterns rather than random misses. Table 6 summarizes representative examples. The first relevant rank is based on the current silver-standard source page labels; “>20” means that no labeled page appeared in the evaluated top 20 results.
Table 6. Representative evidence retrieval failures for raw BM25.
The cases suggest three practical improvements. First, evaluation questions should preserve operational context and indicate when the evidence may span more than one safety topic. Second, retrieval evaluation should distinguish a partly relevant page from a page that is sufficient to support the full answer. Third, a second stage ranking method or a broader query step should be tested specifically on terminology differences and broad procedural questions rather than only on overall average scores.

4.6. Robustness and Diagnostic Checks

The PDF layout audit confirms that machine readable text does not imply uniformly simple document structure. Nearly half of the evaluated pages contained embedded image objects, low-text pages were concentrated in several training or slide-based sources, and the automated reading-order heuristic identified a substantial subset of pages with potential column or side-by-side layout risk. The primary experiment therefore remains a text retrieval study and does not claim complete recovery of visually encoded technical information.
As an auxiliary robustness check, BM25 retrieval was independently reconstructed on the raw extracted text and the same 36 answerable silver-standard questions using several segmentation settings: 500/100, 750/150, 1000/200, 1250/250, 1500/300, and 2000/400 characters/overlap, together with whole-page indexing. Across the chunked settings, Hit@3 ranged from 0.472 to 0.583, and MRR ranged from 0.490 to 0.525; whole-page indexing produced Hit@3 = 0.556, Hit@10 = 0.778, and MRR = 0.520. No single segmentation setting dominated every cutoff: for example, 750/150 achieved the highest MRR (0.525), whereas 500/100 achieved the highest Hit@10 (0.861). This confirms that segmentation affects ranking but does not support treating one fixed chunk size as universally optimal or fixed chunking as intrinsically invalid. Because this robustness run was independently reconstructed from the archived settings and produced 1052 chunks at 1000/200 rather than the 1065 archived raw segments, its absolute values are not substituted for the primary results in Table 4.
Additional diagnostic isolation was carried out on the independently reconstructed pipeline for individual whitespace normalization, line-break dehyphenation, repeated header/footer removal, individual metadata fields, whole-page versus two-page indexing, BM25 parameter settings, and LSA n gram/dimensionality settings. Across the preprocessing-only checks, Hit@3 ranged from 0.556 to 0.611 and MRR from 0.478 to 0.502; across the tested metadata field variants, Hit@3 ranged from 0.528 to 0.583 and MRR from 0.471 to 0.479. In the tested BM25 parameter grid, MRR ranged from 0.452 to 0.521, while the tested LSA configurations produced MRR values from 0.375 to 0.468. No individual preprocessing operation or metadata field uniformly dominated all retrieval cutoffs, and parameter changes altered ranking behavior, reinforcing the decision to treat the primary settings as controlled baselines rather than universal optima. Because these auxiliary reconstructions do not exactly reproduce the archived segment inventory, they are retained as diagnostic robustness analyses rather than replacements for the primary Table 4 experiment.
Exploratory raw BM25 stratification by question type on the reconstructed pipeline also showed heterogeneous difficulty. Hit@3/MRR were 0.611/0.498 for direct questions (n = 18), 0.545/0.525 for procedural questions (n = 11), 0.400/0.397 for scenario-based questions (n = 5), and 0.500/0.542 for comparative questions (n = 2). The comparative category is too small for stable inference, while the lower early rank performance of the scenario-based group is consistent with the failure analysis. These results support reporting question type alongside topic rather than relying only on an overall mean.

4.7. Modern Dense Retrieval Extension

To address the limitation of LSA as an interim semantic baseline, we conducted a controlled modern dense retrieval extension using sentence transformers/all MiniLM L6 v2. The 18 retained PDFs were re-extracted into 417 physical pages and segmented using the archived 1000-character window and 200-character overlap, producing 1066 reconstructed raw segments rather than the archived 1065. To avoid mixing non-equivalent runs, BM25 (k1 = 1.5, b = 0.75), MiniLM cosine retrieval, and BM25 + MiniLM reciprocal rank fusion (RRF, k = 60) were all evaluated on this same reconstruction, the frozen 54 question benchmark, and the same silver-standard source page labels. MiniLM embeddings were 384-dimensional, and segment scores were aggregated to pages by the maximum segment cosine similarity, matching the page-level aggregation principle used for the sparse comparator.
On the 36 answerable questions, reconstructed BM25 achieved a Hit@1/3/5/10 of 0.361/0.528/0.694/0.778, MRR of 0.495, and nDCG@10 of 0.487. MiniLM achieved 0.306/0.583/0.722/0.861, MRR of 0.490, and nDCG@10 of 0.505. BM25 + MiniLM RRF produced the highest observed Hit@3 (0.611), Hit@5 (0.806), Hit@10 (0.917), MRR (0.525), and nDCG@10 (0.567), while reconstructed BM25 retained the highest observed Hit@1 (0.361). The omnibus Friedman test on reciprocal rank did not reach the 0.05 significance level (χ2 = 5.065, p = 0.079). No pairwise Wilcoxon comparison was significant after Holm correction (BM25 vs. MiniLM p = 0.940; BM25 vs. RRF p = 0.631; MiniLM vs. RRF p = 0.373), and no exact McNemar comparison at Hit@1, Hit@3, Hit@5, or Hit@10 was significant. The fusion gains are therefore reported as descriptive rather than statistically established improvements.
For answer-support discrimination, the MiniLM top-page cosine score achieved an AUROC of 0.853 for the broad 36 versus 18 comparison and 0.780 when the negative class was restricted to the 12 safety-related near-domain unsupported questions, compared with 0.715 and 0.627, respectively, for reconstructed BM25. MiniLM achieved an AUROC of 1.000 against the six clearly out-of-domain questions; this value is interpreted cautiously because that subset is small and deliberately distinct from the covered safety topics. RRF top-score AUROCs were 0.768, 0.709, and 0.884 for the broad, near-domain, and out-of-domain comparisons, respectively; because RRF scores are rank-derived, these values are treated as diagnostic rather than calibrated refusal probabilities. All results in this extension retain the model-assisted silver labels. Independent expert adjudication remains an external validation step for interpreting the benchmark as expert-certified ground truth rather than a prerequisite for reporting the controlled same-label method comparison.

5. Discussion

5.1. Evaluating Exact Pages Changes the Conclusion

The most important methodological finding is that document-level retrieval can substantially overestimate access to supporting evidence. In the earlier development pilot, most methods achieved Hit@3 values close to one when any relevant document counted as a success. When relevance was defined as the exact supporting source page, the best Hit@3 fell to 0.556. A generally relevant document may contain dozens of pages and still fail to provide the passage needed for the answer. Document-level success should therefore be interpreted as successful navigation to a relevant publication, not as proof that the system found the evidence needed to ground an answer.

5.2. Why BM25 Is a Necessary Baseline

BM25 performed strongly because the source documents contain exact regulatory terms, named procedures, lists of energy sources, guarding terms, and recurring PPE phrases. This result is consistent with the continuing value of word-based sparse search in terminology-rich regulatory collections [2,27,28]. The controlled modern dense extension further showed complementary behavior rather than simple replacement: reconstructed BM25 retained a higher observed Hit@1 than MiniLM, MiniLM improved the observed deeper cutoff retrieval and answer support discrimination, and BM25 + MiniLM RRF produced the highest observed MRR and nDCG@10. However, the reciprocal rank omnibus test was not significant, so these differences are descriptive rather than evidence that one method is statistically superior.

5.3. Hybrid Retrieval Is a Hypothesis, Not a Guaranteed Contribution

Reciprocal rank fusion improved the LSA baseline in several settings but did not consistently improve BM25. Combining rankings helps only when the methods contribute different relevant pages. A weak semantic component can reduce the value of a stronger BM25 ranking, so hybrid search should be compared with both component methods rather than assumed to be better. This interpretation is consistent with regulatory search studies that combine word-based and semantic signals but also use domain adaptation, filtering, or a second ranking stage [27,28].

5.4. Text Preparation and Added Source Information

No overall effect of text version was detected within BM25. Cleaning improved Hit@3 but reduced Hit@5 and Hit@10 compared with other text versions, while adding document, topic, source, and page metadata improved deeper retrieval but not early rank success. These mixed results show that adding such information does not automatically improve search. Repeated topic terms may increase the length of a text segment or compete with the actual evidence. The auxiliary field-level diagnostics likewise found no individual metadata field that uniformly dominated all retrieval cutoffs. Confirmatory work should reproduce those ablations on the archived segment inventory and examine whether field effects differ by question type rather than relying only on overall averages.

5.5. Implications for Safety Engineering Assistants

The findings support a staged safety system. First, the retrieval method should return traceable passages and indicate whether the source documents appear to support an answer. Second, the system should refuse to answer or send the case to a reviewer when evidence is missing or conflicting. Third, one fixed answer generation model should prepare an answer only from accepted evidence and cite its source. Finally, experts should separately evaluate correctness, completeness, faithfulness to the source, traceability, and practical usefulness. This staged approach is consistent with calls for human oversight and validated artificial intelligence systems in safety engineering [30,31,32].
The reference benchmark indicates that the retrieval stage, itself, is computationally modest for the present 18-document corpus: CPU-only BM25 retrieval averaged below 1 ms per query in the reference environment, while PDF extraction was an offline preprocessing cost. These measurements do not establish that a local end-to-end assistant is faster or cheaper than a cloud service because LLM inference, network latency, privacy requirements, integration overhead, and service pricing were outside the experiment. The study therefore limits its practical claim to the computational feasibility of the retrieval layer at this corpus scale.

5.6. Implications for Civil and Construction Engineering

Although the experiment used LOTO, machine guarding, and PPE documents rather than a construction-specific collection, the retrieval problem has a close civil engineering analogue. Construction teams must combine regulations, safety plans, accident reports, project records, and increasingly BIM-linked or knowledge graph information. The reviewed construction literature shows that hazards vary across residential, highrise, industrial, and heavy construction settings and that safety priorities depend on site conditions, temporary work, equipment, worker competence, and management systems [6,7,8,32]. A page-level retrieval benchmark can therefore test whether an assistant finds the specific evidence needed for a site decision rather than merely a document about the same hazard.
For civil engineering deployment, the present workflow should be extended with construction-specific source fields such as project type, work package, project phase, contractor, jurisdiction, revision status, and links to BIM objects or knowledge graph entities. Yang et al. [9] show that construction safety knowledge graphs already integrate regulations, accident reports, project data, and BIM but still rely on expert-supported extraction and face challenges in data integration and generalization. The page-level traceability used here can serve as an auditable bridge between unstructured documents and those structured systems.
The transfer should be tested rather than assumed. A civil engineering evaluation set should include falls from height, scaffolding and formwork, excavation, lifting, temporary structures, electrical work, plant movement, and contractor coordination, with questions separated by project type and phase. The current results provide a method for building that test, not evidence that the present rankings will hold in construction.

5.7. Practical Design Recommendations

  • Retain BM25 as a mandatory benchmark and practical sparse retrieval fallback for exact regulatory terms, standard identifiers, named procedures, and equipment-specific vocabulary.
  • Display document ID, page number, source authority, jurisdiction, and publication date with every retrieved evidence passage.
  • For construction documents, retain project type, project phase, work package, contractor, and any BIM or asset identifier with each retrieved passage.
  • If refusal thresholds are deployed, calibrate them separately for each search method using development data and evaluate them on held-out questions; do not compare raw BM25, cosine similarity, and RRF scores using one threshold.
  • Log retrieval and generation independently so that a correct refusal is not counted as a high-quality generated answer and a fluent answer cannot hide missing evidence.
  • Send low-confidence, conflicting, or cross-jurisdiction cases to a safety professional and record the reviewer’s decision so the evaluation set can be improved later.

6. Limitations

  • The source page relevance decisions are model-assisted and should be interpreted as a transparent silver standard rather than an independently expert-adjudicated gold standard. This limits claims about absolute retrieval accuracy or operational safety validation, but all compared retrieval conditions use the same frozen relevance set, preserving the internal consistency of the comparative experiment.
  • The archived semantic comparison method is LSA rather than a modern neural sentence transformer. A separate controlled MiniLM extension was subsequently added on a reconstructed raw corpus; its labels remain the same model-assisted silver standard, and its observed method differences did not reach statistical significance.
  • The evaluation set contains 54 questions and three industrial safety topics, with only 36 answerable cases. Bootstrap intervals are therefore necessarily broad, the comparative category contains only two questions, and topic-level performance varies substantially. The benchmark was frozen before the final source-page comparison, so we did not enlarge the primary test set after observing method failures. A larger prospectively authored challenge set, including additional broad and multi-step procedural questions, is needed for confirmatory evaluation. The current set also includes no construction-specific documents, hazards, or project phases. The civil engineering implications are therefore design propositions based on the reviewed literature, not evidence that the reported rankings generalize to construction or other industries, jurisdictions, languages, or document types.
  • The source document collection mixes regulatory guidance, training material, sector-specific documents, and sources from different years and jurisdictions. It also varies substantially in document length and extracted text density, including a low-text slide deck export and sources with known spacing artifacts. BM25 applies segment length normalization through its b parameter, and LSA vectors are normalized before cosine ranking, but these algorithmic normalizations do not remove document-type or layout heterogeneity. The document list, source roles, version control rules, and extraction quality flags should therefore be reported consistently when the benchmark is reused.
  • Answer generation was deliberately not evaluated; the study makes no claim about end-to-end answer correctness or deployment readiness.
  • The primary AUROC analysis of whether questions can be answered uses the top retrieval score. Auxiliary diagnostics also consider the first to second result score margin, but neither feature constitutes a validated operational refusal mechanism.
  • The statistical analysis is exploratory because the evaluation set is small and the relevance decisions form a model-assisted silver standard rather than an independently expert-adjudicated gold standard.

6.1. Threats to Validity

Construct validity. Source-page relevance is a stricter construct than document relevance, but some safety answers require evidence distributed across several pages. The present labels are designed to verify whether a cited source page supports predefined mandatory answer elements; they do not constitute independent expert formulation of the underlying safety requirement. Binary gains were used in nDCG for the primary experiment, which may underrepresent partial evidence, evidence sufficiency, and procedural continuity. An externally validated extension could distinguish no support, partial support, and sufficient support and test the sensitivity of the reported method comparisons to independently adjudicated judgments.
Internal validity. The three text versions were produced using repeatable rules, but cleaning and metadata enrichment can change term distributions, segment boundaries, and candidate exposure. The primary design kept segment size and overlap fixed so that retrieval methods were compared under the same segmentation rule, and retrieved segments were collapsed to unique source pages before scoring. This collapse removes repeated exposure of overlapping segments from the same page in the final ranked list, but it does not eliminate the greater number of candidate pages contributed by long documents. Corpus diagnostics confirmed this exposure imbalance: document page count correlated with chunk count (r = 0.810), and extracted character count correlated strongly with chunk count (r = 0.987). An auxiliary chunk sensitivity audit therefore varied chunk size/overlap and also indexed whole pages. Across the tested settings, MRR ranged from 0.490 to 0.525 for chunked conditions, while whole-page indexing achieved MRR = 0.520; no single segmentation setting dominated all cutoffs. These diagnostics indicate that the main qualitative retrieval pattern is not dependent on one chunk size, but they do not constitute a fully document-balanced re-estimation of Table 4. Auxiliary reconstructions also examined individual preprocessing operations, metadata fields, and selected BM25/LSA parameter settings. Because these reconstructions did not exactly reproduce the archived segment inventory, they are treated as robustness diagnostics rather than replacements for the primary experiment. A future benchmark should additionally equalize or reweight document contributions to isolate residual document length exposure directly.
External validity. The source document collection is limited to English-language material in three safety topics and includes different authorities, years, document types, page layouts, and text densities. All retained PDFs provided extractable machine-readable text, but the pipeline did not evaluate image-only scans, OCR accuracy, layout reconstruction, diagrams, charts, or visually dependent tables. Results may therefore differ for current regulations, organization-specific procedures, multilingual documents, scanned records, multi-column technical manuals, accident narratives, and questions whose answer depends on visual page structure.
Conclusion validity. The evaluation set contains 36 paired answerable questions, and the relevance decisions form a silver-standard benchmark rather than an independently expert-adjudicated gold standard. The comparative results are therefore interpreted conditionally on this frozen benchmark; confidence intervals, effect sizes, and failure analysis are more informative than isolated p values or claims of absolute retrieval accuracy.

6.2. Future Work

Future work should strengthen external validity in three directions. First, an independently adjudicated expert benchmark could be used to test the sensitivity of the present silver-standard comparisons, especially for ambiguous, scenario-based, multi-page, and jurisdiction-sensitive questions. Second, the completed all MiniLM L6 v2 extension should be broadened to additional modern retrievers such as E5 or BGE and, where computationally feasible, a cross encoder reranker. These extensions should preserve the frozen questions and evidence units while using independently adjudicated labels and a larger benchmark to determine whether the descriptive BM25 + dense fusion gains observed here are reproducible. Third, a separate civil engineering extension should build and validate a construction safety document collection and a prospectively authored question set covering project phases, temporary works, work at height, lifting, excavation, plant movement, contractor coordination, and additional broad multi-step procedures. That extension should retain project and BIM-linked source details and test whether the retrieval patterns observed here transfer to construction practice.

7. Conclusions

This study turns a broad local RAG implementation into a focused evaluation of whether retrieval methods can find the exact industrial safety source pages needed for an answer. Under the fixed silver-standard benchmark used consistently across all retrieval conditions, BM25 provides a strong baseline, hybrid search is not automatically better, text preparation does not produce a uniform improvement, and document-level success can conceal source-page failure. These findings are comparative and exploratory rather than claims of expert-certified absolute retrieval accuracy or deployment readiness. The workflow also provides a practical foundation for civil engineering safety systems, where regulations, accident records, project information, and BIM-linked knowledge must remain traceable to the evidence used in a site decision. Future external validation can examine the sensitivity of the reported comparisons to independently adjudicated relevance labels, additional neural retrievers and rerankers, and construction-specific document collections.

Author Contributions

S.S.S.: Conceptualization, Methodology, Formal analysis, Supervision, Project administration, and Writing—review and editing. A.E.M.: Investigation, Software, Data curation, Visualization, and Writing—original draft. M.A.N.: Validation and Writing—review and editing. A.S.: Validation and Writing—review and editing. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Institutional Review Board Statement

Not applicable. The study is a computational evaluation of publicly available documents and does not involve human participants or personal data.

Data Availability Statement

The evaluation questions, source document list, preprocessing and retrieval code, settings files, and evaluation outputs are available from the corresponding authors upon reasonable request. The source PDFs remain subject to the terms of their issuing organizations and are not redistributed by the authors.

Conflicts of Interest

The authors declare no conflicts of interest.

Abbreviations

The following abbreviations are used in this manuscript:
AbbreviationDefinition
AIArtificial intelligence
ARESAutomated RAG Evaluation System
AUROCArea under the receiver operating characteristic curve
BERTBidirectional Encoder Representations from Transformers
BIMBuilding information modeling
BM25Best Matching 25
EFA AHPExploratory factor analysis–analytic hierarchy process
FAISSFacebook AI Similarity Search
HSEHealth and Safety Executive
IoTInternet of Things
LLMLarge language model
LOTOLockout/tagout
LSALatent semantic analysis
MRRMean reciprocal rank
nDCGNormalized discounted cumulative gain
NIOSHNational Institute for Occupational Safety and Health
OSHAOccupational Safety and Health Administration
PDFPortable Document Format
PPEPersonal protective equipment
RAGRetrieval-augmented generation
RIRAGRegulatory Information Retrieval and Answer Generation
RRFReciprocal rank fusion
SNASocial network analysis
TF IDFTerm frequency–inverse document frequency
XRExtended reality

Appendix B. Evaluation Set Structure and Review Fields

The evaluation set contains 54 questions. Table A2 summarizes the question groups, Table A3 lists all 54 evaluation questions, and Table A4 lists the minimum information needed for a repeatable relevance decision.
Table A2. Composition of the evaluation question set.
Table A3. Complete evaluation question set.

Review Fields

Table A4. Information required for each evaluation question.

Appendix C. Reproducibility Checklist

  • The source document list includes stable IDs, source URLs, page counts, and SHA 256 checksums.
  • Raw, cleaned, and metadata-enriched text segment files are versioned and retain document and page information.
  • Text segment size and overlap, BM25 settings, LSA dimensions, RRF constant number of retrieved candidates, and random seed are recorded.
  • Question-level rankings retain the page ID, score, text segment ID, and relevance decision.
  • Question identifiers, domains, question types, answerability status, and source page relevance fields are stored with the evaluation set.
  • Statistical scripts use paired question-level observations and archived random seeds.
  • Any future neural search run should record the model identifier, model revision or checksum, package versions, and evaluation-set checksum.
  • A future independently adjudicated relevance set should be versioned separately so that sensitivity to the current silver-standard labels can be evaluated without altering the archived retrieval results.

References

  1. Lewis, P.; Perez, E.; Piktus, A.; Petroni, F.; Karpukhin, V.; Goyal, N.; Küttler, H.; Lewis, M.; Yih, W.-T.; Rocktäschel, T.; et al. Retrieval augmented generation for knowledge intensive NLP tasks. Adv. Neural Inf. Process. Syst. 2020, 33, 9459–9474. [Google Scholar]
  2. Robertson, S.; Zaragoza, H. The probabilistic relevance framework: BM25 and beyond. Found. Trends Inf. Retr. 2009, 3, 333–389. [Google Scholar] [CrossRef] [Scilit]
  3. Karpukhin, V.; Oguz, B.; Min, S.; Lewis, P.; Wu, L.; Edunov, S.; Chen, D.; Yih, W.-T. Dense passage retrieval for open domain question answering. In Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing; Association for Computational Linguistics: Stroudsburg, PA, USA, 2020; pp. 6769–6781. [Google Scholar] [CrossRef] [Scilit]
  4. Reimers, N.; Gurevych, I. Sentence BERT: Sentence embeddings using Siamese BERT networks. In Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing and the 9th International Joint Conference on Natural Language Processing; Association for Computational Linguistics: Stroudsburg, PA, USA, 2019; pp. 3982–3992. Available online: https://aclanthology.org/D19-1410/ (accessed on 15 October 2026).
  5. Cormack, G.V.; Clarke, C.L.A.; Buettcher, S. Reciprocal rank fusion outperforms Condorcet and individual rank learning methods. In Proceedings of the 32nd Annual International ACM SIGIR Conference on Research and Development in Information Retrieval; Association for Computing Machinery: New York, NY, USA, 2009; pp. 758–759. [Google Scholar] [CrossRef] [Scilit]
  6. Almaskati, D.; Kermanshachi, S.; Pamidimukkala, A.; Loganathan, K.; Yin, Z. A review on construction safety: Hazards, mitigation strategies, and impacted sectors. Buildings 2024, 14, 526. [Google Scholar] [CrossRef] [Scilit]
  7. Pham, H.C.; Tran, S.V.-T.; Lee, U.-K. Prioritizing critical factors affecting occupational safety in high rise construction: A hybrid EFA AHP approach. Buildings 2025, 15, 2677. [Google Scholar] [CrossRef] [Scilit]
  8. Torres, K.; Noguera, M.; Castañeda, K.; Sanchez, O. Causal factors and prevention strategies of accidents in residential construction: Perspectives from construction managers. Saf. Sci. 2025, 191, 106972. [Google Scholar] [CrossRef] [Scilit]
  9. Yang, B.; Hu, J.; Meng, X.; Wang, C.; Wang, X. Knowledge graphs in smart construction safety management: A systematic review. Saf. Sci. 2026, 197, 107133. [Google Scholar] [CrossRef] [Scilit]
  10. Sabetta, N.; Costantino, F.; Stabile, S. A comparative analysis for automated information extraction from OSHA lockout/tagout accident narratives with a large language model. Procedia Comput. Sci. 2025, 253, 1362–1372. [Google Scholar] [CrossRef] [Scilit]
  11. Ando, H.; Matsugaki, R.; Yamakawa, S.; Ogami, A. Automated classification of occupational accident texts using large language models: A pilot study. Occup. Health 2026, 1, 16. [Google Scholar] [CrossRef] [Scilit]
  12. Wang, L.; Huang, R.; Chen, Y.; Yang, Y.; Zhan, J.; Gong, H. Unveiling systemic risks in sustainable safety management: Integrating BERTopic, LLM, and SNA for accident text mining. Sustainability 2026, 18, 3787. [Google Scholar] [CrossRef] [Scilit]
  13. Yang, M.; Cui, C.; Li, Y.; Chen, N.; Zhang, P. Industrial scale data processing and LLM evaluation for coal mine safety. In Proceedings of the International Conference on Communication and Information Processing; Association for Computing Machinery: New York, NY, USA, 2025; pp. 554–562. [Google Scholar] [CrossRef] [Scilit]
  14. Tumre, S.; Koundanya, S.; Kumbhar, S.; Patil, S. Aligning LLMs to improve specificity of preventive action recommendations for industrial safety. In International FLAIRS Conference Proceedings; FLVC Library Services: Tallahassee, FL, USA, 2025; Volume 38. [Google Scholar] [CrossRef] [Scilit]
  15. Shi, L.; Qi, B.; Luo, J.; Zhang, Y.; Liang, Z.; Gao, Z.; Deng, W.; Sun, L. Aegis: An advanced LLM based multi agent for intelligent functional safety engineering. In Proceedings of the 2024 Conference on Empirical Methods in Natural Language Processing: Industry Track; Association for Computational Linguistics: Stroudsburg, PA, USA, 2024; pp. 1571–1583. [Google Scholar] [CrossRef] [Scilit]
  16. Shi, J.; Li, J.; Li, Y.; Xie, Z.; Li, Y.; Zhang, L. Proactive decision making agent for industrial leakage and explosion emergencies powered by Physics_GNN and LLM. J. Loss Prev. Process Ind. 2026, 102, 105976. [Google Scholar] [CrossRef] [Scilit]
  17. Yan, J.; Chen, B.; Zhang, F.; Cheng, Y.; Wang, H.; Wang, H.; Wang, M.; Li, T.; Zhang, W. Meta Learning Based Graph Convolutional Wavelet Network for Intelligent Dynamic Modeling of High Speed Rail Subsystems. In IEEE Transactions on Vehicular Technology; IEEE: New York, NY, USA, 2026; pp. 1–16. [Google Scholar] [CrossRef] [Scilit]
  18. Wang, X.; Jiang, H.; Zeng, T.; Dong, Y. An adaptive fused domain cycling variational generative adversarial network for machine fault diagnosis under data scarcity. Inf. Fusion 2026, 126, 103616. [Google Scholar] [CrossRef] [Scilit]
  19. Wang, X.; Jiang, H.; Mu, M.; Dong, Y. A dynamic collaborative adversarial domain adaptation network for unsupervised rotating machinery fault diagnosis. Reliab. Eng. Syst. Saf. 2025, 255, 110662. [Google Scholar] [CrossRef] [Scilit]
  20. Baek, S.; Park, C.Y.; Jung, W. Automated safety risk management guidance enhanced by a retrieval augmented large language model. Autom. Constr. 2025, 176, 106255. [Google Scholar] [CrossRef] [Scilit]
  21. Du, K.; Yang, B.; Xie, K.; Dong, N.; Zhang, Z.; Wang, S.; Mo, F. LLM MANUF: An integrated framework of fine tuning large language models for intelligent decision making in manufacturing. Adv. Eng. Inform. 2025, 65, 103263. [Google Scholar] [CrossRef] [Scilit]
  22. Li, W.; Ma, F.; Zuo, Z.; Jia, R.; Wang, B.; Alharbi, A.M. SafetyGPT: An autonomous agent of electrical safety risks for monitoring workers’ unsafe behaviors. Int. J. Electr. Power Energy Syst. 2025, 168, 110672. [Google Scholar] [CrossRef] [Scilit]
  23. Lim, J.; Kwak, Y.; Lee, J.; Kim, T.Y.; Jeong, J. mLLM CRD: Multimodal LLM based context aware rule detection using LoRA integrated attention for worker safety monitoring. J. King Saud Univ. Comput. Inf. Sci. 2026, 38, 310. [Google Scholar] [CrossRef] [Scilit]
  24. Wang, W.; Zhou, P. LLM guided risk sensitive reinforcement learning for smart factories in the scenario of human–robot symbiosis. Expert Syst. Appl. 2026, 299, 130093. [Google Scholar] [CrossRef] [Scilit]
  25. Saad Falcon, J.; Khattab, O.; Potts, C.; Zaharia, M. ARES: An automated evaluation framework for retrieval augmented generation systems. In Proceedings of the 2024 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies; Association for Computational Linguistics: Stroudsburg, PA, USA, 2024; Volume 1, pp. 338–354. Available online: https://aclanthology.org/2024.naacl-long.20/ (accessed on 15 October 2026).
  26. Ming, Y.; Purushwalkam, S.; Pandit, S.; Ke, Z.; Nguyen, X.P.; Xiong, C.; Joty, S. FaithEval: Can your language model stay faithful to context, even if “the moon is made of marshmallows”? In Proceedings of the International Conference on Learning Representations; ICLR: Appleton, WI, USA, 2025. [Google Scholar]
  27. Malviya, Y.; Dhingra, K.; Singh, M. MST R: Multi stage tuning for retrieval systems and metric evaluation. In Proceedings of the 1st Regulatory NLP Workshop; Association for Computational Linguistics: Stroudsburg, PA, USA, 2025; pp. 41–51. [Google Scholar]
  28. Faisal, M.R.; Abdullah, M.; Shah, F.A.; Riaz, S.; Ameer, H.; Latif, S.; Fatima, M. NUST Alpha at RIRAG 2025: Fusion RAG for bridging lexical and semantic retrieval and question answering. In Proceedings of the 1st Regulatory NLP Workshop; Association for Computational Linguistics: Stroudsburg, PA, USA, 2025; pp. 79–84. [Google Scholar]
  29. Sorour, S.S.; Sahbel, A. Large language models in intelligent manufacturing and mechanical engineering: A review of robotics, fault diagnosis, design, and engineering knowledge workflows. J. Intell. Manuf. 2026. Advance online publication. [Google Scholar] [CrossRef] [Scilit]
  30. Bianchini, F.; Calamo, M.; Marinacci, M.; Rossi, J.; Mecella, M. SETTE: A human centric framework for operator safety monitoring in Industry 5.0. Procedia Comput. Sci. 2026, 277, 3800–3809. [Google Scholar] [CrossRef] [Scilit]
  31. Vella, F.; Senia, P.; Filetti, V.; Vitale, E.; Sferrazzo, G.; Privitera, L.; Rapisarda, V.; Indelicato, G.; Zagorianakou, N.; Durante, S.; et al. Application of large language models as decision support tools in occupational health and safety management: A cohort study of industrial workers. Front. Public Health 2026, 14, 1815316. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  32. Bonnin, H.; Trevey, K.; Geneau, T.; Xiao, J. On the challenges of responsible usage of LLM based tools in safety engineering. In Proceedings of the 13th European Congress of Embedded Real Time Systems; HAL: Sydney, Australia, 2026. [Google Scholar] [CrossRef]
  33. Johnsen, S.O.; Steen, R. Challenges in safety management within complex, subcontractor driven environments: Reflections from Equinor’s incidents. In Proceedings of the European Safety and Reliability Conference (ESREL 2026); Research Publishing: Irvine, CA, USA, 2026; Available online: https://www.researchgate.net/publication/408249341_Challenges_in_safety_management_within_complex_subcontractor-driven_environments_Reflections_from_Equinor's_incidents (accessed on 15 October 2026).
  34. Ganiyev, K.; Alizada, S.; Asgarov, A.; Gasimli, M.; Gasimzade, N. Safety management in the construction industry: Bibliometric analysis. Probl. Perspect. Manag. 2024, 22, 198–213. [Google Scholar] [CrossRef] [Scilit]
  35. Arévalo Sarrate, C.; Tarín Martínez, J.; Lara Galera, A.L.; Galindo Aires, R.Á. Effect of health and safety management systems in the construction sector. Buildings 2024, 14, 167. [Google Scholar] [CrossRef] [Scilit]
  36. Bourahla, A.; Fernandes, G.; Ferreira, L.M.D.F. Managing occupational health and safety risks in construction projects to achieve social sustainability: A review of literature. Procedia Comput. Sci. 2024, 239, 1053–1061. [Google Scholar] [CrossRef] [Scilit]
  37. Health and Safety Executive. Personal Protective Equipment at Work: Personal Protective Equipment at Work Regulations 1992—Guidance on Regulations, 4th ed.; HSE Books: Norwich, UK, 2022. [Google Scholar]
  38. Occupational Safety and Health Administration. Control of Hazardous Energy (Lockout/Tagout); OSHA Publication 3120; U.S. Department of Labor: Washington, DC, USA, 2002.
  39. Occupational Safety and Health Administration. Safeguarding Equipment and Protecting Employees from Amputations; OSHA Publication 3170; U.S. Department of Labor: Washington, DC, USA, 2007.
  40. Occupational Safety and Health Administration. Personal Protective Equipment; OSHA Publication 3151; U.S. Department of Labor: Washington, DC, USA, 2023.
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Article Metrics

Citations

Article Access Statistics

Multiple requests from the same IP address are counted as one view.