You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Graph.json inconsistency for same data across multiple runs #1632
We are using this on documents. The resultant graph is not consistent across different runs. Ex, if I run Graphify on 50 documents multiple times, the nodes and edges are not consistent in graph.json.
Has anyone encountered this and found a solution ?
Partially fixed in e2ef4ef (on v8, ships in 0.9.6).
There were two layers here. The pipeline layer was a real bug: with a parallel LLM backend, chunk results were merged in completion order, so which network call happened to return first reordered nodes and edges run-to-run even when the model returned identical content. Chunks are now merged in deterministic submission order after the pool drains, so that source of churn is gone. (Clustering and code extraction were already deterministic - verified byte-identical graph.json across repeated code-only runs.)
The remaining layer is not something graphify can fully eliminate: for documents, the semantic content itself is produced by the LLM, which is nondeterministic run-to-run (even at temperature 0, and especially for local models under load). So node/edge ordering is now stable, but the set of extracted concepts can still vary with the model. If you want maximum stability, the semantic cache (content-hash-keyed) keeps unchanged documents identical across runs, and pinning a deterministic backend/model helps. Closing on the pipeline fix - please reopen if you see ordering churn on an unchanged corpus after 0.9.6.
Activity
sub4biz commentedon Jul 3, 2026
What backend do you use and exact model name?
fix: harden semantic extraction and kill phantom import edges (#1631, #…
safishamsi commentedon Jul 4, 2026
Partially fixed in
e2ef4ef(on v8, ships in 0.9.6).There were two layers here. The pipeline layer was a real bug: with a parallel LLM backend, chunk results were merged in completion order, so which network call happened to return first reordered nodes and edges run-to-run even when the model returned identical content. Chunks are now merged in deterministic submission order after the pool drains, so that source of churn is gone. (Clustering and code extraction were already deterministic - verified byte-identical graph.json across repeated code-only runs.)
The remaining layer is not something graphify can fully eliminate: for documents, the semantic content itself is produced by the LLM, which is nondeterministic run-to-run (even at temperature 0, and especially for local models under load). So node/edge ordering is now stable, but the set of extracted concepts can still vary with the model. If you want maximum stability, the semantic cache (content-hash-keyed) keeps unchanged documents identical across runs, and pinning a deterministic backend/model helps. Closing on the pipeline fix - please reopen if you see ordering churn on an unchanged corpus after 0.9.6.
release: 0.9.6
fix: harden semantic extraction and kill phantom import edges (Graphi…
release: 0.9.6
perf(feature-link): parallelize LLM adjudication via ThreadPoolExecutor
fix(llm): write a held sliced file in chunk order, not completion order