Creates a chain that extracts information from a passage.
create_extraction_chain(
schema: dict,
llm: BaseLanguageModel,
prompt: BasePromptTemplate | None = None,
tags: list[str] | None = None,
verbose: bool = False
) -> Chain| Name | Type | Description |
|---|---|---|
schema* | dict | The schema of the entities to extract. |
llm* | BaseLanguageModel | The language model to use. |
prompt | BasePromptTemplate | None | Default: NoneThe prompt to use for extraction. |
tags | list[str] | None | Default: NoneOptional list of tags to associate with the chain. |
verbose | bool | Default: FalseWhether to run in verbose mode. In verbose mode, some intermediate logs will be printed to the console. |