diff --git a/docs/docs/how_to/prompts_composition.ipynb b/docs/docs/how_to/prompts_composition.ipynb index 7573c3de8dd..bdadc2db79f 100644 --- a/docs/docs/how_to/prompts_composition.ipynb +++ b/docs/docs/how_to/prompts_composition.ipynb @@ -178,6 +178,18 @@ "## Using PipelinePrompt" ] }, + { + "cell_type": "markdown", + "id": "8ccadbae", + "metadata": {}, + "source": [ + ":::warning Deprecated\n", + "\n", + "PipelinePromptTemplate is deprecated; for more information, please refer to [PipelinePromptTemplate](https://python.langchain.com/api_reference/core/prompts/langchain_core.prompts.pipeline.PipelinePromptTemplate.html).\n", + "\n", + ":::" + ] + }, { "cell_type": "markdown", "id": "0a5892f9-e4d8-4b7c-b6a5-4651539b9734", diff --git a/libs/core/langchain_core/prompts/pipeline.py b/libs/core/langchain_core/prompts/pipeline.py index f1f5786f1ec..3b0160201d6 100644 --- a/libs/core/langchain_core/prompts/pipeline.py +++ b/libs/core/langchain_core/prompts/pipeline.py @@ -18,16 +18,14 @@ def _get_inputs(inputs: dict, input_variables: list[str]) -> dict: since="0.3.22", removal="1.0", message=( - "This class is deprecated. Please see the docstring below or at the link" - " for a replacement option: " - "https://python.langchain.com/api_reference/core/prompts/langchain_core.prompts.pipeline.PipelinePromptTemplate.html" + "This class is deprecated in favor of chaining individual prompts together." ), ) class PipelinePromptTemplate(BasePromptTemplate): - """[DEPRECATED] Pipeline prompt template. + """Pipeline prompt template. This has been deprecated in favor of chaining individual prompts together in your - code. E.g. using a for loop, you could do: + code; e.g. using a for loop, you could do: .. code-block:: python