Code Monkey home page Code Monkey logo

ai-102-aiengineer's Introduction

ai-102-aiengineer's People

Contributors

adnancore avatar bhadreshpsavani avatar c-youssef avatar cavefish avatar chrishowd avatar drguthals avatar graememalcolm avatar hope77777 avatar ivorb avatar jfbilodeau avatar joshuarowetts avatar madiepev avatar massimobonanni avatar mbuchoff avatar mctjon avatar mdragt avatar mihai-ac avatar mkennten avatar moc-labs-review avatar mscalopez avatar msftnutta avatar otaiga avatar rokvisi avatar salimcodes avatar sayedimac avatar sharechiwai avatar shinkashi avatar testertesterson1004 avatar unaihuete93 avatar yashints avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ai-102-aiengineer's Issues

REST API fails due to "gated container". Container should not be gated.

curl -X POST "http://<your_ACI_IP_address_or_FQDN>:5000/text/analytics/v3.0/languages?" -H "Content-Type: application/json" --data-ascii "{'documents':[{'id':1,'text':'Hello world.'},{'id':2,'text':'Salut tout le monde.'}]}"

I followed the instructions. Deleted the container and tried it again as well. The final step fails because my subscription is "not authorized" to work with the Text Analytics Language container image. But this API should not be gated. It's in general availability according to the documentation.

Image 2021-07-14 at 7 04 25 PM

chose 'write an expression' before enter expression.

Lab 14

Task: Implement the weather dialog

Step: 9

Description of issue
You can not paste the expression buy use 'T' button. You must choose first "write an expression"  from the drop down list then enter the value.

Please update the instructions.

Microsoft Azure Sponsorship Pass does not have microsoft.insights registered by default

Module: 00

Lab/Demo: 03

Task: Configure an alert

Step: 4

Description of issue
When creating an alert for cognitive services, the microsoft.insights resource provider is not registered by default. It was possible to register this through the portal however so perhaps a case of just adding an instruction.

Repro steps:

1.Select an cognitive services resource

  1. Click Alerts in the blade menu
  2. Notice that you cannot create an alert condition

Lab 14. Endpoint Errors with Luis

Module: 00

Lab/Demo: 14

Task: Create a Language Understanding resource in Azure

Step: 04

Description of issue
Created LUIS in Portal in Australia, I get an error when restarting the bot. Screen shot

image

Then use LUIS in westus, I get an error later after running in the emulator. 2 Screen shots: 1 is settings and 2 is error:
image

image

Note the difference in the end pointname.

Repro steps:

Double bytes character handling issue

Module: 02

Lab/Demo: 01/02

Task: C# code

Step: 00

Description of issue

Console app can not handle 2 bytes input like Korean,Japanese etc
Please consider this

one idea is adding unicode encoding to console.

            Console.InputEncoding = Encoding.Unicode;
            Console.OutputEncoding = Encoding.Unicode;  

rest-test.cmd host name changed

Running https://github.com/MicrosoftLearning/AI-102-AIEngineer/blob/master/02-cognitive-security/rest-test.cmd
I get error "Couldn't resolve host '...cognitiveservices.azure.com'
until I changed the host name to what appears in the Portal:
https://westus.api.cognitive.microsoft.com

Then I get correct response to userText input "hola":
{"documents":[{"id":"1","detectedLanguage":{"name":"Spanish","iso6391Name":"es","confidenceScore":1.0},"warnings":[]}],"errors":[],"modelVersion":"2021-01-05"}

lab 13 - Suggest placeholders for recourses when deploying bot

Module: 07

Lab/Demo: 01

Task: Create

Step: 00

Description of issue
Please suggest names for placeholder. Student facing too much problems when deploying the bot in a single line.
This is too vague: "The resource IDs you specify must be globally unique strings netween 4 and 42 characters long. "
Also mention that the BotId is the name of the bot

resource-group=ai102timebotrg
botId=ai102timebot
newAppServicePlanName=BotServicePlan
newWebAppName = ai102timebot
appScecret = thesecretpassword
name = BotDeployment

And afterwards, after spending too much time correcting the command, the bot is not working in Azure.

Repro steps:

