What’s Hidden in the Data?

Brindlewood Foods ran an employee survey: 600 people, eight scores each, and two comment boxes. The HR director has to tell the board what it means and what to do about it. The dashboard gives averages. It doesn't say what's behind them.

Your mission: be the HR director's analytics team. Turn the survey into a knowledge graph, then show them what they need to see.

The lesson: a framework for knowledge graph analytics. Start with the customer and what they need to know. Find out what's really in the data. Shape a schema that fits both. Get clear enough that Claude Code can build the pipeline. Then design the visuals that meet the needs.

Brindlewood is made up. The data is generated, so nothing you find is about a real company.

Or take the alternative dataset: Brightwell Home Goods, also made up, with its own customer and its own rules for reading the comments. See step 1.


Before you come

Install Neo4j on your laptop and set its password, following the get-ready guide. Check you can open Neo4j Browser at http://localhost:7474 and log in.


1 — Set up

Make a new folder, survey-graph, and open it in VS Code. Download the pack into it:

  • anonymised.csv, the survey, with names already taken out.
  • .env.example: copy it to .env and fill in the session key and your Neo4j password. Keep .env out of git.

The alternative: Brightwell. Brightwell_Practice_Survey_Comments.xlsx is a different survey for a different customer: 300 comments from a CEO's yearly pulse survey, three open questions across three regions. It comes with the client's own theme rulebook (20 themes, with what each includes and excludes) and sentiment rubric (-5 to +5), so the question is how to code the comments their way. Start with its "Read me" sheet. Pick one dataset for the night: the steps are the same.

Create CLAUDE.md in the folder with this in it:

# Survey graph

Brindlewood Foods ran an employee survey: 600 people, eight scores each, and two comment
boxes. The HR director has to tell the board what it means and what to do about it. The
dashboard gives averages. It doesn't say what's behind them.

Mission: be the HR director's analytics team. Turn the survey into a knowledge graph, then
show them what they need to see.

The survey is anonymised.csv in this folder, with names already taken out. Read it; never
change it.

Connection details (the Anthropic API key, the Neo4j password) are in .env. Code reads them
from there; never write them into code, print them or commit them.

Before building anything, ask me to elaborate on what we want to build: who it's for, the
decisions they face, and what they need to know and why. Keep asking until needs.md
answers that, and build only what it asks for.

On Brightwell, download the workbook instead of anonymised.csv, and use this in place of the first three paragraphs:

# Survey graph

Brightwell Home Goods makes cookware, cleaning and storage products and sells them through
retailers and its own online store, in three regions: North, South and East. Its five-year
plan has three priorities: simplify the product range, improve customer service, and reduce
waste. Each year the CEO asks every employee three open questions.

Mission: be the CEO's analytics team. Turn the comments into a knowledge graph, then show
them what they need to see.

The survey is Brightwell_Practice_Survey_Comments.xlsx in this folder: the comments, plus the
client's theme rulebook and sentiment rubric. Read it; never change it.

2 — The customer

Listen to the HR director's brief. Then interview them: which decisions they face, what they need to know to make them, why, and what would count as evidence for the board. Ask what they call things, too. Every workplace has its own names.

Write it all in needs.md: the customer, their decisions, their information needs (what and why), and the local names they gave you.

On Brightwell, the customer is the CEO.


3 — Discovery

Find out what's really in the data before you design anything.

Read anonymised.csv without changing it. Tell me what's in it: every column and the values
it takes, how much free text there is and what it's like, the names that keep coming up in
the comments (systems, places, teams), anything that looks like two names for the same
thing, and any gaps or oddities. Write it up in discovery.md.

On Brightwell, name the workbook instead, and ask about every sheet: the rulebook and the rubric are part of the data.

Read discovery.md against needs.md. Can the data answer what the customer needs to know? What's missing?


4 — Schema

Work with Claude Code to define the nodes, edges and properties from needs.md and discovery.md, and save it as schema.md. Then check it fits:

  • Every information need has a path through the graph that answers it. Ask Claude to trace each one.
  • Everything discovery found has a home: each column, each kind of thing in the comments, each local name.

Anything that doesn't fit means changing the schema now, before anything is built.


5 — Get clear enough to build

Before Claude builds anything, you've defined:

  • Each source, and what's in it
  • The schema: nodes, edges, properties
  • The pipeline stages: read the file (script) → tag each comment (LLM) → match names (glossary) → load (script)
  • The LLM's job, as a contract: in, unstructured text; out, structured attributes, entities, and the source text that shows each
  • The matching rules: your glossary of local names, from the interview
  • Verification method: 600 people in, 600 in the graph; every comment tagged, or a reason it isn't; 20 read by hand

Then turn it into a spec:

/to-spec

6 — Build it

Break the spec into tickets:

/to-tickets

(It's /to-issues in some versions.) Then build them one at a time.

Run the LLM step on 20 comments first and read every result. Are the entities right? Is the source text really in the comment? Fix the contract before you run the rest.

Load it into Neo4j, then verify the load with the method from step 5.


7 — Visuals that meet the needs

Take each information need in needs.md in turn. Ask Claude Code for the query that answers it, then for a visual that shows it. Try more than one view, such as a table, a chart or a network map, and keep the one that answers the need best. Neo4j Browser is good for a quick look; the customer needs something clearer.


8 — Show the customer

One visual, the need it meets, and what it shows that a spreadsheet of the same answers wouldn't have.


Rules for tonight

  • The key is shared. Keep it in .env, out of git and out of chat.
  • The LLM sees only comment text. Even on made-up data, nothing about who wrote it goes to the model.
  • Start small. 20 comments first, every time you change the LLM step.