Operational knowledge spans records, policies, runbooks, and postmortems with different keys and levels of structure.
Implemented toolkit / governed knowledge systems
Make GraphRAG prove it deserves the graph.
I built a local-first conversion workbench that profiles source data, gives coding agents a schema-backed ontology task, requires human approval, compiles deterministic graph IR, routes questions through safe recipes, and publishes case-level evaluation evidence.
- Structured coverage
- 100%
- Held-out cases
- 80
- Incident routing
- 40 / 40
- Seller routing
- 37 / 40
- Decision
- Use GraphRAG when the path is part of the answer. Keep vector RAG as the default for narrative retrieval.
- What the evidence says
- The local compiler and safe-routing contract work across two domains. Three seller routing failures remain visible.
- What it does not say
- No committed artifact yet proves GraphRAG beats vector RAG on answer quality. OpenAI, Ollama, AuraDB, and measured latency remain release gates.
Relationship questions need an inspectable path from source data to answer.
Teams need to review entity keys, relationships, field mappings, constraints, and ignored data before ingestion.
Free text must resolve to typed parameters and bounded query recipes without giving the model unrestricted Cypher access.
Held-out cases must show where graph, vector, hybrid, and unsupported routes succeed or fail.
The workbench stores these decisions in one GraphSpec and carries source provenance through compilation, retrieval, and evaluation.
AI proposes. A person approves. The compiler decides what can run.
Inspect the evidence
Hash files, infer fields, sample values, discover text sections, and warn on potential sensitive data.
Use any coding agent
Codex, Claude Code, Cursor, or another repository-aware agent proposes one schema-backed GraphSpec.
Refine visibly
Edit node types, relationships, mappings, and recipes through forms with a live ontology canvas.
Bind meaning to sources
Semantic and source hashes form the build gate. Dragging layout does not alter approval.
Create neutral graph IR
Nodes, relationships, chunks, and exact provenance exist before any provider or Neo4j write.
Keep losses visible
Graph, vector, hybrid, unsupported, safety, and paraphrase cases produce a versioned report.
The model never receives an unrestricted database capability.
Local sources
CSV, JSON, Markdown, and text remain local until a cloud provider is explicitly chosen.
GraphSpec
Pydantic emits the same JSON Schema for the CLI, editor, coding agents, and structured model outputs.
Deterministic IR
Every structured field is mapped or ignored with a reason. Text facts need an exact source quote.
Neo4j + vectors
Tenant-scoped idempotent merges and model/version-specific index namespaces prevent silent reuse.
Approved recipes
AI selects a route and typed parameters. It cannot invent executable Cypher.
Case-level artifacts
Provider, model, ontology, data, commit, route, parameters, citations, failures, and latency travel together.
The route is a product decision, not a GraphRAG marketing claim.
“Which customers are exposed to INC-104?” traverses incident, service dependencies, customer usage, and ownership. The path is bounded at three hops.
“Summarize the postmortem mitigation” retrieves narrative text. Modeling every mitigation sentence as graph structure would add cost without obvious value.
Ownership comes from exact graph relationships; response guidance comes from cited runbook chunks.
INC-777 does not exist. The system returns no recipe, no Cypher, and no score instead of guessing.
Current evidence covers source conversion and safe recipe routing.
22 mapped fields, 17 nodes, 17 relationships, 36 chunks, and zero unresolved structured fields.
20 mapped fields, 33 nodes, 53 relationships, 87 chunks, and zero unresolved structured fields.
40 of 40 reviewed cases passed the deterministic recipe-selection and parameter suite.
37 of 40 passed. The three failures remain in the case-level artifact and constrain the claim.
These results do not measure answer correctness. Provider-backed certification will add exact entity/value scoring, citation validation, the same synthesis model for graph and vector, and measured latency. No metric ships unless CI can trace it to the evidence manifest.
The ontology is governed before it becomes executable.
Semantic or source changes make approval stale. Draft history is retained locally.
Writes, procedures, unbounded traversal, missing tenant predicates, missing numeric limits, and undeclared parameters are rejected.
Loopback binding, same-site HttpOnly session cookie, per-launch CSRF token, and no telemetry.
Read-only routes only, synthetic data, rate limits, no source uploads, and no local editing API.
GraphRAG is an evaluated option, not the default answer.
Use it for dependency impact, ownership, entitlement, supply-chain, configuration, and policy questions where relationships and paths must remain inspectable. Use vector RAG for summary and explanation. Use hybrid retrieval only when both are necessary.
The next release gates are provider-backed OpenAI and Ollama runs, executed Neo4j and vector traces, reference-answer scoring, AuraDB with synthetic samples, and deployment of the read-only Python API. PDFs, live connectors, unrestricted Text2Cypher, public uploads, and multi-user hosting remain intentionally deferred.