Hands of a guy on laptop keyboard

AI Apprenticeship: 10 lessons from building and learning alongside AI

Published on 28 December 2024

AI apprenticeship addresses a growing gap between the rapid advancement and slow adoption of AI technology. A 2023 Gartner survey illustrates this disconnect: while almost 80% of business leaders view AI as a priority, a mere 20% are actually using it effectively. Meanwhile, a EY study shows that 75% of Americans worry about losing their jobs to AI in the near future, and a YouGov survey finds that nearly half of Americans see AI as an existential threat.

The push for new AI laws and treaties by parliamentarians and diplomats only highlights another divide: the gap between governing AI and truly understanding it.

 Book, Comics, Publication, Person, Crowd, People, Face, Head, Audience, Animal, Bird

A lack of understanding of AI could lead to missed opportunities, wasted resources, and even a Luddite-style backlash.

Having spent years observing how society reacts to AI—and delivering AI training—Diplo has designed a unique AI apprenticeship model. It focuses on building practical AI skills, demystifying how AI works, and encouraging deeper reflection on its social impacts.

In the following text, you’ll discover how Diplo’s AI apprenticeship approach was shaped by research and hands-on experience through our 2024 programs. including 10 lessons learned

Why do we use the apprenticeship approach?

AI Apprenticeship pedagogy helps to grasp a mix of deterministic and probabilistic nature of AI. AI is built by scientists and mathematicians following deterministic principles that the law of nature functions in predictable and repeatable ways. However, AI functioning is not deterministic. We experience its probabilistic nature by, for example, getting different answers to the same questions on ChatGPT in a few minutes.

Traditional teaching methods fail to capture AI’s dual – deterministic and probabilistic – nature. They tend to follow a linear path, positioning learners as passive recipients of knowledge. However, AI acts more like a learning mirror, reflecting our cognition, biases, and ideas. Engaging with AI becomes a journey of self-discovery, where learning, unlearning, and experimentation are crucial.

In order to address this teaching challenges, Diplo has been searching for a new approach based on experience in pedagogy and delivering training on AI for the last 6 years.

The result is an AI apprenticeship programme where participants learn about AI by developing AI applications. After internal testing within Diplo, the first public delivery was conducted between October and December 2024, involving 28 diplomats, academics, and business people from all continents, including Vanuatu, Kenya, Switzerland, the UK, Brazil, Venezuela and Mexico.

HOW are apprenticeships run?

The programme follows, in parallel, skill development, knowledge acquisition, and wisdom-nudging. These three treads are kept together around a backbone storyline of developing AI chatbot. Technical and theoretical explanations enrich the main storyline. While engaged in real-world practice, apprentices are provided with learning ‘scaffolding’ by AI experts and supervisors. Ad they progress in AI learning ‘scaffolds’ are progressively withdrawn.  

Practical jump-start

The programme kicks off with the apprentices start developing their AI applications. AI chatbots can be developed in a matter of an hour, a maximum of a day, by creating simple prompts and uploading a basic set of documents of relevance for the topics the AI application covers.

First lesson: Demystification AI by simple and easy development of chatbots.

In 2024 programme apprentices developed AI chatbots on specific topics such as Child Safety in the Metaverse, AI and Trade Diplomacy, and All about ID, to name a few out of 22.

 Page, Text, File, Webpage
AI Apprenticeship space with access to one chatbot

After a quick start, the apprentices continue fine-tuning their chatbots through an enriching set of background documents, assigning different weights to sources, and adjusting prompts. They experience directly AI dynamics: one day to create first chatbot; one month to develop reasonable functional AI; one year to to have AI that fully activates organisational tacit and explicit knowledge.

Second lesson: Easy start of AI but much more efforts to develop useful and effective AI.

As AI continues to evolve, its progress relies not only on technical expertise but also on non-technical factors such as logic, epistemology, and deep knowledge of the relevant domain. In this context, apprentices learn how to address a common misconception among businesses and organizations: treating AI as just another ‘software package’ instead of recognizing it as a transformative tool capable of reshaping processes and operations.

Third lesson: Invest in non-technical aspects of AI.

Here, we faced the first pedagogical challenge of how to reconcile public perception of ‘easy AI’ with much more demanding efforts and craftsmanship to develop effective AI applications.

By grasping this day-month-year perspectives in AI development, apprentices can gather critical skills to help their organisations to save a lot of time and money in dealing with hype and avelange of AI proposals which often offer ‘one day’ solution for funding of ‘one month’ or, even, ‘one year’.

Fourth lesson: Avoid hype, ask right questions when assessing avelange of AI proposals and projects.

Looking under the bonnet

As apprentices develop their chatbots, they gather critical knowledge of core AI concepts from neural networks and vector databases to reinforcement learning…

