langchain.chains.openai_functions.tagging.create_tagging_chain_pydanticΒΆ

langchain.chains.openai_functions.tagging.create_tagging_chain_pydantic(pydantic_schema: Any, llm: BaseLanguageModel, prompt: Optional[ChatPromptTemplate] = None, **kwargs: Any) Chain[source]ΒΆ
Create a chain that extracts information from a passage

based on a pydantic schema.

Parameters
  • pydantic_schema (Any) – The pydantic schema of the entities to extract.

  • llm (BaseLanguageModel) – The language model to use.

  • prompt (Optional[ChatPromptTemplate]) –

  • kwargs (Any) –

Returns

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

Return type

Chain