Ethical AI for the Rest of Us

Rate this content
Bookmark

When you were a teenager, someone probably sat you down to explain “the birds and the bees”. For many, this was an uncomfortable topic; maybe even one that was avoided for as long as possible. In the development community, I’ve noticed a similar approach being taken to discussing the ethics of AI. But in the famous words of Salt-N-Pepa (mostly): “Let’s talk about AI, baby! Let’s talk about you and me! Let’s talk about all the good things and the bad things that may be.” AI is not going away anytime soon: it’s wildly interesting, full of potential, and capable of so much good – however, it also has the potential to cause serious harm. So let’s get real for a bit and talk about what should be considered in order to use AI responsibly: bias, misinformation, dataset sources, accountability and more. After all…if you’re not ready to talk about AI, then you’re probably not ready to have it.

This talk has been presented at React Summit 2024, check out the latest edition of this React Conference.

FAQ

Katherine Grayson-Nanz is a developer advocate at Progress Software.

The inclusion of AI features is a major trend in the tech industry, with many companies incorporating AI into their products, often due to pressure from stakeholders who fear being left behind.

Examples of generative AI tools mentioned include ChatGPT, DALL-E, and Mid-Journey.

The Progress study found that 65% of organizations experience data bias in AI today, and 78% are concerned that data bias will become a bigger issue as AI use increases.

The Canadian Civil Resolution Tribunal ruled that Air Canada had to pay damages after a chatbot on their website provided incorrect information, establishing that companies are responsible for information provided by AI on their websites.

Best practices for ethically implementing AI include compliance with legal regulations, building trust with users, maintaining transparency, ensuring efficiency, and incorporating human oversight at critical decision points.

Trust is crucial because users need to feel confident in the reliability and ethical standards of the AI systems. Companies need to build an established culture of trust and ethical development to make users comfortable with AI features.

The Human-in-the-Loop system involves human oversight in AI processes, ensuring that AI recommendations or decisions are reviewed by humans before being finalized, which adds a layer of quality assurance and reduces the risk of bias and errors.

Using AI without intention can lead to user frustration, damage to brand reputation, bias, discrimination, and misinformation, which can have real-world harmful effects.

Retrieval Augmented Generation (RAG) is a system that supplements base AI knowledge with personalized content and data from specific sources, enhancing accuracy and reliability of AI-generated results by providing specific documents as references.

Kathryn Grayson Nanz
Kathryn Grayson Nanz
21 min
18 Jun, 2024

Comments

Sign in or register to post your comment.
Video Summary and Transcription
AI implementation without considering user benefits can lead to harm and bias. Legal cases highlight the need for AI accountability and addressing biases. Trust, transparency, and efficiency are crucial for building AI systems. Consider the impact of AI on user experience and engage with users. Human oversight is necessary to ensure safety and respect.

1. Introduction to AI and Its Challenges

Short description:

AI is a major trend in our industry, but there is a push to incorporate it without considering the benefits to users. Rushing to implement AI without intention can lead to harm, frustration, and bias. A recent study found that 65% of organizations experience data bias in AI today.

Hey there. I'm Katherine Grayson-Nanz, a developer advocate at Progress Software. Now, if you haven't been living under a rock for the last year, you've probably been hearing a lot about a particular technology these days. AI. We are well out of the awkward beginning phase now, past the point where it was fun to play with, but also, you know, consistently turning out images of people with 12 fingers.

These days, we are seeing more and more serious uses of generative AI in our everyday lives. From Instagram's Ask Meta AI to Notion's AI writing prompts or Twitter, the inclusion of an AI feature is a pretty major trend within our industry right now. And to be clear, I am not saying trend here in a negative way. I'm just attempting to capture the fascination with this in the current moment, because I've heard and seen myself the push that so many of us are getting to incorporate AI into whatever we're building, often regardless of whether it would actually be beneficial to our users or not.

