# Help with Generating Knowledge Graph using SimpleKGPipeline

**URL:** <https://community.neo4j.com/t/help-with-generating-knowledge-graph-using-simplekgpipeline/75625>\
**Category:** Graph + AI\
**Created:** [October 7, 2025, 6:37am UTC](https://community.neo4j.com/t/help-with-generating-knowledge-graph-using-simplekgpipeline/75625 "2025-10-07T06:37:54Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![saleh.samer](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/saleh.samer/32/35981_2.png) [@saleh.samer](https://community.neo4j.com/u/saleh.samer)\
**Post date:** [October 7, 2025, 6:37am UTC](https://community.neo4j.com/t/help-with-generating-knowledge-graph-using-simplekgpipeline/75625/1 "2025-10-07T06:37:54Z")

</div>

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](https://neo4j.com/books/the-developers-guide-to-graphrag/thanks/) . 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
