Skip to content

Commit feca1c7

Browse files
authored
Merge pull request #265051 from cloga/lochen/conn-ai-studio
add custom connection and serp connection in AI studio
2 parents cf552b8 + 58fe95c commit feca1c7

File tree

5 files changed

+15
-4
lines changed

5 files changed

+15
-4
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/serp-api-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

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,4 +197,4 @@ In prompt flow, on flow page with successful run and run detail page, you can fi
197197

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

200-
:::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":::
200+
:::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":::

0 commit comments

Comments
 (0)