UnstructuredRelation#

class langchain_experimental.graph_transformers.llm.UnstructuredRelation[source]#

Bases: BaseModel

Create a new model by parsing and validating input data from keyword arguments.

Raises ValidationError if the input data cannot be parsed to form a valid model.

param head: str [Required]#

extracted head entity like Microsoft, Apple, John. Must use human-readable unique identifier.

param head_type: str [Required]#

type of the extracted head entity like Person, Company, etc

param relation: str [Required]#

relation between the head and the tail entities

param tail: str [Required]#

extracted tail entity like Microsoft, Apple, John. Must use human-readable unique identifier.

param tail_type: str [Required]#

type of the extracted tail entity like Person, Company, etc