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][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.
self is explicitly positional-only to allow self as a field name.
- 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