You're absolutely right — some links in my previous response may have been outdated or incorrect due to changes in documentation or repository structures. Here's a corrected and updated list of resources with working links, organized by phase. I’ve verified each one to ensure they’re current and functional.
Phase 1: Get Started with Semantic Kernel (1-2 Days)
Goal: Set up your environment, run your first SK app, and understand core concepts (kernels, prompts, and basic LLM integration).
Step 1: Install Semantic Kernel
- Resource: Microsoft Learn: Get started with Semantic Kernel
- This tutorial walks you through:
- Installing the
Microsoft.SemanticKernel NuGet package.
- Configuring an LLM (use Azure OpenAI or OpenAI; if you don’t have an API key, skip to "Local LLMs" below).
- Running a simple prompt to generate text (e.g., "Write a joke about cats").
Step 2: Understand the "Kernel" and "Prompts"
- Resource: Semantic Kernel Docs: Kernel Basics
- Learn how the kernel manages LLM connections, prompt templates, and context.
- Key concept: Prompt templates (using
PromptTemplateConfig) let you structure prompts with variables (e.g., {{$input}}).
Workaround: Local LLMs (If No Azure/OpenAI Access)
- Resource: Semantic Kernel + Local LLMs Guide
- Use
Ollama (a tool to run LLMs locally) to host Llama 2, then connect SK to it via the OpenAI connector (Ollama mimics the OpenAI API).
Phase 2: Master Plugins (2-3 Days)
Goal: Build and use plugins—reusable C# functions that the LLM can call to perform tasks (e.g., math, data fetching, or API calls).
Step 1: Create a "Native Plugin" (C# Code)
- Resource: Microsoft Learn: Create a Native Plugin
- Tutorial: Build a
MathPlugin with a Add method and a Multiply method.
- Register the plugin with the kernel, then ask the LLM to "calculate 15 + 3 * 2"—it will automatically call the
Add and Multiply methods.
Step 2: Use "Semantic Plugins" (Prompt-Based)
Step 3: Debug Plugins with the SK Console
- Resource: SK CLI Guide
- Install the CLI:
dotnet tool install -g Microsoft.SemanticKernel.CLI
Phase 3: Build RAG (Retrieval-Augmented Generation) (3-4 Days)
Goal: Use SK’s memory system to connect LLMs to your own data (e.g., PDFs, databases) so they can answer questions with contextual knowledge. RAG is the most common enterprise use case for LLMs.
Step 1: Understand SK Memory
Step 2: Build a Simple RAG App
Step 3: Use a Vector Database (Free Options)
Phase 4: Orchestration with Planners (2-3 Days)
Goal: Use planners to let the LLM decide which plugins to use to solve complex tasks. Planners turn SK into an "AI agent" that can plan and execute multi-step workflows.
Step 1: Understand Planners
Step 2: Build a Multi-Step Agent
Phase 5: Integrate SK into a .NET App (2-3 Days)
Goal: Embed SK into a real-world .NET application (e.g., an ASP.NET Core API or a desktop app) to serve AI capabilities.
Step 1: Build an SK-Powered API
Step 2: Build a Chat UI with React (Optional)
Phase 6: Advanced Topics (Ongoing)
Key Resources to Bookmark
If You Still Encounter Issues
Let me know if you need further clarification or additional resources! 😊