Using AI well · wrap-up
Cheat sheet & self-check
Every command from this section on one page.
Terms
Hosted (API) model | Run by a provider; you send requests and pay per token |
Open-weight model | Parameters are published; you can run it on your own hardware |
Self-hosting tools | Ollama for laptops and small servers; vLLM and similar for production GPU serving |
Quantisation | Storing parameters with fewer bits so a model fits on smaller hardware, with a small quality loss |
Latency | Time to first token and tokens per second |
Fine-tuning | Further training a model on your examples to change its behaviour |
LoRA | A cheap way to fine-tune by training a small add-on instead of the whole model |
Questions for a provider
Training on our data? | Is it used for training, and can that be switched off? |
Retention | How long are prompts and outputs stored? |
Location | Which regions process and store the data? |
Compliance | Certifications and contracts you need |
Risks
Prompt injection | Input that makes the model ignore its instructions |
Indirect prompt injection | Instructions hidden in content the model reads: a web page, email, document, tool result |
Data leakage | Sensitive data in prompts, logs, answers or retrieved documents reaching the wrong people |
Excessive agency | A model with more tools or permissions than the task needs |
Over-reliance | People accepting output without checking |
Controls
Least privilege | Only the tools and data the task needs, with the user's own permissions |
Human approval | For irreversible or outward-facing actions |
Input and output filters | Detect secrets, personal data, unsafe content |
Evaluation set | Fixed questions with expected results, run on every change |
Red teaming | Deliberately trying to break it before attackers do |
Review checklist for any AI feature
Purpose | What job, for whom, and what does a good answer look like? |
Model | Which one, hosted or self-hosted, and why; where does data go? |
Knowledge | Which sources, how kept fresh, permission-filtered? |
Tools | Which ones, read or write, whose credentials? |
Approvals | Which actions need a person? |
Guard-rails | Injection, data leakage, output filters, limits |
Evaluation | Test set, scores, who reviews, how often |
Operations | Logs, cost, latency, feedback, incident plan |