Knowledge Base Retrieval for University Laboratory Safety Classification: Manage Authorized Access and External Services

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

What this category's data looks like

University laboratory safety grading and classification materials mainly consist of laboratory grading and classification tables, hazard source lists, and safety responsibility statements. The sources are the various departments and the laboratory safety management office, and the update cadence is usually synchronized by academic year or rectification cycle. The grading and classification table records the laboratory name, level, hazard source category and quantity, and responsible person; the hazard source list itemizes the names, quantities, storage locations, and dates of chemicals, equipment, biological samples, etc.; the safety responsibility statement contains the responsible person's signature, date, and receipt. When the materials enter knowledge base retrieval and recall, the grading and classification table provides clues about laboratory level and visibility scope, the hazard source list provides the basis for specific risk items and quantities, and the safety responsibility statement provides signature and date evidence. Together, the three determine the authorization scope and entry visibility for external services.

Configuration and implementation checks

This step is executed by the knowledge base retrieval service (retrieval node and search test), which outputs candidate chunks and similarity scores (after pattern, merge, rerank, filter, and upper-limit trimming). The externally available entries and authorization scope are then completed by subsequent nodes or manually.

ObjectCheckVerification action
Laboratory grading and classification tableWhether the name, level, hazard source category and quantity, and responsible person fields are complete, and whether the date and signature are consistent with the responsibility statementIn the search test, search using the same record name, check whether the level and hazard source quantity in the candidate chunks correspond to the responsibility statement, and record the number of candidates and the score
Hazard source listWhether the names, quantities, storage locations, and dates of chemicals, equipment, and biological samples match the grading and classification table item by itemSwitch searchMode to hybrid, check whether the candidates include both semantic and full-text results, and verify whether the quantity and date fields are consistent
Safety responsibility statementWhether the responsible person's signature, date, and receipt are complete, and whether the version is synchronized with the current grading and classification tableSearch for responsibility statement chunks using a restricted identity, check the signature and date fields, and record the similarity score and number of candidates
Externally available entries and authorization scopeWhether the visitor identity matches the visibility scope, and whether unauthorized content is invisibleCompare the ranking of the top few candidates before and after enabling usingReRank, and check whether the visible chunks under a restricted identity fall within the authorization scope

Three common errors

  • Symptom: The name, quantity, and date of the same laboratory do not match between the grading and classification table and the hazard source list. Cause: The two materials were filled in by different personnel at different times without cross-checking.
  • Symptom: The safety responsibility statement lacks a signature or receipt, and the version is not synchronized. Cause: After rectification, only the grading and classification table was updated, while the responsibility statement continued to use the old version and was not re-signed.
  • Symptom: Changing the wording of the question makes it impossible to recall the corresponding chunks, and although there are many candidates, the ones ranked at the top are irrelevant. Cause: The retrieval mode does not match the material form, rerank is not enabled, or the similarity filter is too strict.

How to verify the setup

Acceptance for this feature: test once each with synonym-rewritten questions, compare the candidates and similarity scores, then toggle usingReRank on and off to observe the ranking of the top few; switch searchMode to check the number of candidates, use limit to control the number of returned items, record the tokens of the quoted text separately, and record the number of array items separately.

Business test: access once with a restricted identity, and see whether the visibility scope matches the setting and whether unauthorized content is invisible.

  • In the search test, retrieve the same record using different question phrasings, record the number of candidates and the similarity score, and check whether the candidate chunks cover the key fields of the grading and classification table, hazard source list, and safety responsibility statement.
  • Compare the order of the top few candidates before and after enabling usingReRank, switch searchMode to check whether semantic and full-text results are merged, check limit and the tokens of the quoted text, and confirm that the signature, date, and receipt fields are complete.