Skip to content

Commit

Permalink
change doc name and refine
Browse files Browse the repository at this point in the history
  • Loading branch information
jiazengcindy committed Oct 30, 2023
1 parent 4c20521 commit c7ea748
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -165,4 +165,4 @@ Alternatively, you can test your tool package using the script below to ensure t
[Customize your tool icon](add-a-tool-icon.md)
[Add category and tags for tool](add-category-and-tags-for-tool.md)
[Use file path as tool input](use-file-path-as-tool-input.md)
[Create Custom LLM Tool](create-custom-llm-tool.md)
[Customize a LLM Tool](customize_a_llm_tool.md)
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# Create Custom LLM Tool
In this document, we will guide you through the process of developing a tool with `custom_llm` type which can connect to a customized large language model with prompt.

A Custom LLM is a large language model fine-tuned by yourself. If you find it has good performance and is useful, then you can follow this guidance to make it a tool so that it can be shared with others to increase its impact.
# Customize a LLM Tool
In this document, we will guide you through the process of developing a customized tool with `custom_llm` type which is designed by users for interfacing with a large language model using prompts.

## Prerequisites
- 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.
Expand All @@ -10,8 +8,8 @@ A Custom LLM is a large language model fine-tuned by yourself. If you find it ha
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 the tool code as 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, which is used to authenticate and establish a connection to the customized large language model.
- Add a `PromptTemplate` input to the tool, which serves as an argument to be passed into the customized large language model.
- Add a `CustomConnection` input to the tool, which is used to authenticate and establish a connection to the large language model.
- Add a `PromptTemplate` input to the tool, which serves as an argument to be passed into the large language model.

```python
from jinja2 import Template
Expand Down
2 changes: 1 addition & 1 deletion docs/how-to-guides/develop-a-tool/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ create-and-use-tool-package
add-a-tool-icon
add-category-and-tags-for-tool
use-file-path-as-tool-input
create-custom-llm-tool
customize_a_llm_tool
```

0 comments on commit c7ea748

Please sign in to comment.