What we will build and learn

The customer problem, the finished application and the Azure skills you will practise.

~15 min

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

  1. Deploy and test Products. Sign in, upload one manual and find its blob.
  2. Deploy and test ProductsEmbedder. Upload a new manual and verify that indexing makes it ready.
  3. Deploy and test ProductsChat. Ask a question about the indexed manual and trace the reply through the worker.
  4. 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 repoResponsibility
ProductsJava 21 / Spring Boot on AKS. Server-rendered upload/chat UI; JDBC, PostgreSQL and Flyway. Always at least one replica.
ProductsEmbedderPython Function. Reads uploaded manuals, creates chunks/embeddings and stores them in pgvector.
ProductsChatPython 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
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
ProductsCommit product + manual ID
Private blobUpload .txt
Event Grid → FunctionRead, chunk, embed
PostgreSQLStore vectors; mark ready
Upload success precedes indexing completion. Event Grid carries a notification; the Function reads the blob separately.
Question and answer flow
Products + DBPersist question + outbox
Request queueService Bus
Chat workerEmbed → retrieve → generate
Reply queue → ProductsPersist answer; browser polls
Persistent request/correlation IDs connect the flow. Embeddings find evidence; the LLM generates the answer.

Use the shared term tooltips for definitions. The reference notes cover costs and design tradeoffs.

Verification: identify the customer problem and the upload → indexing → cited-answer flow, then check prerequisites.
Search the workshop