form-recognizer studio: Document Intelligence Service endpoint configuration

Thomas Christof 0 Reputation points
2024-12-17T14:23:25.5033333+00:00

NOTE: I did ask this question before, but the other post leads to a 404?! Please close the first post and not this one. Thanks

There is little information online for the form-recognizer studio YML configuration. When we spin up the studio and the form-recognizer container, we always have to provide the Document Intelligence Service endpiont. Similar to the custom-template container, we thought we can simply set the AzureCognitiveServiceLayoutHost variable. However, that does not work. We tried to "bruteforce" settings like

AzureCognitiveServiceLayoutHost

Endpoint

AzureCognitiveServiceEndpoint

...

without any positive result. Is there a way to set the endpoint within the YML for the studio?

Azure AI Document Intelligence
Azure AI Document Intelligence
An Azure service that turns documents into usable data. Previously known as Azure Form Recognizer.
1,812 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Pavankumar Purilla 1,965 Reputation points Microsoft Vendor
    2024-12-18T00:33:28.6933333+00:00

    Hi Thomas Christof
    Greetings & Welcome to Microsoft Q&A forum! Thanks for posting your query!

    When configuring the Document Intelligence Service with Azure Cognitive Services Studio, the service endpoint is typically not set directly within the YML configuration file for Studio. Instead, the endpoint is often managed through environment variables or programmatically within your code. To configure the endpoint, you can set environment variables like AZURE_FORM_RECOGNIZER_ENDPOINT or AZURE_COGNITIVE_SERVICES_ENDPOINT, which are recognized by the Azure SDKs and tools for authentication and interaction with the service. If you are using the Azure SDK, you can directly include the endpoint in your client configuration, as seen in example code where the endpoint and API key are passed to the DocumentAnalysisClient. Additionally, for API calls, the endpoint is typically provided as part of the request rather than relying on the Studio configuration. To ensure that the correct endpoint is used, verify that the appropriate environment variables are set or that the endpoint is directly included in your code or API calls.

    Hope this helps. Do let us know if you have any further queries.


    If this answers your query, do click Accept Answer and Yes for was this answer helpful.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.