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
253 stars 131 forks source link

Index isn't created so api returns 500 so chat front end says 'Sorry, we are having some problems. Please try again later.' #200

Closed diberry closed 3 months ago

diberry commented 6 months ago

In Codespaces

  1. azd auth login
  2. azd up
image image image

Deployment succeeded

image

@anfibiacreativa @sinedied @achandmsft

sinedied commented 6 months ago

Seems like the postup script did not run successfully. Could you try running azd hooks run postup to see you have additional debug messages/errors we could use?

EDIT: Additionally, do you have any errors in the indexer container app log stream? Thank you

anfibiacreativa commented 6 months ago

@LianwMS @yungezz This sample is actually ready for testing. MI is already implemented and please see comment from @sinedied above regarding this issue.

anfibiacreativa commented 6 months ago

@diberry could you please retry following the steps above and see what results you're getting now? Thank you!

Armstrong-Kim commented 6 months ago

I was running into the same issue and when I ran the [azd hooks run postup] this was the response { Running postup command hook for project

(✓) Done: Running postup command hook for project (!) Warning: Running postup service hook for indexer (No hook found) (!) Warning: Running postup service hook for search (No hook found) (!) Warning: Running postup service hook for webapp (No hook found)

SUCCESS: Your hooks have been run successfully }

image

sinedied commented 6 months ago

Thanks for the details. I deployed a fresh environment from Codespaces and cannot reproduce the issue, I think it might be related to the environment.

Could you share more information about your current environment to help pinpoint the issue?

Armstrong-Kim commented 6 months ago

OS / Version: Windows 10 Pro PSVersion 5.1.19041.4412 Description: Ubuntu 22.04.3 LTS node -v v19.6.0 npm -v 9.6.6

sinedied commented 6 months ago

@Armstrong-Kim thank you.

Could you try updating Powershell to the latest version (v7+)?

Powershell 5 seems to have an issue with some of the scripts we use in the demo.

dbastin commented 5 months ago

I had the same issue as @diberry (thanks for the screenshots!).

The issue was resolved by (re?)running azd hooks run postup as instructed. Many thanks!

azure-search-openai-javascript ff72fa5 OS / Version: Mac OS (Sonoma 14.2.1) Docker Desktop: 4.27.1 (136059) azd version 1.9.3 node -v v21.6.1 npm -v 10.2.4

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

github-actions[bot] commented 3 months ago

This issue was closed because it has been stalled for 7 days with no activity.