What we will build and learn
The customer problem, the finished application and the Azure skills you will practise.
A product retailer has manuals that customers and support staff must search for answers. We will deploy an assistant that answers questions from those manuals.
One workshop run is expected to cost less than NOK 50 before tax using the lab settings and cleaning up after the final test. Azure cost details
Customer benefit
The goal is less time searching documents and fewer repetitive support questions. Answers include the supporting manual passages, so users can check specifications and instructions. When the manuals cannot answer a question, the assistant says so.
Example: “Does the Harbor Travel Kettle work on 110 V?” The assistant points to the manual's 220–240 V requirement rather than guessing.
What we will do
- Deploy and test Products. Sign in, upload one manual and find its blob.
- Deploy and test ProductsEmbedder. Upload a new manual and verify that indexing makes it ready.
- Deploy and test ProductsChat. Ask a question about the indexed manual and trace the reply through the worker.
- Test the full chain and clean up. Follow one fresh upload all the way to a cited answer.
The application code is supplied. The chapters show how to build images, deploy infrastructure, grant access, and verify the running system with the tools you use at work.
What you will learn
- Containers: build, tag and push Docker images; deploy and inspect AKS Pods, Services, probes, logs and rollouts.
- Events: connect Blob uploads through Event Grid to a small Python Function; distinguish notifications from queued work.
- Data and RAG: apply Flyway migrations, chunk manuals, create embeddings and retrieve filtered evidence with PostgreSQL/pgvector.
- Asynchronous chat: use Service Bus request/reply, persistent state, correlation IDs and retry-safe processing.
- Identity and configuration: use managed/workload identity, Key Vault secrets and App Configuration settings.
- Operations Read logs and verify deployment and cleanup.
Before you start
- Azure An active subscription, resource and role assignment permissions, and model and VM quota.
- Local Azure CLI, Bicep, Docker, kubectl, and Git. Use Windows PowerShell on Windows or Bash on Linux. The Docker engine runs Linux containers on both platforms.
Start with the tool checks. Run the commands on the site and save each Bicep template when its chapter calls for it. Allow about 3½ hours after setup.
If a step fails, give your AI assistant the chapter, the command you ran, and the exact error. Remove passwords, tokens, and webhook URLs before sharing.
Applications and source code
| Application / source repo | Responsibility |
|---|---|
| Products | Java 21 / Spring Boot on AKS. Server-rendered upload/chat UI; JDBC, PostgreSQL and Flyway. Always at least one replica. |
| ProductsEmbedder | Python Function. Reads uploaded manuals, creates chunks/embeddings and stores them in pgvector. |
| ProductsChat | Python worker on AKS. Retrieves chunks, calls the chat model and replies through Service Bus. Runs as one worker replica. |
Each app's chapter includes its clone command. To get all three at once, run these from the ai200-lab folder.
git clone https://github.com/tuba-labs/ai-200-products-chat.git
git clone https://github.com/tuba-labs/ai200-workshop1-products-embedder.git
git clone https://github.com/tuba-labs/ai200-workshop1-products.git
Upload and indexing flow
Question and answer flow
Use the shared term tooltips for definitions. The reference notes cover costs and design tradeoffs.