Use case 02 · Safety & health regulations
Put the safety regulations in every worker's pocket, with the source on every answer.
The challenge
A construction crew on a job site needs to know what personal protective equipment is required for the work. The answer sits in federal regulations spread across hundreds of web pages, written in legal language and hard to search on a phone. A general-purpose chatbot might answer quickly, but nobody can tell where its answer came from.
What we built
A retrieval-augmented generation (RAG) system behind native iOS and Android apps. It indexes the OSHA regulations ahead of time, finds the sections that match a plain-language question, and provides answers with citations and links to those sections.
The result
A plain answer in seconds, tagged with the regulation number and linked to the original OSHA page, so anyone can check it.
Swift · SwiftUIKotlin · ComposeFastAPIChromaDBSentence Transformers
SourceIndexed ahead of time
OSHA regulation pagesConstruction · 29 CFR 1926PPE subpartsSection numbersSource URLs
Scraped, cleaned, split into sections and embedded. Each chunk keeps its citation and the link back to osha.gov.
Field questioniOS & Android app
When are safety nets required in construction?
Retrieval-augmented generation (RAG)API service
- ExpandTurns everyday wording like "do I need" into regulatory terms like "shall be provided".
- RetrieveFinds the five most relevant regulation sections in the vector store.
- GroundAnswers using only those sections, never from memory.
- CiteEvery requirement in the answer is tagged with its section number.
⚑ If the sections don't cover it, the answer says so
Trust
Anyone can check the source
Each citation opens the original regulation, so the worker, the supervisor and the inspector are all reading the same text.
Demonstration project. Answers are informational and are not legal or compliance advice; always confirm requirements against the current regulation. OSHA is an agency of the U.S. Department of Labor. No endorsement or affiliation is implied.