# create_extraction_chain_pydantic

> **Function** in `langchain_classic`

📖 [View in docs](https://reference.langchain.com/python/langchain-classic/chains/openai_functions/extraction/create_extraction_chain_pydantic)

Creates a chain that extracts information from a passage using Pydantic schema.

## Signature

```python
create_extraction_chain_pydantic(
    pydantic_schema: Any,
    llm: BaseLanguageModel,
    prompt: BasePromptTemplate | None = None,
    verbose: bool = False,
) -> Chain
```

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `pydantic_schema` | `Any` | Yes | The Pydantic schema of the entities to extract. |
| `llm` | `BaseLanguageModel` | Yes | The language model to use. |
| `prompt` | `BasePromptTemplate \| None` | No | The prompt to use for extraction. (default: `None`) |
| `verbose` | `bool` | No | Whether to run in verbose mode. In verbose mode, some intermediate logs will be printed to the console. (default: `False`) |

## Returns

`Chain`

Chain that can be used to extract information from a passage.

## ⚠️ Deprecated

Deprecated since version 0.1.14.

---

[View source on GitHub](https://github.com/langchain-ai/langchain/blob/6fb37dba71da807af60aa7b909f71f0625a666bf/libs/langchain/langchain_classic/chains/openai_functions/extraction.py#L110)