Codiqo

Understanding AI · lesson 49 of 60 · about 5 minutes

Asking Clearly

A chatbot only knows what you tell it. Learn to ask in a way that gets a useful answer first time.

What you'll learn

  • Spot what's missing from a vague request
  • Add the goal, the details and the format you want
  • Improve an answer by following up

Vague in, vague out

Help me with my essay could mean anything. The chatbot has to guess, and a guess gives you a generic answer.

A clear request says three things: what you want (check my essay's paragraph structure), the details that matter (it's for a history class, 500 words, about the Romans) and the form you'd like (three bullet points I can act on).

It's a conversation

You don't have to get it perfect first time. If the answer isn't right, say what to change: shorter, simpler, with an example, for a 12-year-old. Each follow-up adds to the context the chatbot reads.

A quick checklist for a request. `in` checks whether a word appears in the text.

request = "Explain photosynthesis for a 12-year-old in 3 bullet points"
checks = ["photosynthesis", "12-year-old", "bullet"]
for word in checks:
    print(word, word in request)

Output

photosynthesis True
12-year-old True
bullet True

Tip

If an answer misses the mark, say what to change instead of starting again.

Now try it yourself

This lesson is free in Codiqo, with 6 questions on what you just read. You can only learn to code by writing code, so it ends with a short program you write yourself, which we run and check straight away.