mirror of
https://github.com/hwchase17/langchain.git
synced 2025-05-28 18:48:50 +00:00
Regarding [this issue](https://github.com/hwchase17/langchain/issues/1754), the code in the document [Creating a custom prompt template](https://langchain.readthedocs.io/en/latest/modules/prompts/examples/custom_prompt_template.html) is no longer functional and outdated. To address this, I have made the following changes: 1. Updated the guide in the document to use `StringPromptTemplate` instead of `BasePromptTemplate`. 2. Exposed `StringPromptTemplate` in `prompts/__init__.py` for easier importing. |
||
---|---|---|
.. | ||
agents | ||
chains | ||
chat | ||
document_loaders | ||
indexes | ||
llms | ||
memory | ||
prompts | ||
utils | ||
agents.rst | ||
chains.rst | ||
chat.rst | ||
document_loaders.rst | ||
indexes.rst | ||
llms.rst | ||
memory.rst | ||
prompts.rst | ||
state_of_the_union.txt | ||
utils.rst |