Section 11: Lab: Structuring an AI App with Aspire
- What Aspire is: the AppHost, service defaults and the dashboard for logs, traces and metrics
- Add Qdrant as a resource in the AppHost with the Qdrant hosting integration
- Wire the API and web frontend to Qdrant and the model provider through Aspire configuration
- Pass connection strings and keys safely between services
- Lab: lay out the capstone solution and run every service with one command
Section 12: Capstone 1: Product Search with Vector Search
- Prepare sample product data and design the record stored in Qdrant
- Create product embeddings and load them into Qdrant through a background job
- Build a natural-language search endpoint with filters for category and price range
- Compare semantic search results with traditional keyword search
- Lab: a product search page that understands questions in Thai
Section 13: Capstone 2: A Shopping Assistant Chat
- Combine RAG over the catalogue with function calling for stock and order checks
- Stream answers and show the referenced products in the chat page
- Use a local model for testing and a cloud model when higher quality is needed
- Handle errors, timeouts and an unresponsive model provider
- Workshop: test the assistant with a set of real questions and refine the prompts
Section 14: Lab: Evaluation, Cost, Caching and Telemetry
- Evaluate answer quality with Microsoft.Extensions.AI.Evaluation, for example relevance and groundedness
- Measure token usage per request and pick a model size that fits the job
- Cache repeated responses with Microsoft.Extensions.AI middleware
- Collect logs and traces with OpenTelemetry and view them on the Aspire dashboard
- Lab: add an evaluation test suite to the capstone and rerun it after prompt changes
Section 15: Workshop: Security, PDPA and Next Steps
- Direct and indirect prompt injection hidden in documents, and how to defend against it
- Handle secrets correctly and mask personal data before sending it to external models, in line with PDPA
- An overview of Microsoft Agent Framework and the MCP C# SDK for building agents next
- Workshop: review the capstone with a security checklist, present it and review together