Getting Started: AI for .NET Developers

Get started with integrating AI into your .NET applications effectively using the latest LLM best practices.

About This Course

The world of Artificial Intelligence and LLMs is moving at a breakneck pace, and tooling is changing so quickly that by the time you learn something, there is something new out there that you have to learn. Understanding the basics is crucial to learn how to adapt and evolve in an ever-changing field. In this course, Ed will introduce you to AI and LLMs from the very basics, so you can get started with a solid foundation on your AI journey. He will then explain the AI landscape and all the options available to you, move to prompt engineering, and cover the available AI libraries for .NET, as well as concepts like LLM Tokens, which can be very confusing. You will learn how to work with text, streaming responses, and image content types, as well as build a basic agent and use RAG with Microsoft’s brand-new Agent Framework.

Course Curriculum

5h 12m 11 sections
Welcome
01:06 Free preview
What will you learn in this course?
01:29 Free preview
Who is the course for and prerequisites
00:54 Free preview
A brief history of AI and .NET
04:54
Deterministic vs. non-deterministic programming
09:15
A developer's guide to AI, ML, and Deep Learning
08:07
Exploring LLM and GenAI Concepts
02:02
Providers and Hosting Options
03:27
An overview of Azure AI Foundry
04:26
Deploying your first Large Language Model
03:49
An introduction to Chat Playground
05:04
Exercies introduction
03:42
Summarization prompts
02:45
Categorization prompts
04:14
Sentiment analysis prompts
06:47
Language translation prompts
07:55
Creating structured output from unstructured data
07:59
Using LLMs to generate and refine summarization prompts
07:04
Using LLMs to generate and refine categorization prompts
08:01
Using LLMs to troubleshoot prompt responses
06:52
Understanding the three pillars of AI in .NET
03:54
When to use what library and why
06:48
Introduction to building a Tokenizer
03:48
Token Visualizer project dependencies
04:01
Connecting the visualizer component
04:04
Performing tokenization and reviewing the output
08:21
Microsoft.Extensions.AI Exercise Introduction
01:35
Configuring and establishing application settings with user secrets
10:41
Configuring DI with AI Dependencies and IChatClient
06:36
Creating a chat application background service
05:22
Chat completions using ChatMessage and ChatRepsonse
06:43
Creating a chat loop
06:28
Adding a basic conversational memory
05:09
Creating a Web Agent by Extending the ChatApp
10:39
Reading Web Resources for Context Augmented Generation
07:36
Blazor Project Intro
02:16
IChatClient Dependencies and Configuration
08:19
Chat UI setup
07:33
AIContent and content types
03:02
Using image content with multimodal model input
10:29
How to enable logging on IChatClient
05:23
How to use GetStreamingResponseAsync to stream text from IChatClient
08:12
Basic Agent Intro
03:18
Structured Output with GetResponseAsync<T>
11:58
Agent Framework Introduction
03:51
Agent Setup and Project Configuration
06:56
Creating OpenAI Clients
03:58
Creating an OpenAI Vector Store
06:37
Creating an Agent with Agent Framework
05:17
Agent Conversation UI
05:43
Azure OpenAI Files and Vector Store
02:13
Running an Agent
08:49
Citations and Annotations
09:32
Agent Framework Threads
05:10
Conclusion
00:54

Meet Your Instructor

Ed Charbeneau

Ed Charbeneau

Ed is a Microsoft MVP and an international speaker, writer, online influencer, a Developer Advocate for Progress, and expert on all things web development. Ed enjoys geeking out to cool new tech, brainstorming about future technology, and admiring great design.

View all courses by Ed Charbeneau

What's New

Getting Started: AI for .NET Developers
course

Getting Started: AI for .NET Developers

Get started with integrating AI into your .NET applications effectively using the latest LLM best practices.

Learn More
Getting Started: Building .NET Applications on AWS
course

Getting Started: Building .NET Applications on AWS

Learn how to build and deploy .NET applications on AWS using CDK, Lambda, DynamoDB, S3, and more.

Learn More
What's new in C# 14
blog

What's new in C# 14

This guide covers every new C# 14 feature, explains its benefits, and provides practical code examples to help you navigate how you can use them.

Learn More
Let's Build It: AI Chatbot with RAG in .NET Using Your Data
course

Let's Build It: AI Chatbot with RAG in .NET Using Your Data

Build a Retrieval-Augmented Generation (RAG) chatbot that can answer questions using your data.

Learn More
From Zero to Hero: SignalR in .NET
course

From Zero to Hero: SignalR in .NET

Enable enterprise-grade real-time communication for your web apps with SignalR.

Learn More
Deep Dive: Solution Architecture
course

Deep Dive: Solution Architecture

Master solution architecture and turn business needs into scalable, maintainable systems.

Learn More
Migrating: ASP.NET Web APIs to ASP.NET Core
course

Migrating: ASP.NET Web APIs to ASP.NET Core

A step-by-step process to migrate ASP.NET Web APIs from .NET Framework to ASP.NET Core.

Learn More
Getting Started: Caching in .NET
course

Getting Started: Caching in .NET

Let's make the hardest thing in programming easy for .NET software engineers.

Learn More
From Zero to Hero: Testing with xUnit in C#
course

From Zero to Hero: Testing with xUnit in C#

Learn how to test any codebase in .NET with the latest version of xUnit, the industry-standard testing library.

Learn More
Create a ChatGPT Console AI Chatbot in C#
blog

Create a ChatGPT Console AI Chatbot in C#

This walkthrough is your hands-on entry point to create a basic C# console application that talks to ChatGPT using the OpenAI API.

Learn More