# load_prompt_from_config

> **Function** in `langchain_core`

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

Load prompt from config dict.

## Signature

```python
load_prompt_from_config(
    config: dict,
    *,
    allow_dangerous_paths: bool = False,
) -> BasePromptTemplate
```

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `config` | `dict` | Yes | Dict containing the prompt configuration. |
| `allow_dangerous_paths` | `bool` | No | If ``False`` (default), file paths in the config (such as ``template_path``, ``examples``, and ``example_prompt_path``) are validated to reject absolute paths and directory traversal (``..``) sequences. Set to ``True`` only if you trust the source of the config. (default: `False`) |

## Returns

`BasePromptTemplate`

A `PromptTemplate` object.

## ⚠️ Deprecated

Deprecated since version 1.2.21.

---

[View source on GitHub](https://github.com/langchain-ai/langchain/blob/02991cb4cf2063d51a07268edafb05fe53de1826/libs/core/langchain_core/prompts/loading.py#L48)