Udemy
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
Practical RAG in C# with .NET 10 and Azure
Rating: 4.4 out of 5(9 ratings)
64 students

Practical RAG in C# with .NET 10 and Azure

Build a local-first RAG app in C#, .NET 10 and Aspire — Ollama, vector search, and Azure AI parity
Last updated 4/2026
English
English [Auto],

What you'll learn

  • Build a local-first RAG application in C# using .NET 10 and Aspire
  • Understand the full RAG pipeline: ingestion, chunking, embeddings, and retrieval
  • Integrate local AI models with Ollama and interact with them programmatically
  • Add retrieval, tool calling, and structured responses to a C# Chat API
  • Apply observability concepts using OpenTelemetry for AI applications
  • Swap local components with Azure AI Models and Azure AI Search without rewriting the app

Course content

8 sections47 lectures5h 34m total length
  • Introduction0:48

    Meet Sia, a Microsoft certified trainer and Azure certified engineer, and learn to build a real rack system in C# with .NET 10 using enterprise backend patterns and code.

  • What We're Building2:07

    Builds a local iChatBuddy system with an offline ingestion pipeline. Reads incident documents, creates vector embeddings, stores them in a vector store, and powers a chat API tested by Swagger.

  • GitHub Walkthrough0:52

    Explore the practical rag repo on GitHub, organized by sections that align with Udemy. Code along, compare to the completed section folders, and jump to any section to catch up.

  • Call to Action0:21

Requirements

  • Basic knowledge of C# and .NET (such as creating APIs or services). Familiarity with REST APIs and JSON is helpful. No prior experience with AI, RAG, or machine learning is required.

Description

Built and taught by a Microsoft engineer (Microsoft Certified Trainer) with 15+ years of software engineering experience: this course shows you how to build a real Retrieval-Augmented Generation (RAG) application in C# with .NET 10 and Azure — not Python.

You'll go from a blank Aspire solution to a working enterprise-style RAG application. Along the way you'll learn the full pipeline — ingestion, chunking, embeddings, vector storage, retrieval, tool calling, grounded responses — and you'll see the same code run locally against Ollama and a SQLite vector store, then swap to Azure AI Search and Azure AI Foundry with a single configuration flag.

Most RAG tutorials today are written for Python. This one isn't. It's for C# and .NET developers who want to understand RAG by building it, in idiomatic .NET, with the modern stack.


What you'll build

A working incident-management AI assistant ("IcM Buddy") — answers incident questions grounded in real on-call/SRE incident documents, returns structured Diagnosis / Recommended Actions / Related Incidents, and refuses to answer when the data isn't there (no hallucinations).

What makes this course different

  • C# and .NET, not Python — built around Microsoft Extensions AI, IChatClient, and the new Microsoft.Extensions.DataIngestion pipeline

  • Modern stack — .NET 10, C# 13, Aspire 13, Visual Studio 2026

  • Local-first — run everything on your laptop with Ollama (no cloud bill while you learn)

  • Real production patterns — resilience handlers, retries, timeouts, OpenTelemetry, distributed caching with Redis

  • One-flag Azure parity — the same application code runs against Azure AI Search and Azure AI Foundry (GPT models) by toggling a useAzure flag — no rewrite

  • Real domain, not toy examples — ICM (incident management) with 25 realistic enterprise incident documents, not "ask about Shakespeare"

  • API-first, Swagger-only — no UI to maintain or distract from the AI architecture

Topics covered

  • The Aspire 13 framework: AppHost, ServiceDefaults, container orchestration

  • Ollama integration in C# (chat models + embedding models)

  • The Chat API: contract design, IChatClient abstraction, prompts as application logic

  • Resilience: custom retry/circuit-breaker handlers tuned for AI workloads

  • The full RAG pipeline: ingestion worker, markdown reader, semantic chunking, embeddings, vector storage

  • Tool calling and function invocation for grounded retrieval

  • System prompts that enforce grounding rules

  • Observability: OpenTelemetry tracing for AI requests and vector searches

  • Distributed caching with Redis

  • Azure parity: Azure AI Search and Azure AI Foundry with the same application code

Who this course is for

  • C# and .NET developers who want to learn RAG and AI without learning Python

  • Backend engineers building AI-powered APIs in .NET 10

  • Architects and senior devs evaluating how to integrate AI into existing .NET systems

  • Microsoft-shop developers who need an Azure-aligned AI architecture they can actually take to production

What this course is NOT

To be honest about scope so you can decide before enrolling:

  • Not a deep machine-learning or model-training course — we use models, we don't train them

  • Not an Azure deployment course — we configure Azure resources but don't cover IaC, CI/CD pipelines, or production hardening

  • Not a UI/frontend course — everything is API-first, tested via Swagger

  • Not a Python or LangChain course

Requirements

  • Basic C# and .NET (you've built APIs or services before)

  • Familiarity with REST and JSON

  • A machine that can run Docker Desktop (Windows or Mac)

  • No prior AI, RAG, or machine-learning experience needed

Who this course is for:

  • C# and .NET developers who want to learn RAG and AI without using Python
  • Backend engineers interested in building AI-powered APIs using .NET 10
  • Developers who want to understand how local AI systems integrate with Azure AI