Algorithm, data, machine learning, neural networks, and other important AI term under the bonnet

Inspired by Feynman’s principle: ‘If you can’t explain it to a six-year-old, you don’t really understand it,’ we try to explain AI by:

  • Breaking down complex ideas into simple concepts
  • Explaining things without using technical jargon
  • Making ideas accessible to anyone, regardless of their background

Apprentices should always start with a simple logical basis of AI and gather gradually more complex terminology and concepts.

Thus, we start by explaining two core AI concepts – patterns and probability – using an example of national flags. Among the set of 193 UN flags, you can find common patterns of African, Pan-Arabic, Pan-Slavic, British and other flags.

Certainty and probability are explained in the way how Greenland chose the flag back in 1984. It was almost certain that Greenland would follow the use of the Nordic cross like all other Nordic countries. However, as explained in the video below, the flag selection committee voted for the Greenland flag with a circle in the centre, showing limits of certainty and power of probability in human or machine decisions.

YouTube player

We use national flags as a visual metaphor—familiar to diplomats who regularly see them at the United Nations and other international gatherings. Of course, other metaphors and explanations can be customized for different professions and contexts.

As apprentices progress in their AI journey, they layer increasingly specialized concepts and terminology on top of a foundational “base camp” of core, logical explanations.

Fifth lesson: Do not be intimidated by complex terminology; insist on clarity and explainability of AI policies and governance.

Follow AI workflow

After understanding the relevance of patterns and probability for AI, we returned to look ‘under the bonnet’ by explaining how apprentices chatbots work. As this schema is complex, we broke it down into simple concepts.

 Electronics, Hardware, Diagram, UML Diagram, Computer Hardware, Network

The first simplification step is to see how LLM would directly answer the question ‘What is diplomacy?’.

Untitled presentation 11

Tokenisation

Computers do not understand text. Thus, our question needs to be converted into numbers in order to be processed by LLM. Each word is converted into tokens by LLM. Tokens are not the same as illustrated bellow.

 

Groc LLM
One of the fastest LLM
5 tokens

AD 4nXeiykDPhdYnVblA0A5B7E5JxdvHQwVzmSYavqTHSgrYgJgQvJi66vj1AAH3i

AD 4nXeGw3 OFHZ6OrSzUfebxo5JSKLBk6yq2Opiv2q7ulHnNYZmmdRuoFLc43INABcgXCuiJNcM6B8NPi rHgsgQvq

Mistral LLM
French open-source LLM platform
6 tokens

AD 4nXcmbK45UqJxqKEvEN7dLqXR yV0tAt043XBpHWdiYmwyqJeFJCMXLSGzZyKj13PSUjiQnTtkVsaVX9OwpUiRBlYnQiYK1Efg pO9w80sJPucZJrnWdK3lBXySrQFWLbRveicP

AD 4nXfj7Nt2MNpigQQ5XRm8a2I5g1qdOfNP2yZvSFe5nWv7z4qsbdL1ATsGucMoeTbRSlGLoOEABOPq6Se8ikMWmyTgp7Drm

Llama 3
Open source platform developed by Meta.
5 tokens

Vectorisation

In the next step, tokens are converted into vectors outlined by floating points. Floating points are for AI, which are latitudes and longitudes for geographical maps. The position of the word ‘diplomacy’ in multidimensional space is determined by the vector that has the following coordinates or floating points:

0.34 | -0.58 | 0.71 | -0.15 | 0.92 | -0.37 | 0.12 | 0.48 | -0.22 | 0.65

Here is a 2D visualization of floating points:

AD 4nXcBQYo1Jk64 KDf4irVSg4BtX2dOcIHl jtMRJaAxB1W9THaCcKik64ONczcDv5QJgzBjMXJSkAWWAQaS0ojEzDFCohuQykBKiLns93t 3MPec21Nig

Floating points are becoming part of negotiations on AI as a way to measure the power of AI models. For example, the EU AI Act uses floating point operations (FLOPs) as one of the key measurements of AI model capabilities.

So far, we have floating points that define vectors for tokens representing our question, ‘What is diplomacy?’. Now, LLM seeks similar vectors, a huge collection of vectors built on training trillions of texts based on books, webinars, and social media feeds. In our example, the most similar vectors generate the answer: ‘Diplomacy is the peaceful resolution of conflicts.’ as visualised below:

What is diplomacy?Diplomacy is the peaceful resolution of conflicts.
AD 4nXfFEF9yKfS7RCSzp5R A2K8XR bGPxAiVdQ47 zv5gO6uF7RkO0Mu5xXv G2ZX8oqI EJzK pj7Lu47EQCMn 9LJjQJaogfHwUOExa9xjOGiB0tDIm8ysSnYn0FPv5j1anz5SAD 4nXd2WxSpwLoewZqgrvyHQIRUTEQTfpmevNAVs 38wCq H 5u9nwMwaiYY3aUmteIMN7V1w7lkEjm 9wkXLkQl

