Skip to content

Lab 2: Ground it, RAG by hand (dial 2)

Time: 6 min · Model: Haiku · Messages: 1 · Goal: make the AI answer only from your text, quote it, and admit when the answer is not in the text. This is also the "review AI-generated content" exercise.

Steps

  1. Click New chat (Haiku).
  2. Copy the whole prompt below (policy text included) and paste it. Press Enter.

    Answer ONLY from the policy below. For each question, quote the exact sentence you used. If the answer is not in the text, write "Not in the text" and tell me what to ask HR. Keep the whole answer under 120 words.
    
    POLICY:
    Northwind Office Equipment Policy (v2, March). Eligible staff may claim one monitor, one keyboard and one mouse every 3 years. Maximum budget: 250 euro per person. Claims must be submitted through the Facilities portal within 30 days of purchase, with an itemised receipt. Chairs are not covered; request an ergonomic assessment from HR instead. Equipment bought without an itemised receipt will not be reimbursed. Part-time staff (under 20 hours per week) may claim half of the maximum budget. Laptops are issued by IT and cannot be claimed.
    
    QUESTIONS:
    1. How often can I claim a monitor?
    2. Can a colleague working 15 hours a week claim 250 euro?
    3. Does the policy cover standing desks?
    
  3. Check each answer against the text:

    • Did it quote a sentence?
    • Question 3: did it say "Not in the text", or did it invent an answer?
  4. Type your finding in the course chat: "Q3: it said ... / it invented ...".

You should see

Q1: every 3 years. Q2: no, part-time staff under 20 hours may claim half, so 125 euro. Q3: "Not in the text" (chairs are mentioned, standing desks are not), with a suggestion to ask HR.

If something goes wrong

If the AI answers Q3 with a confident guess, that is a hallucination. Use it as the lesson: grounding plus "say when it is not in the text" reduces it, but you still verify.

Greek version (ελληνικά)

Αντίγραφο του κειμένου: policy-el.txt.

Απάντησε ΜΟΝΟ από την πολιτική που ακολουθεί. Για κάθε ερώτηση παράθεσε την ακριβή πρόταση που χρησιμοποίησες. Αν η απάντηση δεν υπάρχει στο κείμενο, γράψε «Δεν αναφέρεται στο κείμενο» και πες μου τι να ρωτήσω το HR. Η συνολική απάντηση να είναι κάτω από 120 λέξεις.

ΠΟΛΙΤΙΚΗ:
Πολιτική Εξοπλισμού Γραφείου της Northwind (έκδ. 2, Μάρτιος). Οι δικαιούχοι εργαζόμενοι μπορούν να διεκδικήσουν μία οθόνη, ένα πληκτρολόγιο και ένα ποντίκι κάθε 3 χρόνια. Μέγιστος προϋπολογισμός: 250 ευρώ ανά άτομο. Τα αιτήματα υποβάλλονται μέσω της πύλης Facilities εντός 30 ημερών από την αγορά, με αναλυτική απόδειξη. Οι καρέκλες δεν καλύπτονται· ζητήστε εργονομική αξιολόγηση από το HR. Εξοπλισμός που αγοράστηκε χωρίς αναλυτική απόδειξη δεν αποζημιώνεται. Οι εργαζόμενοι μερικής απασχόλησης (κάτω από 20 ώρες την εβδομάδα) μπορούν να διεκδικήσουν το μισό του μέγιστου προϋπολογισμού. Οι φορητοί υπολογιστές χορηγούνται από το IT και δεν διεκδικούνται.

ΕΡΩΤΗΣΕΙΣ:
1. Πόσο συχνά μπορώ να διεκδικήσω οθόνη;
2. Μπορεί συνάδελφος που εργάζεται 15 ώρες την εβδομάδα να διεκδικήσει 250 ευρώ;
3. Καλύπτονται τα γραφεία όρθιας εργασίας (standing desks);

Key idea

This is RAG by hand: retrieve the right text (you did it by pasting), augment the prompt with it, and generate an answer that points to its source. Company systems do the same automatically with a search over thousands of documents.

Other assistants

Gemini, ChatGPT, Copilot and abacus.ai follow "answer only from this text" instructions in the same way. Several also let you attach files or add a workspace so you do not paste each time.