You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
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>
1 year ago
..
__init__.py add few shot example (#148) 2 years ago
test_chat.py Add from_file method to message prompt template (#4713) 1 year ago
test_few_shot.py Validate `input_variables` when using `jinja2` templates (#3140) 1 year ago
test_few_shot_with_templates.py Harrison/prompt template prefix (#888) 2 years ago
test_length_based_example_selector.py fix length based example selector (#862) 2 years ago
test_loading.py big docs refactor (#1978) 1 year ago
test_prompt.py Validate `input_variables` when using `jinja2` templates (#3140) 1 year ago
test_utils.py Bug Fix (#221) 2 years ago