HagiCode Fullstack

Défi : ajouter une fonction d’IA à une application précédente

Draft: this lesson is an outline and will be expanded.

You now repeat the whole course on your own, with a different app and a different feature. No example is given this time. You finish with a second app that has a safe, tested AI feature.

What you will do

  1. Choose a different earlier app from this series, and a feature kind you did not use yet: summarising, answering questions or classifying.
  2. Write the one-sentence description of the feature.
  3. Write the feature brief, including at least three things it must never do and what happens on failure.
  4. Write at least ten test inputs with accepted answers before you build anything.
  5. Ask your assistant to add the first version in small steps. Run it, test it and save a checkpoint after each step that works.
  6. Put the key in a private place, set a spending limit and add limits on how often and how much text the feature accepts.
  7. Run your test list. Improve the feature until you are happy with the score, and keep only changes that do not make it worse.
  8. Write down what you would do differently next time, in three lines.

Note: model services differ from country to country and region to region. Use a service you can reach and are allowed to use, and check its own pages for current choices and costs.

Check yourself

  • The second app has a working AI feature of a different kind from your first.
  • The brief and the test list were written before the feature was built.
  • The key, the spending limit and the input limits are in place.
  • You finished without copying from an earlier lesson’s steps line by line.