By following how AI chatbots answer questions such as ‘What is diplomacy?’, apprentices grasp critical concepts for participation in AI governance and policy, including neural networks, floating points, and vector databases.

20 key AI concepts of relevance for AI governance and diplomacy

Here we list 20 key concepts that are used in AI parlance, governance, and diplomacy. During 2025, we will work on explaining them to be understandood by six-years-old in accordance to Feynman principle.

  • Neural networks are a system of algorithms that emulate the human brain, enabling the recognition of patterns and executing tasks such as predictions and generating texts. 
  • Natural Language Processing (NLP) is an application of neural networks to effectively comprehend, interpret, and interact with human language.
  • Patterns in AI are the foundational conceptual principle underpinning AI systems’ functionality.
  • Probability in AI is the way AI generates answers and artefacts.
  • An algorithm is a step-by-step set of instructions that tells a computer how to solve a problem or complete a task.
  • Data points are a single piee of information or value, represented in AI models by vectors. 
  • Machine Learning (ML) is a core component of AI where machines improve their task performance through data-driven pattern recognition.
  • Deep learning is a specialised subset of ML that employs multiple layers of algorithms, akin to a complex brain, to extract intricate insights from vast amounts of data.
  • Reinforcement learning is an innovative learning paradigm where computers acquire knowledge through experimentation, receiving rewards or penalties to achieve specific objectives.
  • Supervised learning is a category of ML that involves training models on labelled datasets, where each input is paired with a corresponding correct output.
  • Unsupervised learning is a form of ML that enables computers to learn from unlabeled data, facilitating the discovery of hidden structures or patterns within the data.
  • Weights in AI highlight the relevance of specific data, vectors, nodes and linkages that shape the functioning of AI.
  • Vectors in AI are the way  data is stored and represented in AI. A vector consists of floating points.
  • Floating points are numerical values that outline vectors geometrically.
  • Tokens are numeric representations of words and images.
  • Embedding is a process of converting words (letters) into tokens (numbers).
  • Large Language Models (LLMs) are AI systems trained on massive text datasets to understand and generate human-like language.
  • Attention mechanism is a sophisticated technique that prioritises critical elements of the data, particularly in language tasks, enhancing the model’s understanding of contextual relationships.
  • Transformer models are state-of-the-art neural networks, exemplified by GPT and BERT architectures, that utilise attention mechanisms to achieve superior contextual comprehension in language processing.
  • Explainability is the degree to which humans can understand the workings of an AI model, vital for establishing trust in high-stakes applications. 

Fine-tuning AI: System prompting

Starting from getting answers from general LLM to the question ‘What is diplomacy?’ each apprentice can increase the quality and precision of answers provided by their chatbots by fine-tuning the system through so-called RAG (Retrieval-Augmented Generation), which has two essential elements: systemic prompts and a local knowledge base.

 Computer Hardware, Electronics, Hardware, Diagram, UML Diagram

In this case of answering a question on diplomacy, systemic prompt could be:

Systemic prompt for diplomacy

You are an expert in international relations and diplomacy, tasked with providing insightful and balanced answers to questions on diplomatic matters. Your responses should be well-informed, nuanced, and consider multiple perspectives.

First, review the following background information on diplomacy:

{{SET OF DOCUMENTS}}

When answering questions on diplomacy, follow these guidelines:

  1. Analyze the question carefully, considering its historical, cultural, and geopolitical context.
  2. Draw upon your knowledge of diplomatic history, international relations theories, and current global affairs.
  3. Consider multiple perspectives and potential interpretations of the situation.
  4. Provide a balanced view, acknowledging the complexities and nuances of diplomatic issues.
  5. Support your points with relevant examples or case studies when appropriate.
  6. Avoid taking partisan stances or promoting specific ideologies.
  7. Recognize the potential long-term implications of diplomatic actions or decisions.
  8. When discussing sensitive topics, maintain a respectful and professional tone.

Structure your response as follows:

  1. Begin with a brief introduction that frames the question in its broader context.
  2. Present your main analysis, considering multiple aspects of the issue.
  3. Provide supporting evidence or examples to strengthen your points.
  4. Conclude with a summary of key takeaways or potential implications.

Format your entire response within tags. If you need to think through your response before providing a final answer, use tags to outline your thoughts.

Now, please answer the following question on diplomacy:

{{QUESTION}}

Sixth lesson: Develop cooperation around prompting experience including organisational promp database

Fine-tuning AI: Knowledge base

Additional quality of AI chatbots can be achieved by activating local knowledge stored in document datasets.

 Diagram, UML Diagram, Business Card, Paper, Text