This can often come from folks who aren't directly involved in the development process. Maybe a product manager, a VP, a sales person, something similar. There can be a lot of fear right now that a product is getting left behind if it's not leveraging AI in some way right now. So there's this big push for us to all get on the bandwagon. When that kind of pressure is being applied to implement a new technology, especially in our industry with the pre-existing pressure to move fast to get there first, things can get a little messy. There are tons of amazing ways that AI can be leveraged to improve a product. But I think most of us have also seen instances where AI has just been kind of elbowed in for the sake of saying that a product is AI-powered. Like that earlier example with the Instagram search bar, the AI chat. When we use AI technology without intention, we can actually do a lot more harm than good. Sometimes that just looks like frustration or disappointment from our users, which damages our brand and our reputation. But other times it can look like bias, discrimination, and misinformation, which has the possibility to do a lot of real-world harm. In fact, a recent global study commissioned by Progress found that 65% of organizations experience data bias in AI today and 78% are concerned that data bias will become a bigger issue as their AI use increases.

2. Building AI Safely and Legal Implications

Short description:

I am not anti-AI, but I am against moving fast and breaking things. We need to build safely with this rapidly evolving technology. Let's focus on generative AI, which is accessible through tools like chat-GBT, DALI, and Mid-Journey. While AI-powered features can enhance user experience, they can also create problems, such as the case of Chevrolet dealerships and Air Canada's chatbot. Courts are recognizing the legal implications of AI on websites.

I want to make it clear as we're diving into this, I am not anti-AI. What I am is anti-move fast and break things. Because when we do that, when we move fast and break things, what we harm is our users, our human beings. This implementation of AI is still so relatively new, and there is a lot we don't know yet. It's all changing so rapidly. The kind of content that we were getting back from GPT-3 is so different than what we're seeing today with GPT-4, and that's going to be so different from what we'll see years from now, GPT-5. It's incredibly exciting to see the tech develop so quickly to make such awesome leaps and bounds forward. It's a very cool time to be a developer and a privilege to get to work with this technology. But it's also a challenge, and it's our responsibility to build safely with this fast-moving tech. So let's talk a little bit about how we can do that while still keeping our users' best interests at heart.

Now, the word AI is doing a lot of heavy lifting these days, and not all of that is accurate or descriptive. In addition to being kind of a buzzword, it's also become a catch-all phrase, especially for less technical folks that lump together everything from algorithms to predictive text to pre-made chatbots, which may or may not include any actual AI tech. But for our purposes here, in this talk, I want to focus primarily on generative AI. Gen AI is what's making the most waves for our particular audience, developers here now at this time of writing, because it has become so easily accessible. Things like chat-GBT, DALI, Mid-Journey. Let's be real here, most of us don't have the resources to train our own data sets, so we're using these Google or Meta or OpenAI products because they're our most accessible entry into the technology. So that's what we're going to be focused on today. All of those tools, and of course, plenty others out there, have APIs that we can leverage to start building AI-powered features into our applications really easily. And of course, plenty of folks, including I'm betting many of you, have already done so. Of course, we have also seen a fair share of situations where AI-powered features have created pretty terrible user experience or done some serious damage. For example, at the end of last year, we saw a handful of Chevrolet dealerships regret their placement of chat-GBT-powered chatbots on their website after it became a Twitter joke to manipulate said chatbots into selling them cars for a fraction of the retail price. Now, did Chevrolet actually lose any money on this? Almost certainly not. In fact, in one of these screenshots, we can even see the please confirm all information with the dealership safety net that they baked right in from the beginning. However, they did lose serious reputation. When you Google Chevrolet of Watsonville, several of the first autocomplete search results are still references to this mishap months and months later, and they probably will continue to be for many months yet to come. Not what you want from a brand positioning standpoint. Sometimes, though, we do see legal repercussions, not just social. Courts are beginning to rule that what an AI says on your website actually does hold weight. Just a few months ago, in fact, in February, the Canadian Civil Resolution Tribunal determined that Air Canada would have to pay damages after a customer was given incorrect information regarding bereavement flight costs by a chatbot on their website. As Tribunal member Christopher Rivers stated, in effect, Air Canada suggests that the chatbot is a separate legal entity that's responsible for its own actions.

