From 24a36d9b7c579eeceb2efc1bdcc8265572cf77b7 Mon Sep 17 00:00:00 2001 From: jiazeng Date: Fri, 27 Oct 2023 10:12:48 +0800 Subject: [PATCH] update link --- .../develop-a-tool/create-custom-llm-tool.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/how-to-guides/develop-a-tool/create-custom-llm-tool.md b/docs/how-to-guides/develop-a-tool/create-custom-llm-tool.md index 4a89e053196..12e922f6289 100644 --- a/docs/how-to-guides/develop-a-tool/create-custom-llm-tool.md +++ b/docs/how-to-guides/develop-a-tool/create-custom-llm-tool.md @@ -7,9 +7,9 @@ Custom LLM is a large language model fine-tuned by yourself. If you find it has - Please ensure that your [Prompt flow for VS Code](https://marketplace.visualstudio.com/items?itemName=prompt-flow.prompt-flow) is updated to version 1.2.0 or later. ## How to create a custom LLM tool -Here we use [an existing tool package](../../../examples/tools/tool-package-quickstart/my_tool_package) as an example. If you want to create your own tool, please refer to [create and use tool package](create-and-use-tool-package.md). +Here we use [an existing tool package](https://github.com/microsoft/promptflow/tree/main/examples/tools/tool-package-quickstart/my_tool_package) as an example. If you want to create your own tool, please refer to [create and use tool package](create-and-use-tool-package.md). -1. Develop tool code like in [this example](../../../examples/tools/tool-package-quickstart/my_tool_package/tools/tool_with_custom_llm_type.py). +1. Develop tool code like in [this example](https://github.com/microsoft/promptflow/blob/main/examples/tools/tool-package-quickstart/my_tool_package/tools/tool_with_custom_llm_type.py). - Add a `CustomConnection` input to the tool, it is used for authenticating and establishing a connection to the customized large language model. - Add a `PromptTemplate` input to the tool, it is used to pass into the customized large language model as an argument. @@ -32,7 +32,7 @@ Here we use [an existing tool package](../../../examples/tools/tool-package-quic ``` python \tool\generate_package_tool_meta.py -m -o -t "custom_llm" ``` - Here we use [an existing tool](../../../examples/tools/tool-package-quickstart/my_tool_package/yamls/tool_with_custom_llm_type.yaml) as an example. + Here we use [an existing tool](https://github.com/microsoft/promptflow/blob/main/examples/tools/tool-package-quickstart/my_tool_package/yamls/tool_with_custom_llm_type.yaml) as an example. ``` cd D:\proj\github\promptflow\examples\tools\tool-package-quickstart @@ -57,6 +57,6 @@ Here we use [an existing tool package](../../../examples/tools/tool-package-quic ## Use custom LLM tool in VS Code extension Follow the steps to [build and install your tool package](create-and-use-tool-package.md#build-and-share-the-tool-package) and [use your tool from VS Code extension](create-and-use-tool-package.md#use-your-tool-from-vscode-extension). -Here we use an existing flow to demonstrate the experience, open [this flow](../../../examples/flows/standard/custom_llm_tool_showcase/flow.dag.yaml) in VS Code extension. +Here we use an existing flow to demonstrate the experience, open [this flow](https://github.com/microsoft/promptflow/blob/main/examples/tools/use-cases/custom_llm_tool_showcase/flow.dag.yaml) in VS Code extension. - There is a node named "my_custom_llm_tool" with a prompt template file. You can either use an existing file or create a new one as the prompt template file. ![use_my_custom_llm_tool](../../media/how-to-guides/develop-a-tool/use_my_custom_llm_tool.png)