An AI assistant for your organisation's own files

A supplier or a colleague may suggest an assistant that looks things up in the organisation's files and replies to staff questions. Deciding whether to say yes is easier once you know how these tools work.

The government's AI Playbook explains the method, and a test the Government Digital Service ran on GOV.UK shows it in use.

A method many tools already use

The AI Playbook describes the search step that comes before the answer. It then says, "This type of approach is known as retrieval augmented generation (RAG), and is used in many commercial generative AI tools (such as Microsoft Copilot)."

RAG or fine-tuning

The Playbook gives two ways to make a generative AI model work with an organisation's private data. You can fine-tune the model, or use approaches like RAG.

The GOV.UK Chat team explained its own choice. "We preferred an RAG approach to fine-tuning a large language model (LLM) because GOV.UK content is updated regularly with edits and new pages published."

What it does less well

The Playbook names one limit. Generative AI handles creative work better than it retrieves facts.

It explains that these models produce "plausible predictions that look correct but may not actually be correct". The GOV.UK Chat test found the same, noting the system occasionally produced 'hallucinated' responses.

The Information Commission, the UK's data protection regulator, ties accuracy to purpose. It says a model whose outputs people rely on for facts has different accuracy requirements from one used as a source of inspiration.

There is one security point to raise with the supplier as well. The Playbook warns that "RAG tools are susceptible to indirect prompt injection".

Your data goes with it

Connecting an assistant to internal files changes the risk. The Playbook says, "If you use your own data with an AI model, you immediately increase the data security risk and you need to apply additional security controls to stop data leakage and privacy violations."

Where an answer is about a person, the Playbook asks organisations to treat it as a "statistically informed guess", not as fact.

A trial with your own staff

Alongside statistical checks, the Playbook recommends trying the model's answers on a sample of its users, to see how accurate and relevant they are.

GOV.UK Chat shows what that looks like. Content designers from across government assessed its answers, and the test reached an answer accuracy of 80%. The team said accuracy would need to improve before the tool went out to users on the site.

Useful links