Knowledge Base Retrieval for University Laboratory Safety Classification: Compare Documents and Locate Differences

Lab Safety Categories: review retrieval for document checks. Check source versions, input mappings and the values received by downstream nodes.

What this category's data looks like

This page focuses on safety grading and classification of university laboratories. Materials include three types: laboratory grading and classification tables, hazard source lists, and safety responsibility statements. The sources are the archiving and updates by the laboratory and safety management department, and the update cadence changes with grading adjustments, hazard source changes, and signing of responsibility statements. Field characteristics are concentrated in names, quantities, dates, and signatures, and the same record should correspond to each other across the three materials. When materials enter the knowledge base retrieval service, the grading and classification table provides the basis for laboratory level and category, the hazard source list provides the basis for hazard source entries and quantities, and the safety responsibility statement provides the basis for responsible persons, signatures, and receipts; each of the three serves as a source of candidate snippets for subsequent comparison and discrepancy localization.

Configuration and implementation checks

This step is executed by the knowledge base retrieval service (retrieval node and search test), outputting candidate snippets and similarity scores (after pattern, merge, rerank, filter, and limit trimming). The discrepancy list is completed by subsequent nodes or manually.

ObjectCheckVerification action
Laboratory grading and classification tableWhether it is consistent with the hazard source list and safety responsibility statement in names, quantities, dates, and signaturesIn the knowledge base search test, switch searchMode, compare candidate snippets and scores, and record the name, quantity, and date fields
Hazard source listWhether it matches the grading and classification table and safety responsibility statement in hazard source names, quantities, and datesEnable and disable rerank, compare the order of the top few candidates, and verify the quantity and date fields
Safety responsibility statementWhether it is consistent with the grading and classification table and hazard source list in responsibility names, dates, signatures, and receiptsCheck the number of candidates and scores, verify the signature and receipt fields, and record missing items
Knowledge base retrieval serviceWhether candidate snippets and similarity scores cover the key fields of the three materialsAdjust similarity and limit, observe changes in the number of candidates and scores, and confirm the completeness of the cited text

Three common errors

  • Symptom: The name, quantity, and date of the same record do not match across two materials. Cause: Source materials are updated separately, and field-level comparison and write-back have not been performed.
  • Symptom: Versions are not synchronized, and an old grading and classification table is still recalled. Cause: Update cadence is inconsistent, and versions have not been checked against date fields.
  • Symptom: Signatures or receipts are missing, and the responsibility statement fields are incomplete. Cause: Signatures and receipts were not checked when materials were archived, and retrieval candidates did not cover those fields.

How to verify the setup

Acceptance for this feature: test once each with synonym-rewritten questions, compare candidates and scores, then toggle rerank on and off to inspect the ordering of the top few results.

Business test: use one real record to find fields that are inconsistent with the ledger.

  • In the knowledge base search test, switch searchMode and compare the number of candidates and scores for semantic, full-text, and hybrid modes.
  • Adjust similarity and limit, verify the tokens of the cited text, and record the number of array entries separately.