BEST SITE FOR WEB DEVELOPERS
Generative Artificial Intelligence. Lessons for beginners

Ua

Generative AI Tutorial


[+:

Generative AI can help boost your productivity if used correctly.

AI prompt engineering is one of the hottest jobs in tech.

Knowing how to write prompts correctly is the key to helping you use generative AIs.

Start learning AI Prompt Engineering now ❯

Learning by Doing

In these tutorials, you get step-by-step guides on how to write AI prompts to get the best possible results from text-to-text and text-to-image generative AIs.

You will learn to understand Generative AI capabilities and write prompts that minimize misinformation and biased results.

You will learn how to preface your prompts and add details to them to generate consistent results.


Learning by Examples

In these tutorials, we will use examples to better explain the various concepts.

Example

With the following prompt:

Explain "Generative AI" like I'm 5 years old

A response from a Generative AI (in this case, ChatGPT) could be:

Generative AI

"GenAI" is like a magic computer that can learn and think like a human, but it's not alive like you and me. It can help people solve big problems like finding new cures for diseases or making cool new inventions. It's really smart and can do things that would take humans a very long time to do.


My Learning

Track your progress with the free "My Learning" program here at W3Schools.

Log in to your account, and start earning points!

This is an optional feature. You can study W3Schools without using My Learning.


Which is better — Bard or ChatGPT?

Bard and ChatGPT are both large language models trained on huge datasets of text and code. They can generate text, translate languages, write different types of creative content and answer your questions informatively.

However, there are several key differences between the two. Bard is a factual language model, while ChatGPT is a generative language model. This means that Bard is better at understanding and answering factual questions, while ChatGPT is better at generating creative text such as poetry, code, scripts, music, emails, letters, etc.

Additionally, Bard is trained on a dataset that includes both text and code from various sources, while ChatGPT is trained on a text-only dataset. This means that Bard better understands and generates text that is factual and accurate, while ChatGPT better understands and generates text that is creative and interesting.

Ultimately, the best model for you depends on your specific needs. If you want a language model that understands and answers factual questions, well, then Bard is a good choice. If you need a language model that is good at generating creative text, then ChatGPT is a good choice.

Here is a table that summarizes some of the key differences between Bard and ChatGPT:

Caractéristique Bard ChatGPT
Type Actual language model Generative language model
Training Text and code from various sources Text from various sources
Strength Factual and accurate text Creative and interesting text