Skip to content

Latest commit

 

History

History
54 lines (37 loc) · 2.21 KB

Setup.md

File metadata and controls

54 lines (37 loc) · 2.21 KB

Azure AI App In a Day Hackathon

Provision Azure Resources

Run bicep deployment locally

  • go to labs\03-LAB-03\1-azure-deployment
  • modify azuredeploy.parameters.json to give resources a good name. e.g. arg-syd-aiapp1day
  • modify deploy-core.ps1
  • sub for demo sub: 9df3a442-42f1-40dd-8547-958c3e01597a
  • rg is in this format, change suffix if needed. replace all placeholders : arg-syd-aiapp1day-anko
  • run the commands in deploy-core.ps1 one by one to create azure resources

Update the shared configuration details in guide

  • AzureOpenAI apikey: the apikey is same for all models. look up the old apikey in the document, search and replace all in the vs code.
  • mongodb connection string: only need to replace the host name part. search and replace all in the vs code.

Deploy the Apps

Deploy 3 node Node.js apps

  • check the .env file and update with new keys and urls.
  • Playground app apps\playground: no config change needed. use vs code to publish the site.
  • API app apps\api: replace .env values (follow .env.demo). use vs code to publish the site.
  • Chatbot app apps\chatbot: replace .env values, point to API app url. use vs code to publish the site. alt text

Test out the 3 websites once deployed

Create Dataset

Populate data to mongodb

  • use db name as aiapp1day_demo
  • go through the setup steps
  • follow below steps to run completed scripts, basically follow lab2 part 2 & 3
  • once done, the chatbot should be able to answer sku questions

Scripts to run

  • labs\03-LAB-03\2-Load-Data\completed> npm install
  • labs\03-LAB-03\2-Load-Data\completed> node .\convert.js
  • labs\03-LAB-03\2-Load-Data\completed> node .\import.js
  • labs\03-LAB-03\2-Load-Data\completed> npm install
  • labs\03-LAB-03\3-Vector-Search\completed> node .\vectorize.js