You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* type `?object` or `help(object)` to get information about an object
197
+
*[Python documentation][python-docs]
198
+
*[Pandas documentation][pandas-docs]
199
+
* Search the internet:
200
+
paste the last line of your error message or the word "python" and a short description of what you want to do into your favourite search engine
201
+
and you will usually find several examples where other people have encountered the same problem and came looking for help.
202
+
*[StackOverflow](https://stackoverflow.com/questions) can be particularly helpful for this: answers to questions are presented as a ranked thread ordered according to how useful other users found them to be.
203
+
Search using the `[python]` tag.
204
+
Most questions have already been answered, but the challenge is to use the right words in the search to find the answers: [https://stackoverflow.com/questions/tagged/python?tab=Votes][so-python]
205
+
***Take care:** copying and pasting code written by somebody else is risky unless you understand exactly what it is doing!
206
+
* ask somebody "in the real world".
207
+
If you have a colleague or friend with more expertise in Python than you have, show them the problem you are having and [ask them for help](#asking-for-help).
208
+
During this workshop, don't hesitate to talk to your neighbour, compare your answers, and ask for help.
209
+
You might also be interested in organizing regular meetings following the workshop to keep learning from each other.
210
+
* Sometimes, the act of articulating your question can help you to identify what is going wrong.
211
+
This is known as ["rubber duck debugging"](https://en.wikipedia.org/wiki/Rubber_duck_debugging) among programmers.
214
212
215
213
### Asking for help
216
214
@@ -228,17 +226,50 @@ provide the small one with the description of your problem. When appropriate, tr
228
226
you are doing so even people who are not in your field can understand the question. For instance,
229
227
instead of using a subset of your real dataset, create a small (3 columns, 5 rows) generic one.
230
228
231
-
### Where to ask for help?
232
-
233
-
- The person sitting next to you during the workshop. Don't hesitate to talk to your neighbor during
234
-
the workshop, compare your answers, and ask for help. You might also be interested in organizing
235
-
regular meetings following the workshop to keep learning from each other.
236
-
- Your friendly colleagues: if you know someone with more experience than you, they might be able and
237
-
willing to help you.
238
-
-[Stack Overflow][so-python]: if your question hasn't been answered before and is well crafted,
239
-
chances are you will get an answer in less than 5 min. Remember to follow their guidelines on how to
240
-
ask a good question.
241
-
-[Python mailing lists][python-mailing-lists]
229
+
### Generative AI
230
+
231
+
::::::::::::::::::::::::::::: instructor
232
+
233
+
### Choose how to teach this section
234
+
The section on generative AI is intended to be concise but Instructors may choose to devote more time to the topic in a workshop.
235
+
Depending on your own level of experience and comfort with talking about and using these tools, you could choose to do any of the following:
236
+
237
+
* Explain how large language models work and are trained, and/or the difference between generative AI, other forms of AI that currently exist, and the limits of what LLMs can do (e.g., they can't "reason").
238
+
* Demonstrate how you recommend that learners use generative AI.
239
+
* Discuss the ethical concerns listed below, as well as others that you are aware of, to help learners make an informed choice about whether or not to use generative AI tools.
240
+
241
+
This is a fast-moving technology.
242
+
If you are preparing to teach this section and you feel it has become outdated, please open an issue on the lesson repository to let the Maintainers know and/or a pull request to suggest updates and improvements.
243
+
244
+
::::::::::::::::::::::::::::::::::::::::
245
+
246
+
It is increasingly common for people to use _generative AI_ chatbots such as ChatGPT to get help while coding.
247
+
You will probably receive some useful guidance by presenting your error message to the chatbot and asking it what went wrong.
248
+
However, the way this help is provided by the chatbot is different.
249
+
Answers on StackOverflow have (probably) been given by a human as a direct response to the question asked.
250
+
But generative AI chatbots, which are based on an advanced statistical model, respond by generating the _most likely_ sequence of text that would follow the prompt they are given.
251
+
252
+
While responses from generative AI tools can often be helpful, they are not always reliable.
253
+
These tools sometimes generate plausible but incorrect or misleading information, so (just as with an answer found on the internet) it is essential to verify their accuracy.
254
+
You need the knowledge and skills to be able to understand these responses, to judge whether or not they are accurate, and to fix any errors in the code it offers you.
255
+
256
+
In addition to asking for help, programmers can use generative AI tools to generate code from scratch; extend, improve and reorganise existing code; translate code between programming languages; figure out what terms to use in a search of the internet; and more.
257
+
However, there are drawbacks that you should be aware of.
258
+
259
+
The models used by these tools have been "trained" on very large volumes of data, much of it taken from the internet, and the responses they produce reflect that training data, and may recapitulate its inaccuracies or biases.
260
+
The environmental costs (energy and water use) of LLMs are a lot higher than other technologies, both during development (known as training) and when an individual user uses one (also called inference). For more information see the [AI Environmental Impact Primer](https://huggingface.co/blog/sasha/ai-environment-primer) developed by researchers at HuggingFace, an AI hosting platform.
261
+
Concerns also exist about the way the data for this training was obtained, with questions raised about whether the people developing the LLMs had permission to use it.
262
+
Other ethical concerns have also been raised, such as reports that workers were exploited during the training process.
263
+
264
+
**We recommend that you avoid getting help from generative AI during the workshop** for several reasons:
265
+
266
+
1. For most problems you will encounter at this stage, help and answers can be found among the first results returned by searching the internet.
267
+
2. The foundational knowledge and skills you will learn in this lesson by writing and fixing your own programs are essential to be able to evaluate the correctness and safety of any code you receive from online help or a generative AI chatbot.
268
+
If you choose to use these tools in the future, the expertise you gain from learning and practising these fundamentals on your own will help you use them more effectively.
269
+
3. As you start out with programming, the mistakes you make will be the kinds that have also been made -- and overcome! -- by everybody else who learned to program before you.
270
+
Since these mistakes and the questions you are likely to have at this stage are common, they are also better represented than other, more specialised problems and tasks in the data that was used to train generative AI tools.
271
+
This means that a generative AI chatbot is _more likely to produce accurate responses_ to questions that novices ask, which could give you a false impression of how reliable they will be when you are ready to do things that are more advanced.
0 commit comments