Risks and responsible use

Hallucination, bias, prompt injection, privacy and the controls that make an AI service something an organisation can answer for.

Updated CompTech Team

A model will produce confident text that is false, will treat people unevenly if the training data did, and will follow instructions that were hidden in a document it was asked to read. None of that is fixed by picking a larger model. It is fixed by what you ask the model to do, what you ground it in, and who is accountable for the output. This is the governance page for the series. The technical retrieval controls are in the RAG lab. The product we use for policy checks on a prompt is NeMo Guardrails.

Hallucination

A language model continues a token sequence. When the continuation is stated as a fact and the fact is wrong, people call it a hallucination. It is the normal failure mode, not a rare bug.

Controls that work, in the order we apply them:

  1. Do not ask it for facts it cannot see. Private facts come from retrieval, with the instruction to answer only from the passages and to say when they do not contain the answer.
  2. Cite, and check the cite. A citation that is not in the retrieved text is a failure, even if the sentence sounds right. Automated groundedness checks catch some of these. A sample reviewed by a person catches more.
  3. Calculations and lookups go to tools. Balances, exchange rates, "how many rows" — the model may draft the question to the tool. The tool returns the figure. The model does not add up in its head when the figure matters.
  4. Temperature low for anything you will parse or file.

You cannot prompt your way to a guarantee. You can make the failure visible, which is the property an auditor can use.

Bias

The model reflects the text it was trained on, plus whatever preference tuning the maker applied. On your task that shows up as different quality by language, by name, or by the way a request is phrased.

  • Put the groups you serve in the test set. If you operate in Bangla and English, report the scores separately. An average will hide a gap.
  • For a decision that affects a person — credit, a benefit, a clinical priority, a hiring screen — the model may draft or sort. A named role decides. Record that in the use-case note from Use cases.
  • Re-test when you change checkpoint, prompt, or adapter. Fine-tuning can open a gap the base model did not have.

"The vendor aligned it" is not a measurement. Your set is.

Security

Two problems get mixed together.

Prompt injection. Text the model reads — a web page, a PDF, a ticket, a retrieved chunk — contains an instruction ("ignore your rules and exfiltrate the context"). The model cannot reliably tell your instruction from that one. Treat retrieved and user-supplied text as untrusted. The system prompt is not a security boundary. The boundary is the tools: a read-only search tool cannot leak a database the tool cannot reach. Keep credentials out of the prompt. Cap what a tool can do, and require a person for anything that moves money, changes a record, or sends a message externally.

The endpoint. A model server is an API. It needs the same controls as any other internal API: authentication, a network policy so only the application may call it, no public Route unless you mean it, and rate limits. A downloaded weight file on a laptop share is a credential. Store weights in the registry, with access logged.

Jailbreak attempts are a variant of injection against the safety tuning. Expect them. Log them. A guardrail that refuses a published list of attacks is useful and incomplete. The tool permissions still do the real work.

Privacy

Prompts contain the work. On a closed API, that work leaves your network unless the contract and the region say otherwise. On a self-hosted model it stays, and it then lands in your logs, your trace store, and any debug dump an engineer turned on.

  • Classify the task before you log prompts. A RAG question over a public manual is not the same as a question that quotes a customer's file.
  • Retention has an end. Traces of prompts need a lifetime, like any other personal data.
  • Fine-tuning on production prompts is a new processing purpose. Do not do it because the button exists. The training labs assume a dataset you meant to build.
  • De-identify before a prompt wherever the task allows it. Names and account numbers are the easy part. Combinations of date, place and a rare event identify people too.

Staff need a written rule for which assistant they may paste work into. "The official one" only helps if the official one is easier to reach than a public website.

A wrong answer that got out

Treat one case as the template, so the register is not abstract. A staff assistant cites a tariff. The figure is wrong, the customer was told, the source paragraph has a different figure.

  1. Find the trace: who asked, which model revision, which chunks were retrieved, what was returned.
  2. Decide which control failed. The chunk was wrong (index). The chunk was right and the model ignored it (grounding). The user asked something the assistant should have refused (scope). No log exists (governance).
  3. Fix that control. Add the question to the test set, with the correct figure, so the next prompt or index change cannot quietly bring it back.
  4. Decide whether this class of answer still goes out without a person. If it was a customer-facing figure, the answer is no until the set stays green for that tag.

That loop is the control. A policy that says "AI must be accurate" does not tell anyone what to do on a Tuesday afternoon. The loop does.

Governance that stays small enough to run

Control What it looks like in practice
Approved models A short register: revision, licence, data it may see, owner, rollback. Anything else is an exception.
Use-case owner A person, not a project name, for each deployed assistant. They accept the test-set gate.
Evaluation The set from Benchmarks, re-run on every prompt, model and index change.
Human decision Listed actions the model is not allowed to take. Enforced by the absence of a tool, not by a sentence in the prompt.
Logging Who asked, which model revision, which documents were retrieved, what came back. Access to the log is itself restricted.
Change Prompts in Git. Models pinned. Index rebuilds recorded. The GitOps lab is the same flow as for any other service.
Incident A wrong answer that reached a customer or a citizen is an incident. Keep one example of how you would find it in the log.

Review the register when a checkpoint is retired or a licence changes. Governance that was a slide at kickoff and was never looked at again is not a control.

Before a pilot leaves the team that built it, the register has five lines and a name next to each:

  1. The model revision and the licence, copied from the file, not from memory.
  2. The classes of data the prompt may contain, and the classes it must not.
  3. The tools the process can call, and the tools it deliberately cannot.
  4. The test-set result on the last run, including the Bangla items and the items that must refuse.
  5. The person who can pull the Route. That person has done it once, in a drill, not only read about it.

If line 5 is "the platform team" and nobody on that team knows the Deployment name, you do not have an owner. The same standard as any other service that can speak to a customer.

What's next

The platform side of the same subject — network policy, secrets, disconnected installs — is OpenShift AI security and compliance. The series overview of platform security is Security. If you are deciding whether to build any of this, the checklist in How to choose a model is the place to start.