You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/ai-studio/how-to/prompt-flow-tools/llm-tool.md
+34-36Lines changed: 34 additions & 36 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
---
2
2
title: LLM tool for flows in Azure AI Studio
3
3
titleSuffix: Azure AI Studio
4
-
description: This article introduces the LLM tool for flows in Azure AI Studio.
4
+
description: This article introduces you to the large language model (LLM) tool for flows in Azure AI Studio.
5
5
manager: scottpolly
6
6
ms.service: azure-ai-studio
7
7
ms.custom:
@@ -17,74 +17,72 @@ author: lgayhardt
17
17
18
18
[!INCLUDE [Azure AI Studio preview](../../includes/preview-ai-studio.md)]
19
19
20
-
The prompt flow *LLM* tool enables you to use large language models (LLM) for natural language processing.
20
+
To use large language models (LLMs) for natural language processing, you use the prompt flow LLM tool.
21
21
22
22
> [!NOTE]
23
23
> For embeddings to convert text into dense vector representations for various natural language processing tasks, see [Embedding tool](embedding-tool.md).
24
24
25
25
## Prerequisites
26
26
27
-
Prepare a prompt as described in the [prompt tool](prompt-tool.md#prerequisites) documentation. The LLM tool and Prompt tool both support [Jinja](https://jinja.palletsprojects.com/en/3.1.x/) templates. For more information and best practices, see [prompt engineering techniques](../../../ai-services/openai/concepts/advanced-prompt-engineering.md).
27
+
Prepare a prompt as described in the [Prompt tool](prompt-tool.md#prerequisites) documentation. The LLM tool and Prompt tool both support [Jinja](https://jinja.palletsprojects.com/en/3.1.x/) templates. For more information and best practices, see [Prompt engineering techniques](../../../ai-services/openai/concepts/advanced-prompt-engineering.md).
28
28
29
29
## Build with the LLM tool
30
30
31
31
1. Create or open a flow in [Azure AI Studio](https://ai.azure.com). For more information, see [Create a flow](../flow-develop.md).
32
32
1. Select **+ LLM** to add the LLM tool to your flow.
33
33
34
-
:::image type="content" source="../../media/prompt-flow/llm-tool.png" alt-text="Screenshot of the LLM tool added to a flow in Azure AI Studio." lightbox="../../media/prompt-flow/llm-tool.png":::
34
+
:::image type="content" source="../../media/prompt-flow/llm-tool.png" alt-text="Screenshot that shows the LLM tool added to a flow in Azure AI Studio." lightbox="../../media/prompt-flow/llm-tool.png":::
35
35
36
36
1. Select the connection to one of your provisioned resources. For example, select **Default_AzureOpenAI**.
37
-
1. From the **Api** drop-down list, select *chat* or *completion*.
38
-
1. Enter values for the LLM tool input parameters described [here](#inputs). If you selected the *chat* API, see [chat inputs](#chat-inputs). If you selected the *completion* API, see [text completion inputs](#text-completion-inputs). For information about how to prepare the prompt input, see [prerequisites](#prerequisites).
39
-
1. Add more tools to your flow as needed, or select **Run** to run the flow.
40
-
1. The outputs are described [here](#outputs).
41
-
37
+
1. From the **Api** dropdown list, select **chat** or **completion**.
38
+
1. Enter values for the LLM tool input parameters described in the [Text completion inputs table](#inputs). If you selected the **chat** API, see the [Chat inputs table](#chat-inputs). If you selected the **completion** API, see the [Text completion inputs table](#text-completion-inputs). For information about how to prepare the prompt input, see [Prerequisites](#prerequisites).
39
+
1. Add more tools to your flow, as needed. Or select **Run** to run the flow.
40
+
1. The outputs are described in the [Outputs table](#outputs).
Copy file name to clipboardExpand all lines: articles/ai-studio/how-to/prompt-flow-tools/prompt-flow-tools-overview.md
+11-9Lines changed: 11 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,33 +15,35 @@ author: lgayhardt
15
15
16
16
[!INCLUDE [Azure AI Studio preview](../../includes/preview-ai-studio.md)]
17
17
18
-
The following table provides an index of tools in prompt flow.
18
+
The following table provides an index of tools in prompt flow.
19
19
20
-
| Tool (set) name | Description | Environment | Package name |
20
+
| Tool or tool set name | Description | Environment | Package name |
21
21
|------|-----------|-------------|--------------|
22
-
|[LLM](./llm-tool.md)| Use Azure OpenAI large language models (LLM) for tasks such as text completion or chat. | Default |[promptflow-tools](https://pypi.org/project/promptflow-tools/)|
22
+
|[Large language models](./llm-tool.md)| Use Azure OpenAI large language models for tasks such as text completion or chat. | Default |[promptflow-tools](https://pypi.org/project/promptflow-tools/)|
23
23
|[Prompt](./prompt-tool.md)| Craft a prompt by using Jinja as the templating language. | Default |[promptflow-tools](https://pypi.org/project/promptflow-tools/)|
24
24
|[Python](./python-tool.md)| Run Python code. | Default |[promptflow-tools](https://pypi.org/project/promptflow-tools/)|
25
25
|[Azure OpenAI GPT-4 Turbo with Vision](./azure-open-ai-gpt-4v-tool.md)| Use AzureOpenAI GPT-4 Turbo with Vision model deployment to analyze images and provide textual responses to questions about them. | Default |[promptflow-tools](https://pypi.org/project/promptflow-tools/)|
26
26
|[Content Safety (Text)](./content-safety-tool.md)| Use Azure AI Content Safety to detect harmful content. | Default |[promptflow-tools](https://pypi.org/project/promptflow-tools/)|
27
-
|[Index Lookup*](./index-lookup-tool.md)| Search an Azure Machine Learning Vector Index for relevant results using one or more text queries. | Default |[promptflow-vectordb](https://pypi.org/project/promptflow-vectordb/)|
27
+
|[Index Lookup*](./index-lookup-tool.md)| Search an Azure Machine Learning Vector Index for relevant results by using one or more text queries. | Default |[promptflow-vectordb](https://pypi.org/project/promptflow-vectordb/)|
28
28
|[Vector Index Lookup*](./vector-index-lookup-tool.md)| Search text or a vector-based query from a vector index. | Default |[promptflow-vectordb](https://pypi.org/project/promptflow-vectordb/)|
29
29
|[Faiss Index Lookup*](./faiss-index-lookup-tool.md)| Search a vector-based query from the Faiss index file. | Default |[promptflow-vectordb](https://pypi.org/project/promptflow-vectordb/)|
30
30
|[Vector DB Lookup*](./vector-db-lookup-tool.md)| Search a vector-based query from an existing vector database. | Default |[promptflow-vectordb](https://pypi.org/project/promptflow-vectordb/)|
31
31
|[Embedding](./embedding-tool.md)| Use Azure OpenAI embedding models to create an embedding vector that represents the input text. | Default |[promptflow-tools](https://pypi.org/project/promptflow-tools/)|
32
32
|[Serp API](./serp-api-tool.md)| Use Serp API to obtain search results from a specific search engine. | Default |[promptflow-tools](https://pypi.org/project/promptflow-tools/)|
33
-
|[Azure AI Language tools*](https://microsoft.github.io/promptflow/integrations/tools/azure-ai-language-tool.html)| This collection of tools is a wrapper for various Azure AI Language APIs, which can help effectively understand and analyze documents and conversations. The capabilities currently supported include: Abstractive Summarization, Extractive Summarization, Conversation Summarization, Entity Recognition, Key Phrase Extraction, Language Detection, PII Entity Recognition, Conversational PII, Sentiment Analysis, Conversational Language Understanding, Translator. You can learn how to use them by the [Sample flows](https://github.com/microsoft/promptflow/tree/e4542f6ff5d223d9800a3687a7cfd62531a9607c/examples/flows/integrations/azure-ai-language). Support contact: [email protected]| Custom |[promptflow-azure-ai-language](https://pypi.org/project/promptflow-azure-ai-language/)|
33
+
|[Azure AI Language tools*](https://microsoft.github.io/promptflow/integrations/tools/azure-ai-language-tool.html)| This collection of tools is a wrapper for various Azure AI Language APIs, which can help effectively understand and analyze documents and conversations. The capabilities currently supported include Abstractive Summarization, Extractive Summarization, Conversation Summarization, Entity Recognition, Key Phrase Extraction, Language Detection, PII Entity Recognition, Conversational PII, Sentiment Analysis, Conversational Language Understanding, and Translator. You can learn how to use them by the [Sample flows](https://github.com/microsoft/promptflow/tree/e4542f6ff5d223d9800a3687a7cfd62531a9607c/examples/flows/integrations/azure-ai-language). Support contact: [email protected]| Custom |[promptflow-azure-ai-language](https://pypi.org/project/promptflow-azure-ai-language/)|
34
34
35
-
_*The asterisk marks indicate custom tools, which are created by the community that extend prompt flow's capabilities for specific use cases. They aren't officially maintained or endorsed by prompt flow team. When you encounter questions or issues for these tools, please prioritize using the support contact if it is provided in the description._
35
+
*The asterisks indicate custom tools that the community created. Custom tools extend prompt flow's capabilities for specific use cases. The prompt flow team doesn't officially maintain or endorse these tools. When you encounter questions or issues for these tools, prioritize by using the support contact if the description provides it.
36
36
37
37
To discover more custom tools developed by the open-source community, see [More custom tools](https://microsoft.github.io/promptflow/integrations/tools/index.html).
38
38
39
39
## Remarks
40
+
40
41
- If existing tools don't meet your requirements, you can [develop your own custom tool and make a tool package](https://microsoft.github.io/promptflow/how-to-guides/develop-a-tool/create-and-use-tool-package.html).
41
-
- To install the custom tools, if you're using the automatic runtime, you can readily install the publicly released package by adding the custom tool package name into the `requirements.txt` file in the flow folder. Then select the **Save and install** button to start installation. After completion, you can see the custom tools displayed in the tool list. In addition, if you want to use local or private feed package, please build an image first, then set up the runtime based on your image. To learn more, see [How to create and manage a runtime](../create-manage-runtime.md).
42
-
:::image type="content" source="../../media/prompt-flow/install-package-on-automatic-runtime.png" alt-text="Screenshot of how to install packages on automatic runtime."lightbox = "../../media/prompt-flow/install-package-on-automatic-runtime.png":::
42
+
- To install the custom tools, if you're using the automatic runtime, you can readily install the publicly released package by adding the custom tool package name in the `requirements.txt` file in the flow folder. Then select **Save and install** to start installation. After completion, the custom tools appear in the tool list. If you want to use a local or private feed package, build an image first, and then set up the runtime based on your image. To learn more, see [How to create and manage a runtime](../create-manage-runtime.md).
43
+
44
+
:::image type="content" source="../../media/prompt-flow/install-package-on-automatic-runtime.png" alt-text="Screenshot that shows how to install packages on automatic runtime."lightbox = "../../media/prompt-flow/install-package-on-automatic-runtime.png":::
43
45
44
46
## Next steps
45
47
46
48
-[Create a flow](../flow-develop.md)
47
-
-[Build your own copilot using prompt flow](../../tutorials/deploy-copilot-ai-studio.md)
49
+
-[Build your own copilot by using prompt flow](../../tutorials/deploy-copilot-ai-studio.md)
0 commit comments