Create Knowledge graph using LLM

I am using LLM to create knowledge graph from a document.
Even when I am using the same document to create the graph, I am getting newer nodes and relationships each time, even though no meaning has changed.

How can I get deterministic graph from the document?