az deployment group create --resource-group "YOUR_RESOURCE_GROUP" --template-file "deploymenttemplates/template-with-preexisting-rg.json" --parameters appId="YOUR_APP_ID" appSecret="Super$ecretPassw0rd" botId="A_UNIQUE_BOT_ID" newWebAppName="A_UNIQUE_WEB_APP_NAME" newAppServicePlanName="A_UNIQUE_PLAN_NAME" appServicePlanLocation="REGION" --name "A_UNIQUE_SERVICE_NAME"
1.
1.
1.

Lab 20 - Small Typo Can Can

Module: 00

Lab/Demo: 20

Task: Use the OCR API

Step: Preamble

Description of issue
Small Type can can.
Lab14shot4

Repro steps:

'tell me about certification' - do not return expected result

Lab 12

Task: Train and test the knowledge base

Step: 6

Description of issue
The request "tell me about certification" returns more than one result and expected result is not returned.

Repro steps:
When testing from LUIS portal type "tell me about certification". Two results will be returned :
"you can tell where you are... "

image

Lab 11 Using Wav file not in LODS

Module: 05

Lab/Demo: 11 PYTHON

Task: 1

Step: 06

Description of issue
If the user cannot use the microphone there is a wave file to use. The wave file provided is time-in-london.wav the updated instructions did not appear in the lab - also ir referenced a time.wav which was not added into the lab folder, and also the name of the the recognizer is listed as speech_recognizer but in the code it is 'recognizer'.

I was able to get it to work for the user by fixing the code but the wave file asked questions that the LUIS and code was not set up to handle - in short this was a mess - but may be from it not publishing to LODS and having to work with the old and new together.

cheers
Repro steps:

"Deploy and Test the Bot" section gives error in Lab 13

Module: Create a Bot with the Bot Framework SDK

Lab/Demo: AI-102 Lab 13

Task: Deploy and test the bot

Step: 1

Description of issue
Error "Zip deployment failed" is displayed as given below while deploying the bot
Error Details:
Deployment endpoint responded with status code 202
Configuring default logging for the app, if not already enabled
Zip deployment failed. {'id': '3e726d92f6034fe5b253866adb6c1dda', 'status': 3, 'status_text': '', 'author_email': 'N/A', 'author':
'N/A', 'deployer': 'Push-Deployer', 'message': 'Created via a push deployment', 'progress': '', 'received_time': '2021-01-28T18:44:22.5607085Z', 'start_time': '2021-01-28T18:44:23.7717434Z', 'end_time': '2021-01-28T18:47:33.6878712Z', 'last_success_end_time': None, 'complete': True, 'active': False, 'is_temp': False, 'is_readonly': True, 'url': 'https://newwebappks.scm.azurewebsites.net/api/deployments/latest', 'log_url': 'https://newwebappks.scm.azurewebsites.net/api/deployments/latest/log', 'site_name': 'newwebappks'}. Please run the command az webapp log deployment show -n newwebappks -g tear-down

Repro steps:

  1. Create a bot
  2. Package the code files to .zip
  3. Deploy the Bot using below command
    "az webapp deployment source config-zip --resource-group "YOUR_RESOURCE_GROUP" --name "YOUR_WEB_APP_NAME" --src "TimeBot.zip"

Location should be one word

Module: 03

Lab/Demo: 06-translate-text.md

Task: Prepare to use the Translator service

Step: 02

Description of issue
Can we specify that location needs to be one word. E.g. not "Central India" but "centralindia"

Arabic Language is not getting translated , gives error saying "is not valid Latin-1"

Module: AI-102-AIEngineer

Lab/Demo: Lab

Task: AI-102 Lab 1

Step: Use a Rest Interface - Step6

Description of issue:
Arabic Language is not getting translated , gives error as below:

Error message:
"latin-1' codec can't encode characters in position 34-39: Body ('أهلاً،') is not valid Latin-1. Use body.encode('ut
f-8') if you want to send it encoded in UTF-8."

Repro steps:

1.Launch the Cognitive service
2. Call the Text Analytics language detection REST API
3. Enter the Arabic text "أهلاً، كيف حالك"
4. Observe that above mentioned error is displayed.

Speech to Text translation from "en" to "hi" does not display correctly in Lab8

Module: speech-translation

Lab/Demo: AI-102 Lab 8

Task: Implement Speech Translation

Step: 2

Description of issue
On translating English audio to Hindi , the hindi text is not displayed correctly

