|
| 1 | +The graph ouput of the Neo4j destination connector is represented in the following diagram: |
| 2 | + |
| 3 | +```mermaid |
| 4 | +graph BT |
| 5 | + subgraph dn [Document Node] |
| 6 | + D[Document] |
| 7 | + end |
| 8 | + style dn stroke-dasharray: 5 |
| 9 | + |
| 10 | + subgraph en [Element Nodes] |
| 11 | + UE1[UnstructuredElement] |
| 12 | + UE2[UnstructuredElement] |
| 13 | + UE3[UnstructuredElement] |
| 14 | + UE4[UnstructuredElement] |
| 15 | + UE5[UnstructuredElement] |
| 16 | + UE6[UnstructuredElement] |
| 17 | + end |
| 18 | + style en stroke-dasharray: 5 |
| 19 | + |
| 20 | + UE1 -->|PART_OF_DOCUMENT| D |
| 21 | + UE2 -->|PART_OF_DOCUMENT| D |
| 22 | + UE3 -->|PART_OF_DOCUMENT| D |
| 23 | + UE4 -->|PART_OF_DOCUMENT| D |
| 24 | + UE5 -->|PART_OF_DOCUMENT| D |
| 25 | + UE6 -->|PART_OF_DOCUMENT| D |
| 26 | +
|
| 27 | + subgraph cn [Chunk Nodes] |
| 28 | + C1[Chunk] |
| 29 | + C2[Chunk] |
| 30 | + C3[Chunk] |
| 31 | + C4[Chunk] |
| 32 | + end |
| 33 | + style cn stroke-dasharray: 5 |
| 34 | + |
| 35 | + C1 -->|NEXT_CHUNK| C2 |
| 36 | + C2 -->|NEXT_CHUNK| C3 |
| 37 | + C3 -->|NEXT_CHUNK| C4 |
| 38 | +
|
| 39 | + C1 -->|PART_OF_DOCUMENT| D |
| 40 | + C2 -->|PART_OF_DOCUMENT| D |
| 41 | + C3 -->|PART_OF_DOCUMENT| D |
| 42 | + C4 -->|PART_OF_DOCUMENT| D |
| 43 | +
|
| 44 | + UE1 -.->|PART_OF_CHUNK| C1 |
| 45 | + UE2 -.->|PART_OF_CHUNK| C1 |
| 46 | + UE3 -.->|PART_OF_CHUNK| C2 |
| 47 | + UE4 -.->|PART_OF_CHUNK| C3 |
| 48 | + UE5 -.->|PART_OF_CHUNK| C4 |
| 49 | + UE6 -.->|PART_OF_CHUNK| C4 |
| 50 | +``` |
| 51 | + |
| 52 | +[View the preceding diagram in full-screen mode](https://mermaid.live/view#pako:eNqFlN9vgjAQx_-Vps-6REEfeFiyFZYli7hskCyTxXS0ihFaU9oHo_7vq_IjgIzyxN330157d70TjDmh0IFbgQ8JeA4iBvSXq9_CQRhYuTxWGWUS-Br9KQC39pYOyki5VB5Tel2XS8H3dExwnmAh8NEBs4LohKA6hJfSOkJe7hh6k1XI9C4qlkpQUjK1Oh1UrUHVHlRng-p8QO1kgRqzoC8JxuPH8_vTR7BevqzdJQoXnh-cgVvf0wRYJsA2ATMTMP8f6FQz1tVEiWL7Vi3RpHBW5rRtWm3TbpmdnMbGnKIipb73FazRa-i_nXXAKvC9ZFWHuJfs6nrIUCVkKBIy1AjZpgTfGuWhwVRnnDT6ZFC3-vVpo0v6dKvRJH263eiRXh2OYEZFhndEj5nTlY6gTPSriaCjfwndYJXKCEbsolGsJP88shg6-onRERRcbRPobHCaa0sdCJbU3WHdbFmFHDD75jyrIUp2kotFMddu4-3yB3k-fcg). |
| 53 | + |
| 54 | +In the preceding diagram: |
| 55 | + |
| 56 | +- The `Document` node represents the source file. |
| 57 | +- The `UnstructuredElement` nodes represent the source file's Unstructured `Element` objects, before chunking. |
| 58 | +- The `Chunk` nodes represent the source file's Unstructured `Element` objects, after chunking. |
| 59 | +- Each `UnstructuredElement` node has a `PART_OF_DOCUMENT` relationship with the `Document` node. |
| 60 | +- Each `Chunk` node also has a `PART_OF_DOCUMENT` relationship with the `Document` node. |
| 61 | +- Each `UnstructuredElement` node has a `PART_OF_CHUNK` relationship with a `Chunk` element. |
| 62 | +- Each `Chunk` node, except for the "last" `Chunk` node, has a `NEXT_CHUNK` relationship with its "next" `Chunk` node. |
| 63 | + |
| 64 | +Learn more about [document elements](/platform/document-elements) and [chunking](/platform/chunking). |
0 commit comments