Посмотрите готовую функцию
Draft: this lesson is an outline and will be expanded.
In this course you add one AI feature to a small app. An AI feature is a part of an app where a computer program called a model reads some text and writes a useful answer. In this lesson you only look at a finished example and decide which feature you want to build. You finish with one sentence that describes your feature.
Three kinds of feature are common in small apps. Summarising turns a long text into a few lines. Answering questions lets a person ask something about their own notes or documents. Classifying sorts items into groups, such as marking each message as urgent or not urgent.
What you will do
- Open the finished example your course provides. It is a small app with one AI feature inside it.
- Use the feature at least three times with different text. Write down what you typed and what came back.
- Note one answer that was good and one that was weak or wrong. Every AI feature has both, and you will learn to measure this later in the course.
- Choose which of the three kinds of feature you want to add: summarising, answering questions or classifying.
- Choose which of your earlier apps will receive the feature. A small app that already works is the best choice.
- Ask your AI assistant to explain in plain words how the example uses the model, and read the answer. You do not need to understand every detail, only the idea: the app sends text to the model and shows what comes back.
Note: model services are not available in every country or region. Before you go on, check that you can reach a service you are allowed to use. If your usual choice is blocked where you live, pick another one now.
Check yourself
- You used the finished example and wrote down at least one good and one weak answer.
- You can say your feature in one sentence, for example “Summarise each note in two lines”.
- You know which earlier app will receive the feature.
- You have a model service you can reach from your computer.