DZone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
Please enter at least three characters to search
Refcards Trend Reports
Events Video Library
Refcards
Trend Reports

Events

View Events Video Library

Zones

Culture and Methodologies Agile Career Development Methodologies Team Management
Data Engineering AI/ML Big Data Data Databases IoT
Software Design and Architecture Cloud Architecture Containers Integration Microservices Performance Security
Coding Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Culture and Methodologies
Agile Career Development Methodologies Team Management
Data Engineering
AI/ML Big Data Data Databases IoT
Software Design and Architecture
Cloud Architecture Containers Integration Microservices Performance Security
Coding
Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance
Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks

Last call! Secure your stack and shape the future! Help dev teams across the globe navigate their software supply chain security challenges.

Modernize your data layer. Learn how to design cloud-native database architectures to meet the evolving demands of AI and GenAI workloads.

Releasing software shouldn't be stressful or risky. Learn how to leverage progressive delivery techniques to ensure safer deployments.

Avoid machine learning mistakes and boost model performance! Discover key ML patterns, anti-patterns, data strategies, and more.

Related

  • How Generative AI Is Revolutionizing Cloud Operations
  • A Comprehensive Guide to Generative AI Training
  • Build Scalable GenAI Applications in the Cloud: From Data Preparation to Deployment
  • 4 Reasons Agentic AI Is Reshaping Enterprise Search

Trending

  • Immutable Secrets Management: A Zero-Trust Approach to Sensitive Data in Containers
  • A Modern Stack for Building Scalable Systems
  • Microsoft Azure Synapse Analytics: Scaling Hurdles and Limitations
  • How to Configure and Customize the Go SDK for Azure Cosmos DB
  1. DZone
  2. Data Engineering
  3. AI/ML
  4. Introduction to Modern AI 2024 Edition: Part 1

Introduction to Modern AI 2024 Edition: Part 1

Explore this overview of the artificial intelligence ecosystem, including terminology, tools, and how they are best suited.

By 
Joel Nylund user avatar
Joel Nylund
DZone Core CORE ·
Mar. 07, 24 · Analysis
Likes (7)
Comment
Save
Tweet
Share
4.6K Views

Join the DZone community and get the full member experience.

Join For Free

It's hard to believe it has been almost six years since I wrote my last article on Artificial Intelligence (AI), "Practical Artificial Intelligence." In that article, I gave an overview of the state of AI and Machine Learning (ML) and some popular usage and tools at the time. Since then, things have gotten crazy in the AI world: everyone is talking about tools like ChatGPT, but most people really don’t understand all the terminology and tools or what they are best suited for. In this article (part 1 of 2), I will attempt to give you an updated look at this ecosystem and try to explain things in “Joel” terms.

So let’s start off by defining all the key terms and look at some examples of each.
Introduction to Modern AI 2024 edition

Key Terms

Artificial Intelligence (AI)

Artificial intelligence (AI) is human intelligence exhibited by machines. Examples of AI include facial recognition, help desk chatbots, smart thermostats, and speech-to-text. 

AI examples

As developers, we have been writing AI into our code since the beginning. Below is an early example of playing a game of tic tac toe – the code is simulating another human's intelligence to play against you. Note, there is nothing fancy or magic about this code, in fact, it's just a series of IF statements; and, yes, this does qualify as AI!

Tic tac toe coding example

Machine Learning (ML)

Machine learning (ML) is a subset of AI where we use algorithms to parse data, learn from it, and then decide to do something. All machine learning counts as AI, but not all AI counts as machine learning. For example, symbolic logic – rules engines, expert systems, and knowledge graphs – could all be described as AI, and none of them are machine learning.

Machine learning examples

If you go to Amazon to shop for some shoes, maybe it will suggest a shirt to match. Amazon also uses tools like image classification to decide what an image is to prevent false advertising. Lastly, the big email providers such as Google and Yahoo use spam classification to decide whether an email is spam. How well they do this impacts us every day! 

As developers, when we put machine learning into our code, we historically implemented it with algorithms as models. Have you ever built a decision tree in your code? This was you implementing a machine learning model, and probably not even realizing it.

Decision tree example

Large Language Models (LLM)

Large Language Models (LLM) is a type of artificial intelligence (AI) algorithm that uses deep learning techniques and massively large data sets to understand, summarize, generate, and predict new content. The term "generative AI" also is closely connected with LLMs and is a type of generative AI that has been specifically architected to help generate text-based content.

Current examples of LLMs are GPT-4 (behind OpenAI’s ChatGPT), Llama (Meta), and LaMDA (Google).

Examples of historical developer-built LLMs include: 

  1. Coding up a chatbot to understand basic commands and process them (think about the early text-based “Adventure Game”) 
  2. A technique Word2vec, where you obtain vector representations of words to determine semantic meaning.

Generative AI

Generative AI is artificial intelligence capable of generating text, images, or other media, using predictive models. Probably the most well-known generative AI today is Dall-E. Many people are using it to generate images. Also, ChatGPT is being used to generate articles/content.

