langchain/tests/unit_tests/prompts
charosen 75fe9d3555
Add from_file method to message prompt template (#4713)
**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>
2023-05-16 16:25:17 -07:00
..
__init__.py add few shot example (#148) 2022-11-19 20:32:45 -08:00
test_chat.py Add from_file method to message prompt template (#4713) 2023-05-16 16:25:17 -07:00
test_few_shot_with_templates.py Harrison/prompt template prefix (#888) 2023-02-06 19:09:28 -08:00
test_few_shot.py Validate input_variables when using jinja2 templates (#3140) 2023-04-19 16:18:32 -07:00
test_length_based_example_selector.py fix length based example selector (#862) 2023-02-02 22:06:56 -08:00
test_loading.py big docs refactor (#1978) 2023-03-26 19:49:46 -07:00
test_prompt.py Validate input_variables when using jinja2 templates (#3140) 2023-04-19 16:18:32 -07:00
test_utils.py Bug Fix (#221) 2022-11-29 07:03:40 -08:00