Help with Building Knowledge Graph for Unstructured Date using Neo4j API

Hi,

Im trying to use the Neo4J API to generate Knowledge Graph put of Unstructured Data. I tried to follow the tutorial and the example listed in the developer guide . Im using the SimpleKGBuilder as the following:

pipeline = SimpleKGPipeline(

driver=driver,

llm=llm,

prompt_template=ERExtractionTemplate(system_instructions=system_instr),

schema={

"node_types": entities,

"relationship_types": relations,

"patterns": patterns,

"additional_node_types": False

},

from_pdf=False,

embedder=embedder)

For the entities properties , I did not define any as I would like to get all the properties listed with a given entity. I know this can be done because I was able to do it through Langchain neo4j wrapper when defining the LLMGraphTransformer as the following:

llm_transformer = LLMGraphTransformer(

llm=llm,

Example node def: [{'label': 'EQUIPMENT', 'description': '...', 'additional_properties': True}

allowed_nodes=allowed_nodes,

allowed_relationships=allowed_relationships,

node_properties=True, #<=== Captures all properties

strict_mode=True, # Set to True if you want ONLY these types

additional_instructions=additional_instr

)

Another thing that I've noticed when using langchain is that my entity resolution works much better and my KG looks more connected than what I get with the SimpleKGPipeline where I get more isolated clusters.

What am I missing ? Can someone point me in the right direction please.
Thanks