Use Graph Assistant in Modeler

The Graph Assistant feature in Modeler enables you to use natural language to create, review, and modify property graphs.

Before you use Graph Assistant, ensure that the following prerequisites are met:

To open Graph Assistant, expand the Graph Assistant panel by clicking the arrow on the left side of the Modeler page.

Description of the illustration modeler_get_started_graph_assistant.png

The Graph Assistant panel contains the following components:

You can use Graph Assistant to perform the following tasks:

Create a Property Graph Using Graph Assistant

You can create a property graph using Graph Assistant.

  1. Expand the Graph Assistant panel by clicking the arrow on the left side of the Modeler page.

  2. Click New Graph above the message box.

  3. Select the source data tables that are required as input for the graph.

  4. Click Send in the Select Tables panel.

    Graph Assistant displays the property graph generated using the selected tables.

  5. Review the generated graph or refine the graph using additional instructions.

    Note: To create a PGQL property graph, add OPTIONS (PG_PGQL) at the end of the DDL generated by Graph Assistant. See PGQL Property Graphs for more information on DDL syntax.

  6. Prompt Graph Assistant to execute the DDL if the proposed graph design is as expected.

    Description of the illustration modeler_graph_assitant_new_graph.png

    Tip: Click Use to load the graph into Modeler. This makes the graph DDL available, enabling Graph Assistant to review or modify a property graph in subsequent prompts.

  7. Click Create Graph in the top right of the page.

    The graph gets created and you can interact with the graph using Graph Explorer.

Review a Property Graph Using Graph Assistant

You can use Graph Assistant to review a property graph after it has been loaded into the Modeler.

  1. Expand the Graph Assistant panel by clicking the arrow on the left side of the Modeler page.

  2. Click Review graph above the message box.

    Note: Graph Assistant can review or modify only the graph that is currently loaded in the Modeler. If you create a graph draft using Graph Assistant, click Use to load the generated graph into the Modeler. Until you click Use, the graph DDL is not available and Graph Assistant cannot review or modify the graph.

    The summary of the property graph that is loaded in the modeler is retrieved and displayed for your review.

    Description of the illustration modeler_graph_assitant_review_graph.png

Edit a Property Graph Using Graph Assistant

You can use Graph Assistant to edit a property graph only after the graph has been loaded into the Modeler.

  1. Expand the Graph Assistant panel by clicking the arrow on the left side of the Modeler page.

  2. Click Edit graph above the message box.

    Note: Graph Assistant can review or modify only the graph that is currently loaded in Modeler. If you create a graph draft using Graph Assistant, click Use to load the generated graph into Modeler. Until you click Use, the graph DDL is not available and Graph Assistant cannot review or modify the graph.

    The summary of the property graph that is loaded in Modeler is retrieved and displayed.

  3. Prompt Graph Assistant to edit the graph as required.

    Description of the illustration modeler_graph_assitant_edit_graph.png

  4. Review the generated graph and edit the graph as required.

  5. Click Update Graph on the top right of the page.

    The graph gets updated and can be queried in Graph Explorer.