← Back to selected work

Personal project · Case study

GraphRAG Impact Analysis

Synthetic organizational knowledge graph for ownership, onboarding, and change-impact analysis.

deployed demoPythonNeo4jChromaDBStreamlitOpenAI-compatible models

Problem

Before rotating a shared service credential, an engineer needs to know which applications use it, who owns them, and which downstream systems could be affected. Those facts are scattered across catalogs, ownership records, onboarding registers, and runbooks; a relevant document alone may not expose the full dependency chain.

My contribution

I built a Streamlit comparison app with a Neo4j relationship graph, Chroma document retrieval, shared answer grounding, and a benchmark reporting pipeline, then compared graph, vector, and hybrid answers over the same synthetic questions.

Engineering decisions

01

Model relationships explicitly

Six synthetic documents are represented by 52 graph nodes and 100 relationships. Parameterized, allowlisted Cypher templates make ownership and dependency paths inspectable; document chunks preserve titles, sections, and source identities.

02

Compare retrieval under shared grounding

Neo4j retrieves relationship records; Chroma retrieves the top five semantically similar document chunks. Both use the same evidence-only prompt and citation validation. Hybrid combines separate graph and vector answers, rather than jointly reranking them.

03

Inspect the evaluator as well as the answer

The benchmark measures entity and relationship matches, fact completeness, citation validity, and latency. Reviewing individual answers exposed cases where the heuristic scorer missed correct prose—so valid citations are not presented as proof of semantic correctness.

Documented result

Across 10 fixed questions and 30 hosted answer records, graph retrieval scored 65.0% relationship F1 versus 40.0% for vector retrieval. Mean fact completeness was 76.3% for graph, 66.6% for vector, and 76.9% for hybrid. Hybrid took 6.18 seconds on average versus 3.25 seconds for graph.

Scope & limits. The dataset is synthetic and graph queries are selected by known question IDs, which gives graph retrieval a structural advantage. No mode reached the proposed 80% completeness target. These heuristic scores from one small run do not establish general answer accuracy; the demo has no real Vault connection.

Architecture

  • Synthetic organizational dataset encoded as Markdown and graph JSON
  • Neo4j for relationship traversal and ownership impact paths
  • Chroma vector retrieval with dense semantic search
  • Shared grounding prompt with claim-level evidence IDs
  • Benchmarking and fallback analysis for answer quality and uncertainty

Evaluation and results

  • Compares graph evidence and document retrieval over the same benchmark questions.
  • Demonstrates citation-backed answers and abstention when evidence is insufficient.
  • Highlights the distinction between citation validity and semantic correctness.

Important tradeoffs

  • The data is synthetic and intentionally not connected to a real Vault environment.
  • The cited source warns that citation validity is a limited grounding check and not a semantic-faithfulness metric.
  • The documentation reports the citation target as met while aggregate completeness remains below the target.

Verified links