Prompt engineering: de kunst van het leren communiceren met AI (Juni 2023)Thomas Winters
Deze talk werd gebracht aan de VRT op 23 juni 2023 door Thomas Winters.
De presentatie leert een basis aan prompt engineering technieken voor ChatGPT en GPT-4, alsook voor afbeeldinggenerators zoals DALL-E, StableDiffusion & Midjourney
This talk is about using AI as your creative partner, both for text as well as images.
It was presented by Thomas Winters on the 14th of February 2023 to the VRT Creative Lab
Op 30 april 2024 heb ik een webinar verzorgd voor studenten van de postgraduaat Onderwijstechnoloog van de Vlaamse Hogeschool UCLL, over het gebruik van (generatieve) AI binnen het onderwijs.
240409 (WR) v1 ROCMNL De kracht van generatieve AI voor en in het onderwijs.pdfWilfredRubens.com
Op 16 april mocht ik weer eens een workshop verzorgen over generatieve AI en onderwijs. Dit keer bij een team van het Gezondheidszorgcollege van ROC Midden-Nederland in Amersfoort.
In het kader van de FCe Postbachelor opleiding e-Learning heb ik op 5 september 2023 een webinar verzorgd over activerende didactiek en online en blended leren.
Prompt engineering: de kunst van het leren communiceren met AI (Juni 2023)Thomas Winters
Deze talk werd gebracht aan de VRT op 23 juni 2023 door Thomas Winters.
De presentatie leert een basis aan prompt engineering technieken voor ChatGPT en GPT-4, alsook voor afbeeldinggenerators zoals DALL-E, StableDiffusion & Midjourney
This talk is about using AI as your creative partner, both for text as well as images.
It was presented by Thomas Winters on the 14th of February 2023 to the VRT Creative Lab
Op 30 april 2024 heb ik een webinar verzorgd voor studenten van de postgraduaat Onderwijstechnoloog van de Vlaamse Hogeschool UCLL, over het gebruik van (generatieve) AI binnen het onderwijs.
240409 (WR) v1 ROCMNL De kracht van generatieve AI voor en in het onderwijs.pdfWilfredRubens.com
Op 16 april mocht ik weer eens een workshop verzorgen over generatieve AI en onderwijs. Dit keer bij een team van het Gezondheidszorgcollege van ROC Midden-Nederland in Amersfoort.
In het kader van de FCe Postbachelor opleiding e-Learning heb ik op 5 september 2023 een webinar verzorgd over activerende didactiek en online en blended leren.
Beter leren praten met Artificiële IntelligentieThomas Winters
Deze presentatie werd gegeven op 12 november 2022 op de Nacht van de Vrijdenker in de Vooruit in Gent.
Het gaat over de recentste generatie artificiele intelligentie zoals GPT-3 en DALL-E, en hoe je hiertegen best praat (prompt engineering). Daarna worden enkele hulpmiddelen aangereikt om AI te ontmaskeren.
Op 6 en 17 juli 2023 heb ik voor een workshop over ChatGPT (en aanverwante technologieën) verzorgd voor medewerkers van Schouten en Nelissen, één van de bekendste opleiders van Nederland.
Signaleren en analyseren van verschillen les 2Gerard Dummer
Deze presentatie hoort bij les twee van thema 5 voor studenten van Hogeschool Domstad. In deze les kijken we naar Meervoudige Intelligentie en de mogelijkheden van ICT. We kijken ook naar de Digitale taxonomie van Bloom. Tot slot kijken we naar webquests. We leggen een link tussen deze drie onderwerpen.
In het kader van de FCe Postbachelor opleiding e-Learning heb ik op 19 april 2022 een virtuele klas-sessie verzorgd over activerende didactiek en leertechnologie.
Niet onderhoudbare software in 10 makkelijke stappenRick Beerendonk
Ontwikkelde software eindigt vaker dan ons lief is in moeilijk te onderhouden code en een minder productieve organisatie. Ondanks goede intenties blijken simpele wensen moeilijker te implementeren dan nodig. Er ontstaan meer problemen dan verwacht. In het begin ging het allemaal nog zo snel, makkelijk en foutloos. Waar ging het mis? In deze sessie gaan we die vraag beantwoorden door onderscheid te maken tussen wat makkelijk lijkt en wat eenvoudig is. We behandelen bewezen technieken alsmede veelbelovende ontwikkelingen. Uiteraard kijken we verder dan het coderen, want software ontwikkeling blijft mensenwerk.
230920 (WR) v1 ChatGPT en sportbedrijf Tilburg publiek.pdfWilfredRubens.com
Op 28 september 2023 heb ik een workshop verzorgd voor medewerkers van het sportbedrijf van de gemeente Tilburg. We zijn ingegaan op de invloed van generatieve AI-applicaties zoals ChatGPT voor hun werkzaamheden.
In 7 stappen van een idee voor een animatie tot publicatie, gericht op docenten in alle onderwijsniveaus. Ze zijn algemeen van toepassing, ongeacht de software die je gebruikt. Met een korte toelichting per stap.
TorfsBot or Not? Evaluating User Perception on Imitative Text Generation (CLI...Thomas Winters
This talk was presented by Thomas Winters at the 33rd Computational Linguistics in the Netherlands conference.
Abstract:
Mimicking an individual's writing style using automated text generation approaches presents a challenge in determining the optimal level of imitation versus exaggeration. This study investigates the believability and user interaction of a text generator employing Markov models and dynamic templates in comparison to source data. Using the TorfsBot Twitterbot, which emulates the writing style of the Belgian professor Rik Torfs, we developed a secondary Twitterbot, \"TorfsBot or Not?”, that conducted daily polls asking users to identify whether a tweet originated from Rik Torfs or TorfsBot. The study collected 43K votes from approximately 500 polls. The findings reveal that participants correctly identified the source of the tweets 71% of the time, with majority votes inaccurately attributing the source in 14% of the polls. Furthermore, we observed a positive correlation between the number of interactions on the source tweet and the perceived believability that the tweet originated from Rik Torfs. Our results suggest that even relatively simple text generation models can approximately replicate a target's writing style, and that a closer approximation to the source material may positively influence user engagement.
More Related Content
Similar to Prompt engineering: De kunst van het leren communiceren met AI
Beter leren praten met Artificiële IntelligentieThomas Winters
Deze presentatie werd gegeven op 12 november 2022 op de Nacht van de Vrijdenker in de Vooruit in Gent.
Het gaat over de recentste generatie artificiele intelligentie zoals GPT-3 en DALL-E, en hoe je hiertegen best praat (prompt engineering). Daarna worden enkele hulpmiddelen aangereikt om AI te ontmaskeren.
Op 6 en 17 juli 2023 heb ik voor een workshop over ChatGPT (en aanverwante technologieën) verzorgd voor medewerkers van Schouten en Nelissen, één van de bekendste opleiders van Nederland.
Signaleren en analyseren van verschillen les 2Gerard Dummer
Deze presentatie hoort bij les twee van thema 5 voor studenten van Hogeschool Domstad. In deze les kijken we naar Meervoudige Intelligentie en de mogelijkheden van ICT. We kijken ook naar de Digitale taxonomie van Bloom. Tot slot kijken we naar webquests. We leggen een link tussen deze drie onderwerpen.
In het kader van de FCe Postbachelor opleiding e-Learning heb ik op 19 april 2022 een virtuele klas-sessie verzorgd over activerende didactiek en leertechnologie.
Niet onderhoudbare software in 10 makkelijke stappenRick Beerendonk
Ontwikkelde software eindigt vaker dan ons lief is in moeilijk te onderhouden code en een minder productieve organisatie. Ondanks goede intenties blijken simpele wensen moeilijker te implementeren dan nodig. Er ontstaan meer problemen dan verwacht. In het begin ging het allemaal nog zo snel, makkelijk en foutloos. Waar ging het mis? In deze sessie gaan we die vraag beantwoorden door onderscheid te maken tussen wat makkelijk lijkt en wat eenvoudig is. We behandelen bewezen technieken alsmede veelbelovende ontwikkelingen. Uiteraard kijken we verder dan het coderen, want software ontwikkeling blijft mensenwerk.
230920 (WR) v1 ChatGPT en sportbedrijf Tilburg publiek.pdfWilfredRubens.com
Op 28 september 2023 heb ik een workshop verzorgd voor medewerkers van het sportbedrijf van de gemeente Tilburg. We zijn ingegaan op de invloed van generatieve AI-applicaties zoals ChatGPT voor hun werkzaamheden.
In 7 stappen van een idee voor een animatie tot publicatie, gericht op docenten in alle onderwijsniveaus. Ze zijn algemeen van toepassing, ongeacht de software die je gebruikt. Met een korte toelichting per stap.
Similar to Prompt engineering: De kunst van het leren communiceren met AI (20)
TorfsBot or Not? Evaluating User Perception on Imitative Text Generation (CLI...Thomas Winters
This talk was presented by Thomas Winters at the 33rd Computational Linguistics in the Netherlands conference.
Abstract:
Mimicking an individual's writing style using automated text generation approaches presents a challenge in determining the optimal level of imitation versus exaggeration. This study investigates the believability and user interaction of a text generator employing Markov models and dynamic templates in comparison to source data. Using the TorfsBot Twitterbot, which emulates the writing style of the Belgian professor Rik Torfs, we developed a secondary Twitterbot, \"TorfsBot or Not?”, that conducted daily polls asking users to identify whether a tweet originated from Rik Torfs or TorfsBot. The study collected 43K votes from approximately 500 polls. The findings reveal that participants correctly identified the source of the tweets 71% of the time, with majority votes inaccurately attributing the source in 14% of the polls. Furthermore, we observed a positive correlation between the number of interactions on the source tweet and the perceived believability that the tweet originated from Rik Torfs. Our results suggest that even relatively simple text generation models can approximately replicate a target's writing style, and that a closer approximation to the source material may positively influence user engagement.
Hoe werken tekstgenerators? (Special Guest in Lieven Scheire's AI voorstelling)Thomas Winters
Deze presentatie werd gegeven door Thomas Winters op 26 mei 2023 in Lieven Scheire's voorstelling over Artificiële Intelligentie.
Meer informatie: https://thomaswinters.be/talk/2023nerdlandfestival-2
Deze presentatie werd gegeven op 27 mei 2023 op het Nerdland Festival door Thomas Winters als onderdeel van de kindershow van Jeroen Baert en Els Aerts.
We visualiseren kinderverhalen nadat ze eerst zin per zin zelf verhalen verzonnen, en tonen hoe AI tegenwoordig zulke tekeningen zelf kan maken. Dan laten we ze verhalen met AI schrijven, en leggen we uit hoe zulke taalmodellen leerden door volgende woorden te voorspellen.
Meer informatie: https://thomaswinters.be/talk/2023nerdlandfestival-3
Deze presentatie was gegeven door Thomas Winters op 27/05/2023 op het Nerdland Festival.
Meer info op https://thomaswinters.be/talk/2023nerdlandfestival
How do you teach computers humor + Text Generators as Creative Partners (May ...Thomas Winters
This guest lecture was given on the 10th of May 2023 at the "Computational Creativity" class of prof. Tim Van de Cruys & on the 16th of May 2023 for the "Humor and Creativity in Language" class by prof. Kurt Feyaerts.
The first part provides an overview on computational humor with a focus on the research work of Thomas Winters.
The second part shows how to generate humor using prompt engineering on GPT models like GPT-4 and ChatGPT.
Hoe schrijven computers zelf tekst? (Kinderlezing)Thomas Winters
Deze kinderlezing over taaltechnologie werd gegeven door Thomas Winters op 26 maart 2023 op ScienceVille te Leuven.
Het had de volgende beschrijving:
Schrijf jij graag verhalen? Improviseer je wel eens hele scènes? Wist je dat computers dat tegenwoordig óók kunnen? Ontdek hoe ze dat kunnen in deze interactieve lezing vol improvisatie en creatief schrijven met artificiële intelligentie!
This talk was presented at "Night of the Prompts" by Thomas Winters on the 21th of December 2022.
The talk contains a brief history of image generators and prompt engineering tricks and applications.
How to Attract & Survive Media Attention as PhDThomas Winters
This talk was given on the 24th of November for the Leuven.AI institute with some tips & tricks for attracting & surviving media attention as a PhD student, based on experiences from Thomas Winters.
How can AI be a creative partner for PR & marketing?Thomas Winters
This talk was given on 15 november 2022 by Thomas Winters at Ketchum to teach them about the capabilities of current creative AI techniques for marketing & PR purposes.
Computational Humor: Can a machine have a sense of humor (2022)Thomas Winters
Can computers have a sense of humor? In this talk, we discuss humor theory, some symbolic humor generation methods and then showcase how prompt engineering can help generate humor automatically.
This talk has been given multiple times by Thomas Winters. This particular version has been personalized for the keynote talk of the postgraduate AI students graduation on the 13th of September 2022.
More information of this talk on https://thomaswinters.be/talk/2022kulak
Thomas Winters en Jeroen Baert speelden "TorfsBot Or Not?" op de Nerdland Openingsnight 2022 voor 1500+ nerds! https://www.nerdlandfestival.be/programma-item/nerdland-opening-night-met-alle-nerdlanders
This slideshow was originally presented by Thomas Winters on the 21th of May 2022 at the ALAN hackaton, where they built an AI actor. More info: https://www.facebook.com/events/1386001341878142
The slideshow shows some techniques that might inspire to create AI-powered theatre robots & generators.
Computational Humor: Can a machine have a sense of humor? (2020)Thomas Winters
Can computers have a sense of humor? In this talk, we discuss some dimensions of computational humor, where the research field stands and showcase some of Thomas Winters' work in this field.
This talk has been given multiple times by Thomas Winters, in particular on the 11th of December 2020 as a DTAI seminar (KU Leuven's Declarative Languages and Artificial Intelligence Research lab)
More information of this talk on https://thomaswinters.be/talk/2020dtai
Abstract: Can a machine have a sense of humor? At first glance, this question may seem paradoxical, given that humor is an intrinsically human trait. By limiting the scope to specific types of jokes and by hand-coding rules for them, researchers generally have been able to create several methods for detecting and generating humor. Recently, large scale pre-trained language models like BERT, GPT-2/GPT-3 and our own Dutch RobBERT model opened the way for learning even better insights into humor. In this talk, we provide an overview of the history of computational humor, discuss several types of humor tasks that have been automated using artificial intelligence, illustrate several useful applications of computational humor and position several of our own research projects in this field.
Humor Workshop: Hoe schrijf je satire? (KU Leugen)Thomas Winters
Hoe schrijf je een mop? Hoe verbeter je een mop? En hoe schrijf je efficiënt satire?
Deze presentatie van Thomas Winters (improvisator en computationele humor onderzoeker) opent de motorkap van humor, om aan te tonen dat humor schrijven wel degelijk een leerbare vaardigheid is. Het leert aan van waar je inspiratie kan halen om een humoristische connectie te verzinnen, enkele basisprincipes om van die connectie een mop te schrijven en hoe je dan die mop kan verbeteren tot een geweldige mop.
De presentatie bevat ook talrijke oefeningen om zelf uit te proberen, om zo je eigen humorvaardigheden aan te scherpen.
Meer informatie over deze presentatie op https://thomaswinters.be/talk/2022veto
Om Thomas Winters uit te nodigen om deze workshop live te geven, kan je contact opzoeken via https://thomaswinters.be/contact
Survival of the Wittiest: Evolving Satire with Language ModelsThomas Winters
This talk was originally presented by Thomas Winters on the 18th of September 2021 at the 12th International Conference on Computational Creativity.
More information can be found on thomaswinters.be/talk/2021iccc
Abstract: Large pre-trained transformer-based language models have revolutionized the field of natural language processing in recent years. While BERT-like models perform exceptionally well for analytical tasks such as classification and regression, their text generation capabilities are usually limited to predicting tokens within a given context. In this paper, we introduce GALMET, a model that generates text by using genetic algorithms with BERT-like language models for evolving text. We use GALMET with the RoBERTa language model to automatically evolve real headlines into more satirical headlines. This is achieved by adapting the masked language head to the headlines domain for the mutation operator and finetuning a regression head to distinguish headlines from satire for the fitness function. We evaluated our system by comparing generated satirical headlines against human-edited headlines and just the fine-tuned masked language head. We found that while humans generally outperform the model, generations by GALMET are also often preferred over human-edited headlines. However, we also found that only using the fine-tuned masked language model gives slightly preferred satire due to generating more readable sentences. GALMET is thus a first step towards a new way of creating text generators using masked language models by transforming text guided by scores from another language model.
Discovering Textual Structures: Generative Grammar Induction using Template T...Thomas Winters
This talk was originally presented by Thomas Winters on the 10th of September 2020 at the 11th International Conference on Computational Creativity (ICCC20).
More information can be found on https://thomaswinters.be/talk/2020iccc
Abstract: Natural language generation provides designers with methods for automatically generating text, e.g. for creating summaries, chatbots and game content. In practise, text generators are often either learned and hard to interpret, or created by hand using techniques such as grammars and templates. In this paper, we introduce a novel grammar induction algorithm for learning interpretable grammars for generative purposes, called Gitta. We also introduce the novel notion of template trees to discover latent templates in corpora to derive these generative grammars. By using existing human-created grammars, we found that the algorithm can reasonably approximate these grammars using only a few examples. These results indicate that Gitta could be used to automatically learn interpretable and easily modifiable grammars, and thus provide a stepping stone for human-machine co-creation of generative models.
Dutch Humor Detection by Generating Negative ExamplesThomas Winters
This talk was originally presented by Thomas Winters on the 20th of November 2020 at the 29th Belgian Dutch Conference on Machine Learning (Benelearn 2020). The conference awarded this presentation the "Best Video Award".
A video of this talk is also available on https://www.youtube.com/watch?v=U1cShms67ec
More information, see https://thomaswinters.be/talk/2020benelearn
Abstract:
Modelling Mutually Interactive Fictional Character Conversational AgentsThomas Winters
This talk was originally presented by Thomas Winters on the 6th of November 2019 at BNAIC19, the 31th Benelux Conference on Artificial Intelligence.
The focus on the talk is about modelling interactive Twitterbots. These are based on the Belgian children TV show Samson & Gert, to create the Samsonbots.
We also show and release our new probabilistic context-free grammar modeling tool called Babbly.
Paper abstract: Conversational agents, such as chatbots and virtual assistants, are typically modelled to have a broad, generic personality, which they employ in their communication with single human beings. However, by framing a conversational agent as existing fictional characters, humans can imagine a shallow agent to have a larger personality than without this framing. Using multiple such agents allows for conversational interactions that help construct stories with or without human intervention, leading to multi-agent human-computer interactive story telling. In this paper, we model six semi-independent Twitterbots based on fictional characters based on the Belgian children’s TV show Samson & Gert, which are mutually interactive with each other as well as with other Twitter users. To achieve this, we first introduce a new language for modelling generative weighted context-free grammars called Babbly and a new framework for easily specifying complex Twitterbot behaviour. We found that these bots were not only well received by users, but also created lots of interesting, unexpected positive interactions. Using fictional characters as framing for conversational agents can thus help achieving interesting personalities and shows potential in interactive computational story telling.
6. Hoe werkt een tekstgenerator?
1. Open smartphone toetsenbord op tekstveld
2. Druk op een voorgestelde auto-complete woord
3. Herhaal 10-tal keer
4. Je hebt een tekst gegenereerd die klinkt zoals jezelf!
Auto-complete telde frequentie van woorden
na vorige woorden in je teksten
En dan is het
mogelijk om de
hoek van de week
8. 1. Telde in alle tweets & columns van Rik Torfs hoe
vaak woord andere woorden volgde
2. Dan neemt het paar willekeurige beginwoorden, en
blijft het woorden die Rik gebruikte kiezen.
“gevolgd door”
4: een
2: zijn
1: iemand
1: acht
Beste,
9. GPT training
Heel het internet
Trainingsproces van paar miljoen $
Beste publieke taalmodel
12. Drie GPT trainingfasen
GPT-3 (2020)
Leerde internet
woord voor woord
nabootsen
InstructGPT (2022)
Leerde om naar
instructies te
luisteren
ChatGPT & GPT-4
(2022-2023)
Leerde instructies
“volgens menselijke
voorkeur” op te
lossen
20. Truc 2: Maak rol duidelijk
(“role-prompting”)
Laat GPT expert nadoen, bv:
You are an expert X with proven
track record on X’. I am looking to Y.
Your task is Z. My first command is …
“localiseert” taak in het model
Meer inspiratie:
https://github.com/f/awesome-chatgpt-prompts
25. Truc 5: Leg denkstappen vooraf uit in voorbeelden
“Few-shot chain-of-
thought”
Geef redenering
tussen “input” en
“output” in
voorbeelden
Extreem krachtige
techniek!
https://platform.openai.com/playground/p/bQDRHNEMLTS7iAcuJbdgoG27?model=text-davinci-003
Invoer
Redenering
Invoer
Invoer
Redenering
Invoer
Invoer
Redenering
Invoer
26.
27. Truc 6: Verplicht ChatGPT
vragen te stellen!
ChatGPT is getraind om direct
te antwoorden
Verplicht het vragen te
stellen!
Bv:
You are an expert X with proven
track record on X’. I am looking to
Y. Your task is Z, while constantly
asking questions to better grasp
what I’m looking for. Do you
understand what I’m saying?
https://www.youtube.com/watch
?v=QmA7S2iGBjk
46. Combineer artiesten (zie midlibrary.io/)
Homer in the style of
Wes Anderson
Homer in the style of
Derek Gores
Homer in the style of
Wes Anderson
& Derek Gores
47. Genereer vanuit schets (img2img)
https://huggingface.co/spaces/huggingface-projects/diffuse-the-rest
Emma Watson
wearing a red
leather jacket
(+Lexica prompt words)
48. Positive: dolphin in sea, in the style of studio
ghibli, trending on artstation, 8k
Negative: uncanny, ugly, poorly drawn,
deformed
Positive: drawing of angy red gnome and fat
antromorphic mushroom humanoid, in the style of
pixar, octane render, beautiful sky background,
vibrant colors, cinematic lighting, bokeh, highly
detailed, trending on artstation, 8k
Negative: uncanny, ugly, poorly drawn
Voor de mensen die Rik Torfs niet kennen:
Professor Kerkelijk Recht
Ex-rector KU Leuven
Maarook: fervent Twitteraar
Op Twitter sinds 2010
Speaks in algemeenheden en boutades
“Vlaams Orakel”
“Koning van de boutade”
GPT-3 tokenizes words to be able to input them as integers in the model.
The tokens are chosen in such a way that common substrings gets assigned their own token. They don't need to make morphological sense: e.g. Affligem.
This increases the number of tokens that can be fed into the limited context window
Stel je voor, je moet een genial opzet bedenken voor een debiele vraag, en alles moet puur hypothetisch beantwoord worden
hyperrealistic stock photography of highly detailed city of Antwerp in cyberpubk sci - fi style by gragory crewdwson and katsuhiro otomo, mike winkelmann with many details by josan gonzalez working at the highly detailed data center by mike winkelmann and lauri greasley hyperrelism photo on dsmc 3 system rendered in blender and octane render
hyperrealistic stock photography of highly detailed city of Antwerp in cyberpubk sci - fi style by gragory crewdwson and katsuhiro otomo, mike winkelmann with many details by josan gonzalez working at the highly detailed data center by mike winkelmann and lauri greasley hyperrelism photo on dsmc 3 system rendered in blender and octane render