From 5680fb689499672a92c3ab13fd5afd51d9519e7f Mon Sep 17 00:00:00 2001 From: engkheng <60956360+outday29@users.noreply.github.com> Date: Wed, 26 Apr 2023 07:05:13 +0800 Subject: [PATCH] Fix typo in Prompts Templates Getting Started page (#3514) `from_templates` -> `from_template` --- docs/modules/prompts/prompt_templates/getting_started.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/modules/prompts/prompt_templates/getting_started.md b/docs/modules/prompts/prompt_templates/getting_started.md index 74a8170aa5..996918ac50 100644 --- a/docs/modules/prompts/prompt_templates/getting_started.md +++ b/docs/modules/prompts/prompt_templates/getting_started.md @@ -63,7 +63,7 @@ multiple_input_prompt.format(adjective="funny", content="chickens") # -> "Tell me a funny joke about chickens." ``` -If you do not wish to specify `input_variables` manually, you can also create a `PromptTemplate` using `from_templates` class method. `langchain` will automatically infer the `input_variables` based on the `template` passed. +If you do not wish to specify `input_variables` manually, you can also create a `PromptTemplate` using `from_template` class method. `langchain` will automatically infer the `input_variables` based on the `template` passed. ```python template = "Tell me a {adjective} joke about {content}."