Documents are converted into vector databases according to weights they are assigned to as described below for the set of documents on the Swiss digital foreign policy.

 Page, Text, File

With systemic prompts and documents from the local knowledge base, LLM can generate precise, detailed, and referenced answers to the question ‘What is diplomacy?’.

Seventh lesson: Build AI on local knowledge, experience, and expertise.

Underlying approaches and technologies

Machine learning

So far, we used LLMs without explaining how they are developed. LLMs are trained and developed by using machine learning. The answer to the question ‘what is diplomacy’ was provided by LLM which is developed through machine learning. Most of the current LLMs are developed by unsupervised learning or processing huge amounts of main text and identifying patterns in them (closeness of position of words in the vector database).

The image shows a diagram depicting three kinds of machine learning: supervised learning, unsupervised learning, and reinforcement learning.

Here, we come to policy questions, including data protection and intellectual property of data and knowledge on which LLMs are trained. There are many court cases from the media, music, and entertainment industry. They are likely to accelerate in the coming years.

In addition to unsupervised learning, the other types of learning are gaining momentum. Supervised learning involves training on labelled data, mainly by humans. In the simplest form, the annotators are, for example, helping AI models to learn by identifying cats, dogs, and other visual artefacts. In our example, if you put your thumb up or down for the answer to the question ‘What is diplomacy?’, you do supervised learning as you indicate a signal about the quality of the response. LLM is trained based on this answer.

Reinforcement learning differs from supervised learning as AI learns through trial and error. AI learns from experience rather than from labelled data. One of the best examples of reinforcement learning is the vacuum cleaner. When you first start using it, the robot begins by exploring various paths and patterns to identify obstacles, furniture, and open spaces.

Over time, it learns the most efficient cleaning routes by associating specific movements or patterns with successful cleaning (rewards) while avoiding actions that lead to bumps or inefficiencies (penalties).

WhatsApp Image 2024 11 08 at 19.55.05 eb2ec023

AI weights

Weights are frequently used in AI parlance. They give higher relevance to part of the neural network or document set. Our apprentices developed their chatbot by indicating the relevance of specific background documents as input for providing answers. By deciding on weights, we make our value judgement about what matters more or less for us.

Eight lesson: Focus on weights as they are critical for quality of answers and dealing with biases in transparent ways.

Feedback

Thumbs up/down, weights and any interaction with AI systems provide feedback. Via feedback, we express our knowledge, preferences, and views and train AI systems.

Ninth lesson: Decisions on AI architecture – internal, external or hybrid – impact preservation of knowledge as critical resource of businesses, governments, and organisations.

Philosophy in AI Apprenticeships

AI apprenticeship anchors practical learning in a philosophical context. For example, the creation of prompts is inspired by Socratic inquiry and questioning. In 2024 programme, apprentices engaged in highly reflective and philosophical discusison on AI. Anita Lamprecht wrote a series of 8 posts covering issues such as AI hallucination, demystification of AI and string theories.

Ninth lesson: Rely on thinking tested by time, including philosophy since Ancient time.

Apprenticeships and AI transformation of organisations

Many businesses, governments, and organisation face lack of skills for successful use of AI. The apprenticeship programmes address five main obstacles as outlined by the recent analysis of the Harvard Business Review:

Opaqueness: People are reluctant to use AI, which is a ‘black box’. Understanding core concepts (like “floating points”) reduces the feeling that AI is opaque and fosters more acceptance.

Emotionless: Lack of emotions of AI is mitigated through user engagement and human-centered design of AI tools.

Inflexibility: Showing that AI evolves—like a robot vacuum that learns a space—makes it feel less rigid and more trustworthy.

Too autonomous: Using domain-specific data or “anthropomorphizing” the AI can help users engage more confidently.

Preference for human interaction: Emphasizing “human in the loop” alleviates concerns that AI is overriding human input.

Tenth lesson: Invest in developing human resources as much as in technological solutions.


In conclusion, AI apprenticeship is a comprehensive pedagogy aimed at building skills, knowledge and other critical competencies to navigate the forthcoming AI-driven transformation of diplomacy, businesses, and the whole society. It can help constructive and effective AI by overcoming barriers. engagement with AI and overcoming

After successful pilot programmes, Diplo will run in 2025 a series of AI apprenticeship programmes for individuals as well as for institutions customised for specific organisational and professional contexts.

Related resources

Load more
0 replies

Leave a Reply

Want to join the discussion?
Feel free to contribute!

Leave a Reply

Your email address will not be published. Required fields are marked *

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

The reCAPTCHA verification period has expired. Please reload the page.

Subscribe to Diplo's Blog

Tailor your subscription to your interests, from updates on the dynamic world of digital diplomacy to the latest trends in AI.

Subscribe to more Diplo and Geneva Internet Platform newsletters!