Skip to content

Commit

Permalink
update behavior of default values
Browse files Browse the repository at this point in the history
  • Loading branch information
jgbradley1 committed Jun 18, 2024
1 parent 7a8d270 commit a3de432
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
4 changes: 1 addition & 3 deletions backend/src/meta_agent/community/retrieve.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,7 @@
VectorStoreSearchResult,
)

cognitive_services_endpoint = os.environ.get(
"GRAPHRAG_COGNITIVE_SERVICES_ENDPOINT", ""
)
cognitive_services_endpoint = os.environ["GRAPHRAG_COGNITIVE_SERVICES_ENDPOINT"]
token_provider = get_bearer_token_provider(
DefaultAzureCredential(), cognitive_services_endpoint
)
Expand Down
4 changes: 1 addition & 3 deletions backend/src/meta_agent/global_search/retrieve.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,7 @@
GlobalSearchLLMCallback,
)

cognitive_services_endpoint = os.environ.get(
"GRAPHRAG_COGNITIVE_SERVICES_ENDPOINT", ""
)
cognitive_services_endpoint = os.environ["GRAPHRAG_COGNITIVE_SERVICES_ENDPOINT"]
token_provider = get_bearer_token_provider(
DefaultAzureCredential(), cognitive_services_endpoint
)
Expand Down
6 changes: 3 additions & 3 deletions docs/DEPLOYMENT-GUIDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,9 @@ In the `deploy.parameters.json` file, provide values for the following required
`GRAPHRAG_EMBEDDING_DEPLOYMENT_NAME` | | Yes | Deployment name of the Azure OpenAI embedding model.
`APIM_NAME` | | No | Hostname of the API. Must be a globally unique name. The API will be accessible at `https://<APIM_NAME>.azure-api.net`. If not provided a unique name will be generated.
`RESOURCE_BASE_NAME` | | No | Suffix to apply to all azure resource names. If not provided a unique suffix will be generated.
`AISEARCH_ENDPOINT_SUFFIX` | | No | Suffix to apply to AI search endpoint. Will default to `search.windows.net` for Azure commercial cloud but should be defined for deployments in other Azure clouds.
`REPORTERS` | | No | The type of logging to enable. If not provided, logging will be saved to a file in Azure Storage and to the console in AKS
`GRAPHRAG_COGNITIVE_SERVICES_ENDPOINT` | | No | Endpoint for cognitive services identity authorization. Will default to `https://cognitiveservices.azure.com/.default` for azure commercial cloud but should be defined for deployments in other Azure clouds.
`AISEARCH_ENDPOINT_SUFFIX` | | No | Suffix to apply to AI search endpoint. Will default to `search.windows.net` for Azure Commercial cloud but should be overriden for deployments in other Azure clouds.
`REPORTERS` | | No | The type of logging to enable. If not provided, logging will be saved to a file in Azure Storage and to the console in AKS.
`GRAPHRAG_COGNITIVE_SERVICES_ENDPOINT` | | No | Endpoint for cognitive services identity authorization. Will default to `https://cognitiveservices.azure.com/.default` for Azure Commercial cloud but should be defined for deployments in other Azure clouds.

## 5. Deploy the solution accelerator
```
Expand Down
4 changes: 4 additions & 0 deletions infra/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,10 @@ populateOptionalParams () {
REPORTERS="blob,console"
printf "\tsetting REPORTERS=blob,console\n"
fi
if [ -z "$GRAPHRAG_COGNITIVE_SERVICES_ENDPOINT" ]; then
GRAPHRAG_COGNITIVE_SERVICES_ENDPOINT="https://cognitiveservices.azure.com/.default"
printf "\tsetting GRAPHRAG_COGNITIVE_SERVICES_ENDPOINT=$GRAPHRAG_COGNITIVE_SERVICES_ENDPOINT\n"
fi
printf "Done.\n"
}

Expand Down

0 comments on commit a3de432

Please sign in to comment.