# prompts

> **Module** in `langchain_core`

📖 [View in docs](https://reference.langchain.com/python/langchain-core/prompts)

A prompt is the input to the model.

Prompt is often constructed from multiple components and prompt values. Prompt classes
and functions make constructing and working with prompts easy.

## Methods

- [`import_attr()`](https://reference.langchain.com/python/langchain-core/prompts/import_attr)
- [`aformat_document()`](https://reference.langchain.com/python/langchain-core/prompts/aformat_document)
- [`format_document()`](https://reference.langchain.com/python/langchain-core/prompts/format_document)
- [`load_prompt()`](https://reference.langchain.com/python/langchain-core/prompts/load_prompt)
- [`check_valid_template()`](https://reference.langchain.com/python/langchain-core/prompts/check_valid_template)
- [`get_template_variables()`](https://reference.langchain.com/python/langchain-core/prompts/get_template_variables)
- [`jinja2_formatter()`](https://reference.langchain.com/python/langchain-core/prompts/jinja2_formatter)
- [`validate_jinja2()`](https://reference.langchain.com/python/langchain-core/prompts/validate_jinja2)

---

[View source on GitHub](https://github.com/langchain-ai/langchain/blob/29134dc82dcb71fa693e57231bcc10f78a1b0c2b/libs/core/langchain_core/prompts/__init__.py)