-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Add comprehensive Lesson 03.1 with 11 single-file .NET AI demos and cross-platform execution scripts #252
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Co-authored-by: elbruno <[email protected]>
@copilot do not implement that script to emulate .NET 10 script. Let's assume that .NET 10 is a prerequisite and will be installed on the dev machine. Also, review all the projects in the original Lesson 03 [https://github.com/microsoft/Generative-AI-for-beginners-dotnet/tree/main/03-CoreGenerativeAITechniques/src], and create the single cs file version so they can be run and added to the current lesson. update the generated markdown to cover the topics so the users who gets to the repo can learn about it |
…covering all original Lesson 03 scenarios Co-authored-by: elbruno <[email protected]>
I've implemented your requested changes in commit 3fd6b29: ✅ Removed the run-demo.sh script - Now assumes .NET 10 is installed and uses direct ✅ Added 5 new comprehensive single-file demos covering scenarios from the original Lesson 03:
✅ Updated documentation to cover all learning topics with multiple learning paths (Quick Start, Comprehensive, Multimodal Focus, Privacy/Local, Enterprise/Cloud) The lesson now includes 11 total demos covering the full scope of the original Lesson 03 projects but in simplified single-file format, ready for .NET 10's direct execution capability. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@copilot bring back the run-demo script, and also generate a version for windows in PowerShell
update the documentation to explain that if .NET 10 if not present, this is an option to run the single file demo C# apps
Co-authored-by: elbruno <[email protected]>
I've added the run-demo scripts as requested in commit 157dd26: ✅ Restored Both scripts simulate .NET 10's
The documentation clearly explains these as alternatives for users without .NET 10. |
This PR implements a modernized version of Lesson 03 using .NET 10's
dotnet run file.cs
capability with comprehensive single-file C# demos that cover all core generative AI techniques. Additionally, it provides cross-platform fallback scripts for users without .NET 10.What's Added
New Lesson Structure
03.0-CoreGenerativeAITechniques-Overview/
- Comprehensive overview with reorganized learning paths03.1-CoreGenerativeAITechniques-runapp/
- Complete set of single-file demos with minimal boilerplateEleven Complete Single-File AI Demos
Core AI Techniques:
01-llm-completion.cs
- Basic text completions with sentiment analysis02-chat-flow.cs
- Interactive chat with conversation memory and streaming03-functions-and-plugins.cs
- AI function calling with custom tools04-retrieval-augmented-generation.cs
- Simplified RAG with keyword-based search05-structured-output.cs
- JSON response parsing with multiple real-world examples06-multimodal.cs
- Vision AI for image analysis from URLs and local filesProvider-Specific Demos:
7.
07-ollama-local-models.cs
- Local AI processing with Ollama (privacy-focused)8.
08-azure-image-generation.cs
- DALL-E image generation with Azure OpenAI9.
09-semantic-kernel-chat.cs
- Interactive chat using Semantic Kernel framework10.
10-azure-functions.cs
- Function calling with Azure OpenAI (enterprise patterns)11.
11-advanced-rag-vectors.cs
- Vector-based semantic search with embeddingsCross-Platform Execution Scripts
For .NET 10 Users (Recommended):
For Users Without .NET 10:
The fallback scripts create temporary .NET projects with all necessary dependencies, providing the same experience as .NET 10's direct file execution.
Key Features
🎯 Comprehensive Coverage
🚀 Modern .NET Patterns
📚 Multiple Learning Paths
🔄 Cross-Platform Compatibility
This modernization makes Core Generative AI techniques accessible through simplified single-file examples while maintaining educational depth and ensuring compatibility across different .NET versions and platforms.
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.