Hello @Sworna M Dunant,
I understand that you're running into an issue with the Azure OpenAI Service, specifically the "DeploymentNotFound" error. This typically means that the API deployment you're trying to access doesn't exist, which can happen for a few reasons.
To troubleshoot this further, you may consider the following steps:
Make sure the deployment name specified in your API request exactly matches the name you used when creating the deployment in the Azure portal.
If you just created the deployment, it's possible the deployment hasn't fully propagated yet. Azure may take a few minutes to make it available. Wait about 5-10 minutes and try your request again.
Use the appropriate endpoint to verify the status of your deployments. For example, you can run the following request:
curl -X GET \
-H "Ocp-Apim-Subscription-Key: {API-KEY}" \
-H "Content-Type: application/json" \
'https://{ENDPOINT}/language/query-knowledgebases/projects/{PROJECT-NAME}/deployments/production/jobs/{JOB-ID}?api-version=2021-10-01'
Make sure to replace {API-KEY}
, {ENDPOINT}
, {PROJECT-NAME}
, and {JOB-ID}
with your actual values.
Sometimes, there could be an ARM cache or replication issue. To handle this, consider adding a delay in your deployment process to allow Azure time to update the cache.
I hope this helps, do let me know if you have further queries.
Thank you!