Ask a question to get started
Enter to send•Shift+Enter new line
Load a prompt from a file.
from_file( cls, template_file: str | Path, encoding: str | None = None, **kwargs: Any = {} ) -> PromptTemplate
template_file
str | Path
The path to the file containing the prompt template.
encoding
str | None
None
The encoding system for opening the template file.
If not provided, will use the OS default.