Repro steps:

1.Use speech to text service
2.Select "hi" language
3.Speak using microphone
4. Observe that Hindi language text is not displayed correctly.

Giving Error "unrecognized arguments: " in setup.cmd of Lab -23

In Lab 23-custom-search-skill, of file setup.cmd,
where it creates the azure storage, create blob container, then upload the files , creates azure cognitive services and azure cognitive search services.
But after running the setup.cmd, when I cross checked it in the portal, I found that it is failing in creating the blob container, and thus unable to upload the files.
I think there is a problem in setting up the azure storage key in the following below line in setup.cmd:-

set key_string=!key_json:[ { "keyName": "key1", "permissions": "Full", "value": "=! set AZURE_STORAGE_KEY=!key_string:" } ]=! call az storage container create --account-name ai102str!unique_id! --name margies --public-access blob --auth-mode key --account-key %AZURE_STORAGE_KEY% --output none call az storage blob upload-batch -d margies -s data --account-name ai102str!unique_id! --auth-mode key --account-key %AZURE_STORAGE_KEY% --output none
Please refer the screenshot for the above error.
Capture

.cmd files can only be run on Windows machines

The lone curl command in some of the rest-test.cmd files can still be used by students using MacOS or Linux by copying and pasting to a Terminal.

But the following command files can only be used by Windows users:

This has huge implications.
First of all, the course description should disclose this limitation at
https://docs.microsoft.com/en-us/learn/certifications/courses/ai-102t00
In the Prerequisites.

Just as there are both C# and Python, will there be both .cmd and bash shell scripts?
Perhaps as student contributions?

Firewall issues

Lab 14

Task: Test the bot

Step: 1

Description of issue
Starting bot hangs. Suppose to ask about firewall issues but does not. Just spin for 5-10 min without any result.
Restarting bot emulator not able to start a second bot because of the error about concurrent access. After killing all processes responsible for bot run next run return firewall request and then start successful.

Fix
Updating instruction or set up firewall on LOD image by clicking button run in composer.

Setup.cmd has unrecognized arguments.

Module: 11

Lab: 21

Task: Gather documents for training

Step: 13

When I run setup.cmd Iget the following error messges
image
azure-cli version:2.25.0 and 2.26.0

"ImageFileCreateBatch object is not iterable" error while using training api to upload images

Module: AI 102- lab18

Lab/Demo: Object Detection

Task: Using Training API for object Detection

Step: 9

Description of issue
"ImageFileCreateBatch object is not iterable" error while using training api to upload images

Repro steps:
1.Create a Custom Vision Project
2.Use the CustomVisionTrainingClient api to upload images
Observe that the error "ImageFileCreateBatch object is not iterable" is displayed

Please use another AD App password, gives errors in PowerShell

Module: 07

Lab/Demo: 01

Task: 00

Step: 00

Description of issue
az ad app create --display-name "TimeBot" --password "Super$ecretPassw0rd" --available-to-other-tenants

Please don't use "Super$ecretPass0rd". When student use powershell in Visual Studio code, or just PowerShell, Powershell doesn't like $ character in double quote string.

It give strange behaviour when deploying the timebot
az deployment group create --resource-group "YOUR_RESOURCE_GROUP" --template-file "deploymenttemplates/template-with-preexisting-rg.json" --parameters appId="YOUR_APP_ID" appSecret="Super$ecretPassw0rd" botId="A_UNIQUE_BOT_ID" newWebAppName="A_UNIQUE_WEB_APP_NAME" newAppServicePlanName="A_UNIQUE_PLAN_NAME" appServicePlanLocation="REGION" --name "A_UNIQUE_SERVICE_NAME"

I have replaced double quotes into single quotes, but that ended up with single quotes in the Web App configuration.

My suggestion: replace $ with 5
--password "Super$ecretPassw0rd" -> --password "Super5ecretPassw0rd"

Repro steps:

  1. Visual studio code with PowerShell terminal
  2. PowerShell

Bot composer improvment

Lab 14

Description of issue

The bot is caching ZIP code entered for the first time and provides the same weather forecast even if you ask "weather" again.

Repro steps:

  • provide recommended instruction ZIP code.
  • ask bot "weather" to enter in the dialog again.
  • bot return weather for previous ZIP code.

