Skip to content

Commit 66a0bda

Browse files
committed
markdown source builds
Auto-generated via `{sandpaper}` Source : 5962f7f Branch : main Author : Jose Niño <72319858+josenino95@users.noreply.github.com> Time : 2025-05-27 12:21:47 +0000 Message : Adding section on using GenAI for getting help (#647)
1 parent 5fe0dfd commit 66a0bda

2 files changed

Lines changed: 48 additions & 3 deletions

File tree

01-starting-with-data.md

Lines changed: 47 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -378,7 +378,7 @@ age <- age - 20
378378

379379
::::::::::::::::::::::::::::::::::::::::::::::::::
380380

381-
### Manipulating Data
381+
## Manipulating Data
382382

383383
Now that our data are loaded into R, we can start doing things with them.
384384
First, let's ask what type of thing `dat` is:
@@ -915,7 +915,7 @@ apply(dat[, seq(2, 40, by = 2)], 2, mean)
915915

916916
::::::::::::::::::::::::::::::::::::::::::::::::::
917917

918-
### Plotting
918+
## Plotting
919919

920920
The mathematician Richard Hamming once said, "The purpose of computing is insight, not numbers," and the best way to develop insight is often to visualize data.
921921
Visualization deserves an entire lecture (or course) of its own, but we can explore a few of R's plotting features.
@@ -980,6 +980,51 @@ plot(sd_day_inflammation)
980980

981981
::::::::::::::::::::::::::::::::::::::::::::::::::
982982

983+
984+
## Generative AI Help
985+
986+
::::::::::::::::::::::::::::: instructor
987+
988+
### Choose how to teach this section
989+
The section on generative AI is intended to be concise but Instructors may choose to devote more time to the topic in a workshop.
990+
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:
991+
992+
* 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").
993+
* Demonstrate how you recommend that learners use generative AI.
994+
* 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.
995+
996+
This is a fast-moving technology.
997+
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.
998+
999+
::::::::::::::::::::::::::::::::::::::::
1000+
1001+
It is increasingly common for people to use _generative AI_ chatbots such as ChatGPT to get help while coding.
1002+
You will probably receive some useful guidance by presenting your error message to the chatbot and asking it what went wrong.
1003+
However, the way this help is provided by the chatbot is different.
1004+
Answers on StackOverflow have (probably) been given by a human as a direct response to the question asked.
1005+
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.
1006+
1007+
While responses from generative AI tools can often be helpful, they are not always reliable.
1008+
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.
1009+
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.
1010+
1011+
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.
1012+
However, there are drawbacks that you should be aware of.
1013+
1014+
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.
1015+
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.
1016+
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.
1017+
Other ethical concerns have also been raised, such as reports that workers were exploited during the training process.
1018+
1019+
**We recommend that you avoid getting help from generative AI during the workshop** for several reasons:
1020+
1021+
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.
1022+
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.
1023+
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.
1024+
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.
1025+
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.
1026+
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.
1027+
9831028
:::::::::::::::::::::::::::::::::::::::: keypoints
9841029

9851030
- Use `variable <- value` to assign a value to a variable in order to record it in memory.

md5sum.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"LICENSE.md" "e94126b93e27bae014999c2e84ee93f8" "site/built/LICENSE.md" "2025-05-06"
44
"config.yaml" "c198bba3496d5a77c7b4ab59e81194f8" "site/built/config.yaml" "2025-05-06"
55
"index.md" "aefbc21b351130c07c6a7b34cac41c90" "site/built/index.md" "2025-05-06"
6-
"episodes/01-starting-with-data.Rmd" "5654bf457280d6e905ec25c6ff210ac2" "site/built/01-starting-with-data.md" "2025-05-06"
6+
"episodes/01-starting-with-data.Rmd" "b167b9fc1a052f0a5cd7ed0c939a9267" "site/built/01-starting-with-data.md" "2025-05-27"
77
"episodes/02-func-R.Rmd" "60d24765203e273cb1e31f6c9e8d598e" "site/built/02-func-R.md" "2025-05-06"
88
"episodes/03-loops-R.Rmd" "8aa172bf44b1509e796ccf19aa925acd" "site/built/03-loops-R.md" "2025-05-06"
99
"episodes/04-cond.Rmd" "dfa84134d1e6988cdb123703e1f301b3" "site/built/04-cond.md" "2025-05-06"

0 commit comments

Comments
 (0)