Data Training Courses

Home | Power BI | Excel | Python | SQL | Generative AI | Visualising Data | Analysing Data

Introduction to Generative AI

Generative AI vs Traditional (discriminative) AI

AI (Artificial Intelligence) can be defined as when a computer does something that a person would normally do. Generative AI creates new content. This content can be audio, video (images and movies) or text. We are going to focus on text.

This is a course about Generative AI. Generative AI differs from “traditional” AI. Traditional AI labels data but does not create new data.

Traditional AI uses patterns in data and algorithms to estimate:

Examples of “traditional” AI in daily life include:

Examples of Generative AI in daily life include:

Examples of how AI tools can make us more productive at work

AI tools can help us with the following types of task:

Multi modal models

Models can take in data and respond in several formats (text, audi, images, video). Current examples include:

More and more AIs are becoming multi-modal. For example, ChatGPT 4o transforms text to text, image to text (it can describe an image), text to image, and text to video. OpenAI demos GPT 4o as able to understand facial expressions and respond with a voice expressing emotion.

Problems with AI Tools

AI tools and large language models (LLMs) are not a perfect technology. There have a few drawbacks:

How to we make AI do what we want to do

One framework is the HHH framework

Models vs Products

We interact with a LLM through a user interface (UI) or an application. The UI talks directly to the model. The UI may provide certain helpful capabilities. For example, the ChatGPT web user interface keeps note of the previous prompts and responses in a conversation and resubmits those with the latest prompt so that the LLM always has the entire conversation history.

If needed, we can talk directly with the model, typically using a Python script. For example, what do you think this Python snippet does?

completion = client.chat.completions.create(
model=”gpt-3.5-turbo”,
messages=[
{“role”: “system”, “content”: “You are a poet and an expert in Python.”},
{“role”: “user”, “content”: “Compose a poem that explains the list, dics and tuples.”} ])

Knowledge Check

Which of the following is true of LLMs?

  1. They give exactly the same response every time?
  2. They do things perfectly, you can trust results 100%!
  3. They are good at initial first drafts - but treat with care and check.