mirror of
https://github.com/hwchase17/langchain
synced 2024-10-29 17:07:25 +00:00
75fe9d3555
**Feature**: This PR adds `from_template_file` class method to BaseStringMessagePromptTemplate. This is useful to help user to create message prompt templates directly from template files, including `ChatMessagePromptTemplate`, `HumanMessagePromptTemplate`, `AIMessagePromptTemplate` & `SystemMessagePromptTemplate`. **Tests**: Unit tests have been added in this PR. Co-authored-by: charosen <charosen@bupt.cn> Co-authored-by: Dev 2049 <dev.dev2049@gmail.com> |
||
---|---|---|
.. | ||
__init__.py | ||
test_chat.py | ||
test_few_shot_with_templates.py | ||
test_few_shot.py | ||
test_length_based_example_selector.py | ||
test_loading.py | ||
test_prompt.py | ||
test_utils.py |