Udacity part of Accenture logo

Building a Custom OpenAI Chatbot

Course

In this course, we will create a custom Q&A bot powered by OpenAI! Along the way, you'll learn how OpenAI works and how to leverage its powerful language processing capabilities to build a functional Q&A bot that can provide insightful answers to your questions and impress your friends with its knowledge. We'll start by creating an unsupervised machine-learning workflow to match the user's question to the relevant context in our dataset. We'll use that workflow to send a custom prompt that includes this context to an OpenAI text completion model. The output will be a custom response that is better aligned with our user's need for accurate data about recent events.

In this course, we will create a custom Q&A bot powered by OpenAI! Along the way, you'll learn how OpenAI works and how to leverage its powerful language processing capabilities to build a functional Q&A bot that can provide insightful answers to your questions and impress your friends with its knowledge. We'll start by creating an unsupervised machine-learning workflow to match the user's question to the relevant context in our dataset. We'll use that workflow to send a custom prompt that includes this context to an OpenAI text completion model. The output will be a custom response that is better aligned with our user's need for accurate data about recent events.

  • Intermediate

  • 1 week

  • Last Updated July 12, 2024

Skills you'll learn:

OpenAI APITokenization

Prerequisites:

Basic Python

Intermediate

1 week

Last Updated July 12, 2024

Skills you'll learn:

OpenAI API • Tokenization • Prompt Engineering • Conversational AI

Prerequisites:

Basic Python

Course Lessons

Lesson 1

Welcome

In this lesson, you'll get an overview of our journey. You'll learn a bit about OpenAI's history and how we can use it. You'll also get a brief introduction to prompt engineering.

Lesson 2

Preparing a Dataset with Embeddings

In this lesson, we'll prepare our dataset to make it accessible for machine learning. We'll find the data, load it, clean it up, and use embeddings to create numeric representations of our data.

Lesson 3

Finding Relevant Data

In this lesson, we will discuss the differences between keyword and semantic searches. Then, we'll find the relevant data for our queries using cosine similarity.

Lesson 4

Querying a Completion Model with a Custom Text Prompt

In this lesson, we'll get to the magic of AI! We'll write a custom prompt that includes the most relevant parts of our dataset and use that prompt to get a customized response.

Lesson 5 • Project

Project: Build Your Own Custom Chatbot

For this project, you will use everything you learned in this course to create a custom chatbot using a dataset of your choice.

Taught By The Best

Photo of Erin Hoffman

Erin Hoffman

Senior Technical Content Developer at Udacity

Erin is a data scientist and Senior Technical Content Developer at Udacity, where she leverages her background in computer science and design research to manage the development of curriculum in fields like Generative AI, Business Intelligence, Data Analysis, and more. Beyond Udacity, Erin regularly contributes to a variety of writing, research, and open source projects, including scikit-learn, the most popular ML library in use today.

The Udacity Difference

Combine technology training for employees with industry experts, mentors, and projects, for critical thinking that pushes innovation. Our proven upskilling system goes after success—relentlessly.

Demonstrate proficiency with practical projects

Projects are based on real-world scenarios and challenges, allowing you to apply the skills you learn to practical situations, while giving you real hands-on experience.

  • Gain proven experience

  • Retain knowledge longer

  • Apply new skills immediately

Top-tier services to ensure learner success

Reviewers provide timely and constructive feedback on your project submissions, highlighting areas of improvement and offering practical tips to enhance your work.

  • Get help from subject matter experts

  • Learn industry best practices

  • Gain valuable insights and improve your skills

Enroll in Building a Custom OpenAI Chatbot. Choose the plan that works for you

All Access monthly

  • Unlimited access to our top-rated courses

  • Personalized Career Services

  • Cancel Anytime

  • Real-world projects

  • Personalized project reviews

  • Program certificates

Best Value

All Access bundle1

  • All the same great benefits as our monthly plan

  • The most cost-effective way to develop the skills you want

  1. 1Discount applies to the first 4 months of membership, after which plans are converted to month-to-month.

Your subscription also includes:

About Building a Custom OpenAI Chatbot

Learn how to leverage powerful OpenAI language processing capabilities and create a custom chatbot with this intermediate training course.

Udacity Accenture logo

Company

  • Facebook
  • Twitter
  • LinkedIn
  • Instagram

© 2011-2025 Udacity, Inc. "Nanodegree" is a registered trademark of Udacity. © 2011-2025 Udacity, Inc.
We use cookies and other data collection technologies to provide the best experience for our customers.