Most of us never coded generative AI in the early days, but there was plenty of work going on even back in 1970; some of the early examples included speech synthesis.

GPT: Generative Pre-trained Transformer

ChatGPT (Chat Generative Pre-trained Transformer) being the most popular is a large language model-based chatbot developed by OpenAI (multiple competitors here like Bard, Claude).

Retrieval Augmented Generation (RAG)

Retrieval Augmented Generation (RAG) is a powerful technique that combines the strengths of pre-trained language models with the benefits of information retrieval systems. The primary purpose of RAG is to enhance the capabilities of large language models (LLMs), particularly in tasks that require a deep understanding and generation of contextually relevant responses.

Since most developers didn’t code LLMs back in the day, most also didn’t implement RAG.

An example of RAG is taking some information not already contained in a standard model and augmenting it to make the model more powerful for that specific usage. An example includes taking my company handbook and augmenting it with an existing GPT/LLM by using a technique called embeddings. Once I have done this I can ask the GPT questions about my company policies and it should be able to make deductions about it, even though the original LLM knows nothing about my company.

Business Use

Now that we have the basic vocabulary down and have some good examples of how all this stuff works, let's talk about 2024, and how we should do things to leverage all the great tools folks have built to do awesome AI and ML!

My company uses software to solve business problems for our customers. This is what we have always done, so I like to approach AI and ML not from a technology approach, but more from the question, “What business problems can we solve?”

Traditionally we have used AI and ML to solve the following problems:

  • Taking documents and turning them into something searchable and usable: Traditionally we have used Natural Language Processing (NLP) to understand the meaning and sentiment of text, to make it searchable, and also automate document processing to turn images into text and classify and segment them. Most of this work revolved around taking legacy PDF documents and making better use of them.
  • Predicting sales results: Taking data our customers have and building models to produce sales predictions for our customers
  • Building faster, less error-prone software: For the last few years, we have been leveraging code-assist tools like GitHub Copilot and Amazon CodeWhisperer to help developers write code faster at a higher quality.

Today, we can solve these same problems with higher accuracy and less work using the latest and greatest tools (we will talk about a few of these shortly). We can also solve other typical business problems more easily with new tools. 

Some problems that are easier to solve now are:

  • Automating simple customer service interactions: Building a custom chatbot to solve your customers’ most common problems is now fairly easy to do.
  • Automating tasks that were historically done manually, like combining files, filtering files, summarizing files, etc. by using ChatGPT-type tools to assist you.
  • Incorporating features like facial recognition and speech-to-text/text-to-speech into our systems.

Tools and Frameworks

Until recently, if you wanted to build a machine learning model, the only option you had was to write some code. Most developers choose from one of a few options: 

  • Scikit-learn: Easy to learn, where most people start 
  • TensorFlow: From Google; more powerful, but complex (some folks use Keras on top) 
  • PyTorch: From Meta, more powerful and easier to use than TensorFlow

Now the major cloud providers each have their own set of tools targeted at each area:

  • Microsoft: Azure OpenAI (GPT), Vision/Speech/Translation, ML Studio, Automated ML, pre-trained models
  • AWS: Sagemaker (traditional); Bedrock - multiple model options,; Sagemaker has Canvas and Autopilot for Automated ML, AmazonQ (GPT)
  • Google: VertexAI (Gemini model), Bard (GPT), TensorFlow

Recently, higher-level tools have also come upon the scene that allow you to build models quickly without writing any code:

  • Nyckel - Lets you upload a CSV and go
  • SimpleML for Google Sheets: See "Business Owners: Take Control of Your Data"
  • AutoML (AWS, Azure, GCP) from cloud providers (on the previous page)
  • Using ChatGPT to do your ML for you! (Used to be called Advanced Data Analysis)

Summary

In this article (Part 1), we summarized all the latest terminology around artificial intelligence and machine learning along with many examples of them. We also showed typical business problems that can be solved with the latest tools. Lastly, we talked about the popular tools in this space today. Stay tuned for Part 2 of this article where we will walk you through a real-life example using one of these tools to solve a business problem!

AI Machine learning generative AI large language model

Published at DZone with permission of Joel Nylund. See the original article here.

Opinions expressed by DZone contributors are their own.

Related

  • How Generative AI Is Revolutionizing Cloud Operations
  • A Comprehensive Guide to Generative AI Training
  • Build Scalable GenAI Applications in the Cloud: From Data Preparation to Deployment
  • 4 Reasons Agentic AI Is Reshaping Enterprise Search

Partner Resources

×

Comments
Oops! Something Went Wrong

The likes didn't load as expected. Please refresh the page and try again.

ABOUT US

  • About DZone
  • Support and feedback
  • Community research
  • Sitemap

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • Become a Contributor
  • Core Program
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 3343 Perimeter Hill Drive
  • Suite 100
  • Nashville, TN 37211
  • support@dzone.com

Let's be friends:

Likes
There are no likes...yet! 👀
Be the first to like this post!
It looks like you're not logged in.
Sign in to see who liked this post!