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/langchain/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
..
example_selector Fix small typo in SemanticSimilarityExampleSelector (#2629) 1 year ago
__init__.py chat model example (#2310) 1 year ago
base.py Validate `input_variables` when using `jinja2` templates (#3140) 1 year ago
chat.py Add from_file method to message prompt template (#4713) 1 year ago
few_shot.py Removed duplicate BaseModel dependencies (#2471) 1 year ago
few_shot_with_templates.py Removed duplicate BaseModel dependencies (#2471) 1 year ago
loading.py consistently use getLogger(__name__), no root logger (#2989) 1 year ago
prompt.py allow partials in from_template (#4638) 1 year ago