Azure-Samples / azure-search-openai-javascript

A TypeScript sample app for the Retrieval Augmented Generation pattern running on Azure, using Azure AI Search for retrieval and Azure OpenAI and LangChain large language models (LLMs) to power ChatGPT-style and Q&A experiences.
MIT License
252 stars 130 forks source link

Scripts `index-data` can't read the Node.js path correctly, when running `azd up` on Windows #141

Closed v-jiaodi closed 11 months ago

v-jiaodi commented 1 year ago

Describe the issue: After running azd up, click web link to ask question on Windows, get error as follow: image By checking the logs of azd up, it was found that there were error logs causing the above issue.

image

Through investigation, it was found that the installation path of nodejs cannot be read normally. For Windows environment, nodejs is installed in the folder Program Files by default. This folder name contains spaces, which causes a reading error.

Repro Steps:

  1. Run azd auth login
  2. Run azd init -t azure-search-openai-javascript
  3. Run azd up

Environment:

Expected behavior: Run azd up can pass without error logs.

@sinedied and @charris-msft for notification.