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

when deploying some values are not getting from GRAPHRAG_API_BASE #130

Closed jamil77944 closed 4 weeks ago

jamil77944 commented 1 month ago

Hi Below is the error I receive when I try with github actions:

image

Looks like GRAPHRAG_API_BASE and possibly other values are not storing in the variable.

Please let me know if I am missing any steps.

jamil77944 commented 1 month ago

I have set this variable in a file called main.parameters.json

timothymeyers commented 1 month ago

@jamil77944 are you calling your deploy script like ./deploy.sh -p main.parameters.json (or bash deploy.sh -p main.parameters.json) from the /infra directory? Is that parameter file stored in the /infra directory?

Could you share a snip of your main.parameters.json file (sanitized)?

Can you share more of the deploy.sh run output that happens before that error?

jamil77944 commented 1 month ago
image

Is this the right approach?

jamil77944 commented 1 month ago

i have set that up in deploy.parameters.json

timothymeyers commented 1 month ago

@jamil77944 in a previous comment you mentioned main.parameters.json but I see that you are using deploy.parameters.json - confirm you're using the right file please.

In your action runner step, I see you setting the account but I don't see a step to log into Azure. Is that happening in a previous job or step somewhere?

jamil77944 commented 1 month ago

@timothymeyers sorry it is deploy.parameters.json.

image I have modified the step also to include bash. But I get the same error running through github actions. Do you believe it is because I am logging in with a service principal? the service principal has the owner level in the resource group

timothymeyers commented 1 month ago

No it looks like your GRAPHRAG_API_BASE is not set properly or there is no deployment of Azure Open AI in your subscription corresponding with the GRAPHRAG_API_BASE you've provided.

What is it set to in deploy.parameters.json? It should look like "https://<Azure-Open-AI-Resource>.openai.azure.com/"

This is the line causing the error. It is essentially querying your subscription to verify that the instance of Azure Open AI exists and returning the name of that resource. So, either the name is incorrect, or the resource does not exist in your subscription.

jamil77944 commented 1 month ago

Screenshot 2024-08-09 110323 This is how I set in deploy.parameters.json

timothymeyers commented 1 month ago

is your AOAI resource in the same subscription as your deployment?

jgbradley1 commented 1 month ago

@jamil77944 Are you able to try this deployment in eastus2 instead of East US? I've heard some users are having trouble deploying in eastus even when quota appears to be fine and we're still investigating the issue. I think it could be an issue specific to the eastus region.

jamil77944 commented 1 month ago

I see. Thank you so much. I was able to deploy locally inside eastus region. I could not do it with github actions. I will try it with eastus2