Azure-Samples / azure-search-openai-demo

A sample app for the Retrieval-Augmented Generation pattern running in Azure, using Azure AI Search for retrieval and Azure OpenAI large language models to power ChatGPT-style and Q&A experiences.
https://azure.microsoft.com/products/search
MIT License
6k stars 4.11k forks source link

.\scripts\prepdocs.ps1 return error #209

Open Farhad-Heybati opened 1 year ago

Farhad-Heybati commented 1 year ago

Please provide us with the following information:

This issue is for a: (mark with an x)

- [ X] bug report -> please search issues before submitting
- [ ] feature request
- [ ] documentation issue or request
- [ ] regression (a behavior that used to work and stopped in a new release)

Minimal steps to reproduce

Run azd init -t azure-search-openai-demo

Any log messages given by the failure

Executing postprovision hook => .\scripts\prepdocs.ps1

Loading azd .env file from current environment

MethodInvocationException: C:\tmp\openai-search\azure-search-openai-demo-main\scripts\prepdocs.ps1:10 Line | 10 | [Environment]::SetEnvironmentVariable($name, $value) | ~~~~~~~~~~~~ | Exception calling "SetEnvironmentVariable" with "2" argument(s): "The value cannot be an empty string. | (Parameter 'variable')"

Expected/desired behavior

OS and Version?

Windows 7, 8 or 10. Linux (which distribution). macOS (Yosemite? El Capitan? Sierra?) Windows 11

azd version?

run azd version and copy paste here. azd version 0.9.0-beta.2 (commit afa7ac6e839be8304b86b3df6b8525a97e48a532)

Versions

Mention any other details that might be useful


Thanks! We'll be in touch soon.

Farhad-Heybati commented 1 year ago

Run: azd init -t azure-search-openai-demo azd up

makalan604 commented 1 year ago

I am having the same issue as well. I think it's not uploading any of the pdfs either.

katarinasvedman-ms commented 1 year ago

I had the same issue but I had an old version of Python. After update to latest stable Python and making sure it's in the path it worked fine. Read the pre-req and make sure your version is good.

makalan604 commented 1 year ago

i also resolve by making sure there are no spaces in any of the folders that lead to the main folder.

github-actions[bot] commented 9 months ago

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this issue will be closed.