AI Fundamentals — How Modern AI Works›Using AI well · Cheat sheet & self-check
Learning Hub / AI Fundamentals & AI-Assisted Engineering / AI Fundamentals — How Modern AI Works

Using AI well · wrap-up

Cheat sheet & self-check

Every command from this section on one page.

11 · Choosing and running a model

Terms

Hosted (API) modelRun by a provider; you send requests and pay per token
Open-weight modelParameters are published; you can run it on your own hardware
Self-hosting toolsOllama for laptops and small servers; vLLM and similar for production GPU serving
QuantisationStoring parameters with fewer bits so a model fits on smaller hardware, with a small quality loss
LatencyTime to first token and tokens per second
Fine-tuningFurther training a model on your examples to change its behaviour
LoRAA 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?
RetentionHow long are prompts and outputs stored?
LocationWhich regions process and store the data?
ComplianceCertifications and contracts you need

12 · Risks, guardrails and evaluation

Risks

Prompt injectionInput that makes the model ignore its instructions
Indirect prompt injectionInstructions hidden in content the model reads: a web page, email, document, tool result
Data leakageSensitive data in prompts, logs, answers or retrieved documents reaching the wrong people
Excessive agencyA model with more tools or permissions than the task needs
Over-reliancePeople accepting output without checking

Controls

Least privilegeOnly the tools and data the task needs, with the user's own permissions
Human approvalFor irreversible or outward-facing actions
Input and output filtersDetect secrets, personal data, unsafe content
Evaluation setFixed questions with expected results, run on every change
Red teamingDeliberately trying to break it before attackers do

13 · Capstone: an AI assistant end to end

Review checklist for any AI feature

PurposeWhat job, for whom, and what does a good answer look like?
ModelWhich one, hosted or self-hosted, and why; where does data go?
KnowledgeWhich sources, how kept fresh, permission-filtered?
ToolsWhich ones, read or write, whose credentials?
ApprovalsWhich actions need a person?
Guard-railsInjection, data leakage, output filters, limits
EvaluationTest set, scores, who reviews, how often
OperationsLogs, cost, latency, feedback, incident plan