Fix

The simple fix is push back the "Delete property" with "user.zipcode" after the IF/ELSE action.  No extra step is required.

Typo in Lab 6, intro paragraph for "Translate text"

Module: 06

Lab/Demo: 06

Task: Translate Text

Introductory text before step 1

Description of issue
the text has a typo where "tou" should be "you." The paragraph should read:

Translate text
Now that your application can determine the language in which reviews are written, you can use the Translator service to translate any non-English reviews into English.

The .env for the python code repeats your_service_principle_tenant_id

Module: 00

Lab/Demo: 02

Task: Use the service principal in an application

Step: 3

Description of issue
The .env for the python code repeats your_service_principle_tenant_id where it should be specific, i.e. YOUR_SERVICE_PRINCIPAL_APP_ID, YOUR_SERVICE_PRINCIPAL_PASSWORD

Repro steps:

no results for 'quiet hotel in New York'

Lab 22

Task: Run the web app

Step: 8

Description of issue

In the Search box, enter a new search for quiet hotel in New York and review the results.

Repro steps:

in search from the web site does not return any results for request "quiet hotel in New York", but return for "quiet hotel" only 1 hotel in London

Capture Error on last step when searching 'London Hotel'

Module: 00

Lab/Demo: 22

Task: Run the web app

Step: 01

Description of issue
Running http://localhost:5000/, when I search London Hotel, I get the following error, I must have done something wrong. PS I am using Python.
image

NOTE: I stopped that this step and did not continue to lab 23 and 24, so I don't blow the Lab away.

Repro steps:

Lab 14: Small typo, simply should be simple.

Module: 00

Lab/Demo: 14

Task: Add a trigger for the dialog

Step: 03 (Grey box)

Description of issue
Small typo Simply instead of Simple. Screen shot highlighed.
lab14shot2

Repro steps:

Website changed for getting API details Video Indexer

Module: 08

Lab/Demo: 16-video-indexer

Task: Use the Video Indexer REST API - Get your API details

Step: 04

Description of issue
Website changed. Instead of Products page and Authorization it is now under Profile and Subscriptions

Current node v16 too new for botframework-cli install

Here's what I got:

$ npm i -g @microsoft/botframework-cli
npm WARN EBADENGINE Unsupported engine {
npm WARN EBADENGINE   package: '@microsoft/[email protected]',
npm WARN EBADENGINE   required: { node: '>=8.0.0 <14' },
npm WARN EBADENGINE   current: { node: 'v16.1.0', npm: '7.11.2' }
npm WARN EBADENGINE }
npm WARN EBADENGINE Unsupported engine {
npm WARN EBADENGINE   package: '@microsoft/[email protected]',
npm WARN EBADENGINE   required: { node: '^10.0.0 || ^12.0.0 || ^13.0.0 || ^14.0.0' },
npm WARN EBADENGINE   current: { node: 'v16.1.0', npm: '7.11.2' }
npm WARN EBADENGINE }
npm WARN EBADENGINE Unsupported engine {
npm WARN EBADENGINE   package: '[email protected]',
npm WARN EBADENGINE   required: { node: '^10.0.0 || ^12.0.0 || ^13.0.0 || ^14.0.0' },
npm WARN EBADENGINE   current: { node: 'v16.1.0', npm: '7.11.2' }
npm WARN EBADENGINE }

added 582 packages, and audited 583 packages in 24s

31 packages are looking for funding
  run `npm fund` for details

found 0 vulnerabilities

This means we need to install node using nvm which enables several versions of node to coexist on the same machine.

images name as parameter for console app.

Lab 16

Description of issue
when you testing images you have to return back to the code and change the name of image rebuild and run again.  
It will be much easier if the images name is provided from the console and have one like 'street.jpg' set up as default value.

White oval circle appears on clicking the data points in the confusion matrix

Module: Create a Language Understanding App

Lab/Demo: AI-102 Lab 9

Task: Perform batch testing

Step: 5

Description of issue
On clicking the different data points in the confusion matrix several times we observe that an white oval circle appears which overlaps on the data points

Repro steps:

1.Create a Language Understanding app
2.Add Intents, Entities and train the app
3.Perform Batch testing and click on the "see results"
4. In the confusion matrix that appears , click on the different data points
Observe that after some time the oval circle appears , which overlaps on the data points.

