Skip to content

Commit e58d8d3

Browse files
committed
add custom connection and serp connection in AI studio
1 parent 2f5c2dd commit e58d8d3

File tree

6 files changed

+24
-3
lines changed

6 files changed

+24
-3
lines changed
40.3 KB
Loading
36.3 KB
Loading

articles/ai-studio/how-to/prompt-flow-tools/python-tool.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,8 +113,14 @@ Create a custom connection that stores all your LLM API KEY or other required cr
113113

114114
1. Go to Prompt flow in your workspace, then go to **connections** tab.
115115
2. Select **Create** and select **Custom**.
116-
1. In the right panel, you can define your connection name, and you can add multiple *Key-value pairs* to store your credentials and keys by selecting **Add key-value pairs**.
117-
116+
3. In the right panel, you can define your connection name, and you can add multiple *Key-value pairs* to store your credentials and keys by selecting **Add key-value pairs**.
117+
4. Besides your key value pairs, please also add following extra meta data to the connection:
118+
- azureml.flow.connection_type: Custom
119+
- azureml.flow.module: promptflow.connections
120+
121+
:::image type="content" source="./media/python_tool/custom_connection_meta.png" alt-text="Screenshot that shows add extra meta to custom connection in AI studio" lightbox = "./media/python_tool/custom_connection_meta.png":::
122+
123+
118124
> [!NOTE]
119125
> - You can set one Key-Value pair as secret by **is secret** checked, which will be encrypted and stored in your key value.
120126
> - Make sure at least one key-value pair is set as secret, otherwise the connection will not be created successfully.

articles/ai-studio/how-to/prompt-flow-tools/serp-api-tool.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,12 @@ Create a Serp connection:
2929
1. Sign in to [Azure AI Studio](https://studio.azureml.net/).
3030
1. Go to **Settings** > **Connections**.
3131
1. Select **+ New connection**.
32-
1. Complete all steps in the **Create a new connection** dialog box.
32+
1. Create a custom connection with the following details:
33+
- azureml.flow.connection_type: Serp
34+
- azureml.flow.module: promptflow.connections
35+
- api_key: <Your Serp API key>, please mark it as a secret.
36+
37+
:::image type="content" source="./media/serp_api_tool/serp_connection_meta.png" alt-text="Screenshot that shows add extra meta to custom connection in AI studio" lightbox = "./media/python_tool/serp_connection_meta.png":::
3338

3439
The connection is the model used to establish connections with Serp API. Get your API key from the SerpAPI account dashboard.
3540

40.3 KB
Loading

articles/machine-learning/prompt-flow/tools-reference/troubleshoot-guidance.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,3 +198,13 @@ In prompt flow, on flow page with successful run and run detail page, you can fi
198198
You may encounter 409 error from Azure OpenAI, it means you have reached the rate limit of Azure OpenAI. You can check the error message in the output section of LLM node. Learn more about [Azure OpenAI rate limit](../../../ai-services/openai/quotas-limits.md).
199199

200200
:::image type="content" source="../media/faq/429-rate-limit.png" alt-text="Screenshot that shows 429 rate limit error from Azure OpenAI." lightbox = "../media/faq/429-rate-limit.png":::
201+
202+
## Connection run related issues
203+
204+
### Why I can't find the custom connection in the connection list in AI studio?
205+
206+
To use custom connection created in AI studio in prompt flow, you need add following extra meta data to the connection:
207+
208+
- azureml.flow.connection_type: Custom
209+
- azureml.flow.module: promptflow.connections
210+

0 commit comments

Comments
 (0)