Issue creating a Custom Connection #1627
-
'm building my first promptflow application and trying to create connection to the Azure AI Language resource so I can do things like Recognize Entities or extract Key Phrases. I have created a Language Resource in Azure and setup the project so that it will work in VSCode (including the install of the Azure Language package). When adding a Language specific node to my flow, I then try and add a connection. This is where I'm having issues. First I try and create a Custom Connection and get the following template.
The way I'm reading the instructions from Azure AI Language Connection Instructions I need to set the key1 value under config with the Azure Language Service Endpoint and the key2 value under Secrets should be Key value from my Azure Language Service instance. However when I enter the information in both, there is a failure stating that key 2 needs to remain as "". If I just enter the endpoint on key1 and keep key 2 as "" then I get an error in the terminal when pressing the "Create Connection" link in VSCode on the new_Custom_connection.yaml. The terminal error states the following. from promptflow.azure.pf_client import PFClient as PFAzureClient File "C:\Users\miniconda3\envs\pf\Lib\site-packages\promptflow\azure_init.py", line 7, in from ._pf_client import PFClient File "C:\Users\miniconda3\envs\pf\Lib\site-packages\promptflow\azure_pf_client.py", line 8, in from azure.ai.ml import MLClient ModuleNotFoundError: No module named 'azure.ai' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "c:\Users.vscode\extensions\prompt-flow.prompt-flow-1.8.0\pfutil\pfutil.py", line 4, in main() File "c:\Users.vscode\extensions\prompt-flow.prompt-flow-1.8.0\pfutil_pf_vsc_main.py", line 37, in main operate_connection(args) File "c:\Users.vscode\extensions\prompt-flow.prompt-flow-1.8.0\pfutil_pf_vsc_connection.py", line 29, in operate_connection I've also done a pip install of azure-ai-ml but keep getting the error above. Any assistance helping me with what I'm sure is my own stupide mistake would be greatly appreciated! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hi @jessegoraya, sorry for the late response. Seems the module not found issue has already resolved according to the stack overflow. I'd like to clarify currently we only support create local connections. If connection provider is set to cloud, connection creation is not supported. |
Beta Was this translation helpful? Give feedback.
Hi @jessegoraya, sorry for the late response. Seems the module not found issue has already resolved according to the stack overflow. I'd like to clarify currently we only support create local connections. If connection provider is set to cloud, connection creation is not supported.