Check out more articles and videos

We constantly think of articles and videos that might spark Git people interest / skill us up or help building a stellar career

Building a Voice-Enabled AI Assistant With Javascript
JSNation 2023JSNation 2023
21 min
Building a Voice-Enabled AI Assistant With Javascript
Top Content
This Talk discusses building a voice-activated AI assistant using web APIs and JavaScript. It covers using the Web Speech API for speech recognition and the speech synthesis API for text to speech. The speaker demonstrates how to communicate with the Open AI API and handle the response. The Talk also explores enabling speech recognition and addressing the user. The speaker concludes by mentioning the possibility of creating a product out of the project and using Tauri for native desktop-like experiences.
AI and Web Development: Hype or Reality
JSNation 2023JSNation 2023
24 min
AI and Web Development: Hype or Reality
Top Content
This talk explores the use of AI in web development, including tools like GitHub Copilot and Fig for CLI commands. AI can generate boilerplate code, provide context-aware solutions, and generate dummy data. It can also assist with CSS selectors and regexes, and be integrated into applications. AI is used to enhance the podcast experience by transcribing episodes and providing JSON data. The talk also discusses formatting AI output, crafting requests, and analyzing embeddings for similarity.
The Rise of the AI Engineer
React Summit US 2023React Summit US 2023
30 min
The Rise of the AI Engineer
Watch video: The Rise of the AI Engineer
The rise of AI engineers is driven by the demand for AI and the emergence of ML research and engineering organizations. Start-ups are leveraging AI through APIs, resulting in a time-to-market advantage. The future of AI engineering holds promising results, with a focus on AI UX and the role of AI agents. Equity in AI and the central problems of AI engineering require collective efforts to address. The day-to-day life of an AI engineer involves working on products or infrastructure and dealing with specialties and tools specific to the field.
Web Apps of the Future With Web AI
JSNation 2024JSNation 2024
32 min
Web Apps of the Future With Web AI
Web AI in JavaScript allows for running machine learning models client-side in a web browser, offering advantages such as privacy, offline capabilities, low latency, and cost savings. Various AI models can be used for tasks like background blur, text toxicity detection, 3D data extraction, face mesh recognition, hand tracking, pose detection, and body segmentation. JavaScript libraries like MediaPipe LLM inference API and Visual Blocks facilitate the use of AI models. Web AI is in its early stages but has the potential to revolutionize web experiences and improve accessibility.
Code coverage with AI
TestJS Summit 2023TestJS Summit 2023
8 min
Code coverage with AI
Codium is a generative AI assistant for software development that offers code explanation, test generation, and collaboration features. It can generate tests for a GraphQL API in VS Code, improve code coverage, and even document tests. Codium allows analyzing specific code lines, generating tests based on existing ones, and answering code-related questions. It can also provide suggestions for code improvement, help with code refactoring, and assist with writing commit messages.
Building the AI for Athena Crisis
JS GameDev Summit 2023JS GameDev Summit 2023
37 min
Building the AI for Athena Crisis
Join Christoph from Nakazawa Tech in building the AI for Athena Crisis, a game where the AI performs actions just like a player. Learn about the importance of abstractions, primitives, and search algorithms in building an AI for a video game. Explore the architecture of Athena Crisis, which uses immutable persistent data structures and optimistic updates. Discover how to implement AI behaviors and create a class for the AI. Find out how to analyze units, assign weights, and prioritize actions based on the game state. Consider the next steps in building the AI and explore the possibility of building an AI for a real-time strategy game.

Workshops on related topic

