Skip to content

Commit

Permalink
Improve llm graph transformer docstring (#22939)
Browse files Browse the repository at this point in the history
  • Loading branch information
tomasonjo authored Jun 15, 2024
1 parent 7a0af56 commit 1c661fd
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -610,6 +610,13 @@ class LLMGraphTransformer:
strict_mode (bool, optional): Determines whether the transformer should apply
filtering to strictly adhere to `allowed_nodes` and `allowed_relationships`.
Defaults to True.
node_properties (Union[bool, List[str]]): If True, the LLM can extract any
node properties from text. Alternatively, a list of valid properties can
be provided for the LLM to extract, restricting extraction to those specified.
relationship_properties (Union[bool, List[str]]): If True, the LLM can extract
any relationship properties from text. Alternatively, a list of valid
properties can be provided for the LLM to extract, restricting extraction to
those specified.
Example:
.. code-block:: python
Expand Down

0 comments on commit 1c661fd

Please sign in to comment.