Azure-Samples / graphrag-accelerator

One-click deploy of a Knowledge Graph powered RAG (GraphRAG) in Azure
https://github.com/microsoft/graphrag
MIT License
1.65k stars 250 forks source link

[BUG] APIM deploy failure due to missing file #138

Closed Brandomite closed 1 month ago

Brandomite commented 1 month ago

Describe the bug "message":"At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/arm-deployment-operations for usage details.","details":[{"code":"BadRequest","message":"<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01//EN\"\"http://www.w3.org/TR/html4/strict.dtd\" Not FoundHTTP Error 404. The requested resource is not found.

The link("http://www.w3.org/TR/html4/strict.dtd\") in the error brings me to a 404 page. It appears the backslash in the link causes this. Removing the backslash resolves this issue.

Parameters: "GRAPHRAG_API_BASE": "https://example.openai.azure.com", "GRAPHRAG_API_VERSION": "2023-03-15-preview", "GRAPHRAG_EMBEDDING_DEPLOYMENT_NAME": "text-embedding-ada-002", "GRAPHRAG_EMBEDDING_MODEL": "text-embedding-ada-002", "GRAPHRAG_LLM_DEPLOYMENT_NAME": "gpt-4_001", "GRAPHRAG_LLM_MODEL": "gpt-4", "LOCATION": "westus2", "RESOURCE_GROUP": "rg", "RESOURCE_BASE_NAME": "graph"

To Reproduce Steps to reproduce the behavior:

  1. login to Azure with az login --use-device-login
  2. cd infra
  3. bash deploy.sh -p deploy.parameters.json

Expected behavior No error when deploying APIM

Screenshots Test retrieve resource returns internal server error.

image image

Desktop (please complete the following information):

Additional context I doubt these would cause any further issues but these are additional modifications that needed to be implemented to work in our organization.

AKS enableEncryptionAtHost = true.

I also had to include these two in helm/graphrag/values.yaml annotations. kubernetes.io/ingress.allow-http: "false"
nginx.ingress.kubernetes.io/force-ssl-redirect: "true"

Brandomite commented 1 month ago

I have tried to reproduce this again and am unable to do so.