Azure-Samples / azure-search-openai-demo-java

This repo is the Java version of Microsoft's sample app for ChatGPT + Enterprise data.
MIT License
67 stars 66 forks source link

prepdocs.ps1 should be updated to use the Invoke-ExternalCommand method #53

Open jongio opened 7 months ago

jongio commented 7 months ago

This allows the code to execute outside of user profile settings:

See example here: https://github.com/Azure-Samples/azure-search-openai-demo-csharp/blob/main/scripts/prepdocs.ps1

github-actions[bot] commented 5 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.

brunoborges commented 1 month ago

@dantelmomsft any thoughts on this one?

dantelmomsft commented 1 month ago

I've tried to update the script using the Invoke-ExternalCommand function definition as provided in the example ( see attached file prepdocs.md)

. It didn't worked as expected: 1) 'log' in STDOUT or STDERR is omitted. so as user not sure what's going on. 2) it fails to run mvn command even if it's available. Same command works when using "Start-Process". See error below: image

@jongio any idea?