You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
llm (LLMInterface): An instance of an LLM to use for entity and relation extraction.
54
58
driver (neo4j.Driver): A Neo4j driver instance for database connection.
55
59
embedder (Embedder): An instance of an embedder used to generate chunk embeddings from text chunks.
56
-
entities (Optional[List[Union[str, dict[str, str], SchemaEntity]]]): A list of either:
60
+
schema (Optional[Union[SchemaConfig, dict[str, list]]]): A schema configuration defining entities,
61
+
relations, and potential schema relationships.
62
+
This is the recommended way to provide schema information.
63
+
entities (Optional[List[Union[str, dict[str, str], SchemaEntity]]]): DEPRECATED. A list of either:
57
64
58
65
- str: entity labels
59
66
- dict: following the SchemaEntity schema, ie with label, description and properties keys
60
67
61
-
relations (Optional[List[Union[str, dict[str, str], SchemaRelation]]]): A list of either:
68
+
relations (Optional[List[Union[str, dict[str, str], SchemaRelation]]]): DEPRECATED. A list of either:
62
69
63
70
- str: relation label
64
71
- dict: following the SchemaRelation schema, ie with label, description and properties keys
65
72
66
-
potential_schema (Optional[List[tuple]]): A list of potential schema relationships.
73
+
potential_schema (Optional[List[tuple]]): DEPRECATED. A list of potential schema relationships.
67
74
enforce_schema (str): Validation of the extracted entities/rels against the provided schema. Defaults to "NONE", where schema enforcement will be ignored even if the schema is provided. Possible values "None" or "STRICT".
68
75
from_pdf (bool): Determines whether to include the PdfLoader in the pipeline.
69
76
If True, expects `file_path` input in `run` methods.
0 commit comments