The challenge
Anglian Care, a social care provider in Essex, needed staff and managers to answer compliance questions quickly and accurately. The answers were spread across lengthy regulatory documents covering CQC inspections, safeguarding and Essex County Council standards.
What we built
We developed a Retrieval-Augmented Generation (RAG) agent. Internal regulatory documents are embedded with OpenAI and stored in Pinecone, and the agent retrieves the relevant passages so every answer is grounded in the provider's own material.
How we built it
- 1
Curating the source documents
We worked with the management team to gather the documents staff actually rely on: CQC inspection guidance, safeguarding procedures and Essex County Council standards, plus the provider's own internal policies. Outdated versions were removed so the agent could not quote superseded rules.
- 2
Building the knowledge base
Each document was split into sections that keep headings and context together, embedded with OpenAI and stored in Pinecone. That structure means a question about, for example, raising a safeguarding concern retrieves the exact procedure rather than a loosely related paragraph.
- 3
Grounded, cautious answers
The agent is instructed to answer only from the retrieved material and to say plainly when the documents do not cover a question, so staff are pointed to a manager instead of receiving a confident guess on a regulated topic.
The outcome
Care staff and managers can ask compliance questions in plain English and get an answer drawn from the provider's own regulatory material within seconds, instead of searching through long PDFs.
Managers spend less time fielding repeat questions, and the provider has a consistent reference point when preparing for CQC inspections.

