langchain.chains.openai_tools.extraction.create_extraction_chain_pydantic

langchain.chains.openai_tools.extraction.create_extraction_chain_pydantic(pydantic_schemas: Union[List[Type[BaseModel]], Type[BaseModel]], llm: BaseLanguageModel, system_message: str = 'Extract and save the relevant entities mentioned in the following passage together with their properties.\n\nIf a property is not present and is not required in the function parameters, do not include it in the output.') Runnable[source]

创建一个从段落中提取信息的链。

参数
返回

一个从段落中提取信息的可执行对象。

返回类型

Runnable

使用 create_extraction_chain_pydantic 的示例