How Generative AI Changes the Classroom: Prompt Templates, Architecture, and Governance

    This article examines how generative AI reshapes teaching and learning by driving the marginal cost of customized content close to zero. It shows how teachers can use structured prompts to generate lesson plans, examples, analogies, and tiered tasks, and how students can use constrained prompts for self-testing and Socratic tutoring. It also outlines a layered architecture for building an operable teaching assistant, along with the governance requirements around hallucination, privacy, fairness, and over-reliance.

    1. Why Classrooms Need Generative AI

    Generative AI entering the classroom is not simply “one more tool for answering questions.” It pushes the cost of producing content down to an extremely low level. In the past, a teacher might spend hours searching for and rewriting materials to build a tiered exercise set, a set of analogy-based cases, or an interdisciplinary learning plan. Now a structurally complete first draft can be produced in minutes, and the teacher’s time shifts from “finding materials” to “designing objectives and reviewing quality.”

    A usage guide for teaching scenarios published by a cloud vendor offers a representative approach: use different prompts to have the model play roles such as teaching assistant, material generator, and AI tutor, each responsible for tasks like drafting course plans, constructing teaching cases and analogies, and creating learning plans. The value of this approach is that it fixes “role + objective + constraints + output format” into reusable templates, so users without a technical background can reliably obtain usable results.

    It is worth emphasizing that this role-playing usage already existed widely in the early stage of model adoption. The significance of an official guide is that it provides a relatively standardized and transferable prompt paradigm, not a brand-new capability.

    2. The Teacher’s View: From Searching to Generating and Reviewing

    2.1 Producing Course Plans with Structured Prompts

    A usable prompt contains at least four elements: learner profile, teaching objective, constraints, and output format. Example:

    1. Role: You are a primary school science teaching assistant.
    2. Audience: Third-grade students, weak in math, strong in logical thinking.
    3. Objective: Create an 8-week science enrichment plan focused on astronomy.
    4. Constraints: No more than 2 sessions per week, 20 minutes each; avoid complex calculations; explain terms in everyday language the first time they appear.
    5. Output: A Markdown table with columns: Week / Topic / Core Question / Activity / Materials / Observation Point.

    A table output is a key design choice. A table turns the plan into an object that can be checked off and annotated, allowing teachers to quickly locate the parts that need replacing across “week—objective—assessment point” instead of reading through prose.

    2.2 Material Generation: Examples, Analogies, and Misconception Lists

    The strength of generative models in producing teaching materials is “variant generation”: offering multiple analogies for the same concept and marking the boundary where each analogy breaks down. For example, when using the “solar system—planetary orbits” analogy for atomic structure, students should also be told that the analogy does not hold on the point that “electrons do not move along fixed orbits.” Asking the model to output a three-part structure of “analogy + scope of applicability + failure point” can significantly reduce the chance that misconceptions become entrenched.

    2.3 Tiering and Differentiation

    For the same knowledge point, the model can generate three tiers of tasks—foundational, advanced, and transfer—each with predictions of common errors. The focus of the teacher’s review is not whether the text reads smoothly, but whether the objectives align with the curriculum standard, whether the difficulty gradient genuinely exists, and whether the assessment points are observable.

    3. The Student’s View: From Passive Reception to Self-Directed Inquiry

    3.1 Self-Directed Querying and Concept Reconstruction

    The quality of student questions determines the quality of the output. Students can be trained to ask questions in a three-part structure of “known—unknown—desired depth of explanation,” and to require the model to first give a one-sentence definition, then an example, and finally a counterexample. Counterexamples are especially important for establishing the boundaries of a concept.

    3.2 Self-Testing and a Feedback Loop

    Take balancing chemical equations as an example. The model can generate questions in batches and provide step-by-step feedback:

    1. Create 5 junior high school chemistry equation-balancing problems, increasing in difficulty.
    2. Requirements: Give only the problems first; wait for my answers before grading them one by one;
    3. when grading, point out the specific error type (element not conserved / coefficients not in simplest form / missing state symbols) and give a one-step hint rather than the direct answer.

    “Answer first, evaluate later” and “hints rather than answers” are two important constraints that prevent assessment from degenerating into copying answers.

    3.3 Socratic Tutoring

    When the model plays the role of a tutor, it should be required to “ask only one question at a time, never give conclusions directly, and provide the minimal hint when the student gets stuck twice in a row.” Such constraints turn the model from an answer generator into a scaffold for thinking.

    4. Implementation Architecture: From Prompts to an Operable Teaching Assistant

    To productize the uses above, a layered architecture is recommended, with each layer built on common industry capability categories:

    • Access layer: uniformly wrap sessions and role templates, shielding differences between underlying models;
    • Prompt and template layer: manage roles, constraints, and output modes as configuration, with support for versioning and canary rollout;
    • Knowledge layer: apply retrieval augmentation to curriculum standards, textbooks, and school-specific question banks, with answers required to include cited snippets;
    • Safety layer: filter both input and output, de-identify minors’ personal information, and block sensitive topics;
    • Evaluation layer: sampled human review plus automated metrics (format compliance rate, citation hit rate, refusal accuracy);
    • Observability layer: a logging service records the call chain, with monitoring and alerting covering latency, failure rate, and the proportion of anomalous content.

    Illustrative server-side validation logic:

    1. def validate(plan_text: str, rubric: dict) -> dict:
    2. checks = {
    3. "table_format": plan_text.strip().startswith("|"),
    4. "week_count": plan_text.count("|") >= rubric["min_rows"] * 6,
    5. "has_objective": "目标" in plan_text,
    6. "has_eval": "观察点" in plan_text or "评价" in plan_text,
    7. }
    8. return {"passed": all(checks.values()), "detail": checks}

    In engineering practice, “format validation” should be placed upfront as a hard gate, while “content quality” is handled by human spot checks. The two cannot replace each other.

    5. Risks and Governance: The Part That Cannot Be Skipped

    • Hallucination and factual errors: the model may generate plausible but incorrect conclusions, so textbooks and retrieval evidence must be the standard, and key conclusions must be traceable.
    • Privacy and compliance: student names, grades, and behavioral data should be collected minimally and de-identified, and the handling of minors’ data must comply with local regulations.
    • Assessment fairness: AI-generated content should not enter the scoring process directly; the scoring authority, weights, and appeal channel must be clearly defined.
    • Dependence and mental laziness: constrain usage with “hints, not answers” and “leave a process trail,” and preserve opportunities for handwriting and oral expression.
    • Teacher upskilling: training should shift from tool operation to prompt design, result review, and breaking down teaching objectives.

    6. Conclusion

    The core change generative AI brings to the classroom is reducing the marginal cost of “customized content” to nearly zero, turning personalized education from an idea into an executable process. The real dividing line lies not in how strong the model is, but in whether an engineering loop of templated prompts, evidence-based answers, and observable, reviewable processes has been established. Baidu AI Cloud’s combination of capability categories such as general large-model services, retrieval augmentation, and logging and monitoring provides an optional engineering foundation for building such teaching assistants, but the authority over instructional design and assessment should remain firmly in the hands of teachers.