For instructors · Deploy

Stand up a secure classroom AI assistant

The Day 2 tabletop threat-models a fictional HelpDeskAI that nobody secured. This page is the constructive mirror: take a spare machine, install AnythingLLM, load your course materials, open it to your students — and secure it as you go, using the exact controls from today. You leave having deployed a private AI service, not just used one — and that deployment is itself the lesson.

Why not just NotebookLM?

NotebookLM is excellent for quick grounded Q&A over documents, and many of you already use it. But it is Google's cloud, with a fixed behavior you can't reshape. The moment you needprivacy, control, or want to teach deployment security, you host your own. This is what that buys you:

CapabilityNotebookLMYour self-hosted box
Where your data livesGoogle's cloudOn the machine, in your building — nothing leaves
Custom system prompt / persona / guardrailsNoYes — you write exactly how it behaves and refuses
Choose / swap the modelNoAny local model via Ollama or LM Studio
Host for the whole class (their own devices)Per Google accountOne box on your LAN, no student accounts required
Control who can add to the knowledge baseOnly you, per notebookYou own the corpus and its write-access
Access controls (per-student keys, rate limits)NoYes — add a gateway (this is Day 2 material)
Works with no internetNoFully offline once models are pulled
A security artifact students can red-teamNoYes — they attack a system you built and hardened
Student privacy — state this before you start

The privacy win is the point, so protect it: load course materials into the knowledge base, never real student records, grades, or PII. Keeping the box offline and on-premises is what makes it defensible for a classroom — don't undo that by feeding it the very data you're keeping local. Check your institution's data policy before students use it.

1 The machine

You do not need a GPU or a new laptop. A repurposed office machine runs a small model on CPU.

2 Install the stack

Two free installers. Both pull everything locally so the finished box needs no internet.

Terminal — pull the models once
ollama pull qwen2.5:3b          # the chat model (try 7b if you have 16 GB)
ollama pull nomic-embed-text    # embeddings for document retrieval (RAG)

Prefer a click-only path? LM Studio can host the model instead of Ollama; AnythingLLM points at either. The Labs without Docker page has the one-time AnythingLLM setup walkthrough.

3 Configure the assistant

A workspace in AnythingLLM is one assistant: its own documents, its own system prompt.

Example system prompt — a grounded course tutor
You are the Bio 101 study tutor for this course.
Answer ONLY from the uploaded course materials. If the answer
isn't in them, say so and point the student to the syllabus —
do not guess.
Explain concepts and ask guiding questions; do not just give
final answers to graded assignments.
Keep a supportive, plain-language tone for first-year students.

Notice what is not here: no passwords, no answer keys, no student data. Keeping secrets out of the prompt is a Day 2 rule (LLM07) — and the reason is Part 5.

4 Open it to the classroom

Three ways to get students to it, from simplest to most capable:

Keep it on the classroom network

Serve it on your LAN, not the open internet. If students need off-campus access, put it behind the school VPN rather than exposing the box publicly — an unauthenticated assistant on the public internet is exactly the LLM10 "denial-of-wallet"/abuse surface from today (even a free local model burns your CPU).

5 Secure it — apply Day 2

You just built a real version of the tabletop's HelpDeskAI. Now do to it what the class did on paper — walk the same controls, outside-in:

6 Use it with students

Where this maps

This is D2 Securing AI (the 40% exam domain) turned into a build: system-prompt hygiene (LLM07/LLM02), corpus write-control and tenant isolation (LLM04/LLM08), gateway limits (LLM10), and input/output guardrails (LLM01/LLM05) — the same controls, now defending an assistant your students actually use.