microsoft / OpenAIWorkshop

workshop materials to build intelligent solutions on Open AI
MIT License
480 stars 282 forks source link

scenarios/openai_on_custom_dataset Power Apps error #93

Closed SQLSprint closed 1 year ago

SQLSprint commented 1 year ago

I get a Power Apps error with scenarios/openai_on_custom_dataset.

I edited the Openaisummarization flow to specify the correct Azure function endpoint and key, and the Power App successfully calls the Azure function.

However, the "Apply to each" step (6 out of 8) of the Openaisummarization flow within Power Apps fails with:

"ExpressionEvaluationFailed. The execution of template action 'Apply_to_each' failed: the result of the evaluation of 'foreach' expression '@body('Parse_JSON')?['choices']' is of type 'Null'. The result must be a valid array."

SQLSprint commented 1 year ago

I mistakenly installed the Power App from:

scenarios/powerapp_and_python/powerapp

rather than

scenarios/openai_on_custom_dataset/powerapp

as scenarios/openai_on_custom_dataset/PowerApp.md refers to "the powerapp folder" with no link.

My mistake, but scenarios/openai_on_custom_dataset/PowerApp.md should link to the correct powerapp folder for clarity.