AI on Demand: Serverless AI
DevOps.js Conf 2024DevOps.js Conf 2024
163 min
AI on Demand: Serverless AI
Top Content
Featured WorkshopFree
Nathan Disidore
Nathan Disidore
In this workshop, we discuss the merits of serverless architecture and how it can be applied to the AI space. We'll explore options around building serverless RAG applications for a more lambda-esque approach to AI. Next, we'll get hands on and build a sample CRUD app that allows you to store information and query it using an LLM with Workers AI, Vectorize, D1, and Cloudflare Workers.
AI for React Developers
React Advanced 2024React Advanced 2024
142 min
AI for React Developers
Featured Workshop
Eve Porcello
Eve Porcello
Knowledge of AI tooling is critical for future-proofing the careers of React developers, and the Vercel suite of AI tools is an approachable on-ramp. In this course, we’ll take a closer look at the Vercel AI SDK and how this can help React developers build streaming interfaces with JavaScript and Next.js. We’ll also incorporate additional 3rd party APIs to build and deploy a music visualization app.
Topics:- Creating a React Project with Next.js- Choosing a LLM- Customizing Streaming Interfaces- Building Routes- Creating and Generating Components - Using Hooks (useChat, useCompletion, useActions, etc)
Leveraging LLMs to Build Intuitive AI Experiences With JavaScript
JSNation 2024JSNation 2024
108 min
Leveraging LLMs to Build Intuitive AI Experiences With JavaScript
Featured Workshop
Roy Derks
Shivay Lamba
2 authors
Today every developer is using LLMs in different forms and shapes, from ChatGPT to code assistants like GitHub CoPilot. Following this, lots of products have introduced embedded AI capabilities, and in this workshop we will make LLMs understandable for web developers. And we'll get into coding your own AI-driven application. No prior experience in working with LLMs or machine learning is needed. Instead, we'll use web technologies such as JavaScript, React which you already know and love while also learning about some new libraries like OpenAI, Transformers.js
Llms Workshop: What They Are and How to Leverage Them
React Summit 2024React Summit 2024
66 min
Llms Workshop: What They Are and How to Leverage Them
Featured Workshop
Nathan Marrs
Haris Rozajac
2 authors
Join Nathan in this hands-on session where you will first learn at a high level what large language models (LLMs) are and how they work. Then dive into an interactive coding exercise where you will implement LLM functionality into a basic example application. During this exercise you will get a feel for key skills for working with LLMs in your own applications such as prompt engineering and exposure to OpenAI's API.
After this session you will have insights around what LLMs are and how they can practically be used to improve your own applications.
Table of contents: - Interactive demo implementing basic LLM powered features in a demo app- Discuss how to decide where to leverage LLMs in a product- Lessons learned around integrating with OpenAI / overview of OpenAI API- Best practices for prompt engineering- Common challenges specific to React (state management :D / good UX practices)
Working With OpenAI and Prompt Engineering for React Developers
React Advanced 2023React Advanced 2023
98 min
Working With OpenAI and Prompt Engineering for React Developers
Top Content
Workshop
Richard Moss
Richard Moss
In this workshop we'll take a tour of applied AI from the perspective of front end developers, zooming in on the emerging best practices when it comes to working with LLMs to build great products. This workshop is based on learnings from working with the OpenAI API from its debut last November to build out a working MVP which became PowerModeAI (A customer facing ideation and slide creation tool).
In the workshop they'll be a mix of presentation and hands on exercises to cover topics including:
- GPT fundamentals- Pitfalls of LLMs- Prompt engineering best practices and techniques- Using the playground effectively- Installing and configuring the OpenAI SDK- Approaches to working with the API and prompt management- Implementing the API to build an AI powered customer facing application- Fine tuning and embeddings- Emerging best practice on LLMOps
Building AI Applications for the Web
React Day Berlin 2023React Day Berlin 2023
98 min
Building AI Applications for the Web
Workshop
Roy Derks
Roy Derks
Today every developer is using LLMs in different forms and shapes. Lots of products have introduced embedded AI capabilities, and in this workshop you’ll learn how to build your own AI application. No experience in building LLMs or machine learning is needed. Instead, we’ll use web technologies such as JavaScript, React and GraphQL which you already know and love.