Small type "he" instead of "the" in Lab 12 QnA Maker

Module: 00

Lab/Demo: 12

Task: Publish the Knowledge Base

Step: Pre steps - Preamble

Description of issue
Small type "he" instead of "the" in Lab 12 QnA Maker at beginning of paragraph preamble.
Repro steps:

Issue with Azure Cognitive Search

Module: 12

Lab/Demo: 23

Task: Search the index

Step: 02 (In Search explorer, in the Query string box, enter the following query string, and then select Search.)

Description of issue
When clicking on the search resource to view 'Search Explorer' , getting error 'Authorization failed. Authentication token failed validation'

Repro steps:

  1. run 'create-search.cmd'
  2. Go to search resource in azure portal and go to search explorer and search a query
    issue

To solve this i tried assigning owner role / Search Index Data Reader/ Search Index Data Contributor roles to the resource/ subscription but all in vain.

Error when trying to run modify-search.cmd

Module:

Lab/Demo: 22-Create-a-search-solution

Task: Use the REST API to update the search solution

Step:

Description of issue

I tried to follow the steps in https://docs.microsoft.com/en-us/learn/modules/create-azure-cognitive-search-solution/8-exercise-search. I'm stuck at step "Use the REST API to update the search solution", when I run modify-search.cmd it fails with error:

Updating the index...
{"error":{"code":"OperationNotAllowed","message":"Existing field 'language' cannot be changed.","details":[{"code":"CannotChangeExistingField","message":"Existing field 'language' cannot be changed."}]}}

and:

Updating the indexer...
{"error":{"code":"","message":"Output field mapping specifies target field 'sentiment' that doesn't exist in the index"}}-----

Please assist!

Fragile key hacking in cmd scripts. For example, lab 24

In, for example, https://github.com/MicrosoftLearning/AI-102-AIEngineer/blob/master/24-knowledge-store/setup.cmd

you have
rem Hack to get storage key
for /f "tokens=*" %%a in (
'az storage account keys list --subscription !subscription_id! --resource-group !resource_group! --account-name ai102str!unique_id! --query "[?keyName=='key1']"'
) do (
set key_json=!key_json!%%a
)
set key_string=!key_json:[ { "keyName": "key1", "permissions": "Full", "value": "=!
set AZURE_STORAGE_KEY=!key_string:" } ]=!

the problem is that it is fragile. The JSON object returned by the query also includes a field "creationTime" and it makes this
fragile key hack to fail. I got the error message:
unrecognized arguments: { creationTime: 2021-06-23T08:08:16.727815+00:00, keyName: key1, permissions: FULL, value: 0IY+kRl4n6wPdPntEd2Hdtx9AoKKQzYoXxhn5mZdNEJ9sJ+fWwsJ9Aohv3ltCioiO+gGnbH6LBtKp7wpFqMRgA== --output none

Potential solution (out of many solutions):

The solution I added was to select the fields explicitly in the query. That is, replacing
"[?keyName=='key1']"

with
"[?keyName=='key1'].{keyName:keyName, permissions:permissions, value:value}"

The whole thing can be simplified by, for example, only selecting "value:value", but then you need to change the script accordingly.

Framework Composer dotnet build fails with .net 5.0 only?

Module: 07

Lab/Demo: 02

Task: 00

Step: 00

Description of issue
Student is facing dotnet build errors in Framework Composer like: microsoft/BotFramework-Composer#4812
In this issue someone suggested: "
I had to uninstall .Net 5, reboot and install to .Net 3.41
…"

The setup instruction says: "NET Core SDK
Download and install from https://dotnet.microsoft.com/download (download .NET Core SDK - not just the runtime)"

Student has installed everything on his local computer: just .Net 5.0 SDK. He didn't install 3.1.

On my machine, I have 3.1 and 5.0 and everything works.

Repro steps:

  1. Bot Framework Composer 1.3.1 (latest version)
  2. .NET SDK 5.0

Requirements.txt File for Python Labs

Module: ALL

Lab/Demo: ALL

Task: ALL

Step: ALL

Description of issue

Feature Request: Would it be possible to include a requirements.txt file for the Python labs? Some learners don't like using the lab environment VM, and want to run the samples from their own machines.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.