Azure AI Studio - Script runs indefinitely with no errors or outputs.

Kristada673 0 Reputation points
2024-11-20T09:55:41.11+00:00

I am following this tutorial to get started with Azure AI Studio. The create_search_index.py script ran successfully and created an index. But the get_product_documents.py and chat_with_products.py scripts do not produce any error or output when running, they just keep running indefinitely.

Any idea what might be going on? And what could I try out to fix the issue?

Azure OpenAI Service
Azure OpenAI Service
An Azure service that provides access to OpenAI’s GPT-3 models with enterprise capabilities.
3,386 questions
Azure AI services
Azure AI services
A group of Azure services, SDKs, and APIs designed to make apps more intelligent, engaging, and discoverable.
2,965 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Sina Salam 13,371 Reputation points
    2024-11-22T12:54:31.1366667+00:00

    Hello Kristada673,

    Welcome to the Microsoft Q&A and thank you for posting your questions here.

    I understand that your script runs indefinitely with no errors or outputs in Azure AI Studio.

    In addition to what @SriLakshmi C have answered, check the additional steps below to help diagnose and resolve the problem:

    1. As mentioned, ensure there are no infinite loops in your scripts. You will need to review the logic and confirm that all loops have proper exit conditions.
    2. If your scripts make network or API calls, these calls might be hanging. So, you will have to add timeouts to these calls to prevent them from running indefinitely.
    3. You might not have enough resources to run the script or try to add logging statements to your scripts to track their progress and identify where they might be getting stuck.
    4. Missing or incorrect configurations can cause scripts to hang. So, make sure that any configuration files, dependency or environment variables required by the scripts are correctly set up.
    5. Checking the connection strings, API keys, and other relevant settings and review the settings and configurations in Azure AI Studio to be sure that everything is set up correctly.

    I hope this is helpful! Do not hesitate to let me know if you have any other questions.


    Please don't forget to close up the thread here by upvoting and accept it as an answer if it is helpful.

    0 comments No comments

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.