If you’re new to Unstructured, read this note first.Before you can create a destination connector, you must first sign in to your Unstructured account:
- If you do not already have an Unstructured account, sign up for free. After you sign up, you are automatically signed in to your new Unstructured Starter account, at https://platform.unstructured.io. To sign up for a Team or Enterprise account instead, contact Unstructured Sales, or learn more.
- If you already have an Unstructured Starter or Team account and are not already signed in, sign in to your account at https://platform.unstructured.io. For an Enterprise account, see your Unstructured account administrator for instructions, or email Unstructured Support at support@unstructured.io.
-
A Neo4j deployment.
- For the Unstructured UI or the Unstructured API, local Neo4j deployments are not supported.
- For Unstructured Ingest, local and non-local Neo4j deployments are supported.
-
The username and password for the user who has access to the Neo4j deployment. The default user is typically
neo4j.- For a Neo4j Aura instance, the defaut user’s is typically set when the instance is created.
- For an AWS Marketplace, Microsoft Azure Marketplace, or Google Cloud Marketplace deployment of Neo4j, the default user is typically set during the deployment process.
- For a local Neo4j deployment, you can set the default user’s initial password or recover an admin user and its password.
-
The connection URI for the Neo4j deployment, which starts with
neo4j://,neo4j+s://,bolt://, orbolt+s://; followed bylocalhostor the host name; and sometimes ending with a colon and the port number (such as:7687). For example:- For a Neo4j Aura deployment, browse to the target Neo4j instance in the Neo4j Aura account and click Connect > Drivers to get the connection URI, which follows the format
neo4j+s://<host-name>. A port number is not used or needed. - For an AWS Marketplace, Microsoft Azure Marketplace, or Google Cloud Marketplace deployment of Neo4j, see Neo4j on AWS, Neo4j on Azure, or Neo4j on GCP for details about how to get the connection URI.
- For a local Neo4j deployment, the URI is typically
bolt://localhost:7687 - For other Neo4j deployment types, see the deployment provider’s documentation.
- For a Neo4j Aura deployment, browse to the target Neo4j instance in the Neo4j Aura account and click Connect > Drivers to get the connection URI, which follows the format
-
The name of the target database in the Neo4j deployment. A default Neo4j deployment typically contains two standard databases: one named
neo4jfor user data and another namedsystemfor system data and metadata. Some Neo4j deployment types support more than these two databases per deployment; Neo4j Aura instances do not.- Create additional databases for a local Neo4j deployment that uses Enterprise Edition; or for Neo4j on AWS, Neo4j on Azure, or Neo4j on GCP deployments.
- Get a list of additional available databases for a local Neo4j deployment that uses Enterprise Edition; or for Neo4j on AWS, Neo4j on Azure, or Neo4j on GCP deployments.
Graph Output
The graph ouput of the Neo4j destination connector is represented in the following diagram: View the preceding diagram in full-screen mode. In the preceding diagram:- The
Documentnode represents the source file. - The
UnstructuredElementnodes represent the source file’s UnstructuredElementobjects, before chunking. - The
Chunknodes represent the source file’s UnstructuredElementobjects, after chunking. - Each
UnstructuredElementnode has aPART_OF_DOCUMENTrelationship with theDocumentnode. - Each
Chunknode also has aPART_OF_DOCUMENTrelationship with theDocumentnode. - Each
UnstructuredElementnode has aPART_OF_CHUNKrelationship with aChunkelement. - Each
Chunknode, except for the “last”Chunknode, has aNEXT_CHUNKrelationship with its “next”Chunknode.
Chunk to Document relationships:
UnstructuredElement to Document relationships:
UnstructuredElement to Chunk relationships:
Chunk to Chunk relationships:
UnstructuredElement to Chunk to Document relationships:
UnstructuredElements containing the text jury, and show their Chunk relationships:
Chunk with the specified id, and show its UnstructuredElement relationships:
Entity nodes in the graph.
This additional graph ouput of the Neo4j destination connector is represented in the following diagram:
In the preceding diagram:
- The
Chunknode represents one of the source file’s UnstructuredElementobjects, after chunking. - The
Entitynode represents a recognized entity. - A
Chunknode can haveHAS_ENTITYrelationships withEntitynodes. - An
Entitynode can haveENTITY_TYPErelationships with otherEntitynodes.
Entity to Entity relationships:
Entity nodes containing the text PERSON, and show their Entity relationships:
Entity nodes containing the text amendment, and show their Chunk relationships:
Entity nodes containing the text PERSON, and show their Entity to Entity to Chunk relationships:
- On the sidebar, click Connectors.
- Click Destinations.
- Cick New or Create Connector.
- Give the connector some unique Name.
- In the Provider area, click Neo4j.
- Click Continue.
- Follow the on-screen instructions to fill in the fields as described later on this page.
- Click Save and Test.
- Name (required): A unique name for this connector.
- URI (required): The connection URI for the Neo4j deployment, which typically starts with
neo4j://,neo4j+s://,bolt://, orbolt+s://; is followed by the host name; and ends with a colon and the port number (such as:7473,:7474, or:7687). - Database (required): The name of the target database in the Neo4j deployment. A default Neo4j deployment typically contains a standard database named
neo4jfor user data. - Username (required): The name of the user who has access to the Neo4j deployment. A default Neo4j deployment typically contains a default user named
neo4j. - Password (required): The password for the user.
- Batch Size: The maximum number of nodes or relationships to be transmitted per batch. The default is
100if not otherwise specified.

