Empty dropdown for Custom Connection in Prompt Flow

Nils Fragel 20 Reputation points
2024-02-21T19:48:01.28+00:00

I am building a prompt flow that pulls data from a Postgresql database through a Python code node. However, when I try to use a Custom Connection that I've set up, the dropdown menu for selecting it in the Python node says "No results found." Is there a solution to this issue, or is it a known problem? Here's a reference to what I'm working on: https://learn.microsoft.com/en-us/azure/ai-studio/how-to/prompt-flow-tools/python-tool#consume-custom-connection-in-the-python-tool

Azure OpenAI Service
Azure OpenAI Service
An Azure service that provides access to OpenAI’s GPT-3 models with enterprise capabilities.
4,101 questions
{count} votes

Accepted answer
  1. Saurabh Sharma 23,851 Reputation points Microsoft Employee Moderator
    2024-02-23T07:02:40.31+00:00

    Hi @Fragel, Nils

    I have got the information that this looks like a known issue in Azure AI studio, where you need an extra metadata to create a custom connection to use it in Azure AI Studio.

    Please add the following custom keys to your existing customer connection:

    • azureml.flow.connection_type: Custom
    • azureml.flow.module: promptflow.connections

    Please refer to the documentation.

    I have tested this and now I am able to see the connection in the drop-down list. (Please check the screenshot below)

    User's image

    Prompt FlowUser's image

    Please let me know if you have any questions.

    Thanks

    Saurabh

    Please 'Accept as answer' and Upvote if it helped so that it can help others in the community looking for help on similar topics.

    1 person found this answer helpful.

0 additional answers

Sort by: Most 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.