Creates a chain that extracts information from a passage using Pydantic schema.
create_extraction_chain_pydantic(
pydantic_schema: Any,
llm: BaseLanguageModel,
prompt: BasePromptTemplate | None = None,
verbose: bool = False
) -> Chain| Name | Type | Description |
|---|---|---|
pydantic_schema* | Any | The Pydantic schema of the entities to extract. |
llm* | BaseLanguageModel | The language model to use. |
prompt | BasePromptTemplate | None | Default: NoneThe prompt to use for extraction. |
verbose | bool | Default: FalseWhether to run in verbose mode. In verbose mode, some intermediate logs will be printed to the console. |