Session 1 · Generative AI: Foundations and Applications · TCE
Runs entirely in your browser (Google Colab). Any laptop or lab PC works — nothing to install, no GPU, no payment. See
ZERO-SETUP. 50 minutes · pairs (both partners run everything) · Goal: your code talks to a frontier AI model
Pairs: both partners create a key. One drives per part; swap at each checkpoint.
AI coding assistants (Copilot, ChatGPT, Gemini) are allowed and encouraged in every lab. One rule: your eval set judges their code too.
If you completed the pre-class access check, continue with your own key. If not, ask the instructor to confirm live access before spending time debugging account setup.
models.list()) fails, create a new key — Google rejects old “Standard” keys since Sep 2026.Stuck after 5 minutes (college account blocked, phone verification loop)? Stop and tell the instructor. Every notebook has an offline path — set
MOCK = Truein Cell 2 only when the instructor says so (canned answers, no API) — or follow the instructor-controlled demonstration; do not share keys or create extra accounts to bypass the problem.
session_1_lab.ipynb).ask() helper that retries on a 429 rate limit).✓ Checkpoint 1: the notebook prints a response written by Gemini. Read it out loud to your partner.
Cell 4 runs all five prompts in one loop (one ask() call each). Read every output, then write one line per prompt in the notebook’s observation cell: what was good, what was off?
| # | Skill | Prompt |
|---|---|---|
| 1 | Explain | “Explain how UPI works to a 10-year-old, in 5 sentences.” |
| 2 | Summarize | “Summarize the plot of Ponniyin Selvan in exactly 3 bullet points.” |
| 3 | Translate | “Translate to formal Tamil: ‘The exam has been postponed to next Monday.’” |
| 4 | Extract | “Extract name, degree, year as JSON from: ‘Hi, I’m Priya, third year BE CSE at TCE.’” |
| 5 | Roleplay | “You are a strict interviewer at a product company. Ask me one DSA question, wait for my answer.” |
✓ Checkpoint 2: all 5 ran; you wrote 5 one-line observations.
Pick one prompt from Part C (or write your own). Run the same text on:
Blocked on the college network or no account? Use your phone, or compare your default
gemini-flash-lite-latestagainstgemini-flash-latestviaask(prompt, model=...)— same lesson, no login. The flash alias now thinks before it answers, so time both: the same prompt should come back slower and more verbose from flash, and that gap is the lesson.
Fill this table (also in the notebook):
| Gemini | ChatGPT | Third model | |
|---|---|---|---|
| Length / format | |||
| Tone / personality | |||
| Accuracy issues? | |||
| Which would you ship to a user? |
✓ Checkpoint 3 (show instructor): your printed Gemini response + the one difference that surprised you most.
Part E is the hand-off to Lab 2 — protect it. Sessions run back-to-back, so do this now, before the break, even if Part D was cut:
Pick one subject you know cold — DSA, cricket stats, Tamil cinema, Ilaiyaraaja discography, your hometown, anything. In a text file, write 10 questions, each with a one-word or one-number answer — a name, a year, a score. Not a sentence. Make them details only a fan would know — deep cuts, not headlines. Keep it open — this is your ammunition for Session 2’s lie-detector lab, where you’ll measure how often the AI gets your subject right.
temperature=0.0 three times, then temperature=1.5 three times. What changed? (temperature is deprecated on Gemini 3.x but still accepted — if the two runs look identical, that is the finding.)Day 2 starts with “chat with your own notes” (RAG). Put 2–3 documents you actually care about on your laptop or Drive: lecture notes, a textbook chapter PDF, your own study notes. Your Day 2 apps are only as interesting as the documents you bring.