Skip to content

GraphSense app iconGraphSenseBusiness data you can talk to.

Follow an order from customer to payment as a graph, and ask questions about it in plain English.

Status
In development
Dataset
SAP Order-to-Cash · 19 tables
Platforms
Web · API · CLI
Since
2026
Built with
Python · React · PostgreSQL
1 / 6
cat why.md

Why it exists

In a company's systems, an order, its delivery, its invoice and its payment sit in separate tables with nothing obvious joining them. GraphSense draws those links as a graph you can explore, traces any record from start to finish, and answers questions with the rows behind each answer. The rebuild turned it from one hard-wired dataset into a platform: describe a dataset once, and the graph, the screens and the questions follow.

  • Trace any record

    Pick an invoice and see its customer, order, delivery, journal entry and payment in order, as a graph and a step-by-step timeline.

  • Ask in plain English

    Answers come from the live tables with the rows, how the question was read and the query, and every record they mention opens on the graph.

  • One package per dataset

    A dataset is described once in YAML: its tables, links, labels and vocabulary. The database, the graph, the screens and the questions follow from it.

ls screens/

In use

  • Ask: a plain-English answer with the rows and the records behind it.
  • Explore: every kind of record and how they connect.
  • Records: any record's details, statuses in words, and what it links to.
  • Overview: what is in the dataset, at a glance.
  • The same trace in the light appearance.
cat BUILD.md

How it's built

~/work/graphsense/BUILD.md
  • Each load builds a complete copy in a staging schema, checks and profiles it, then swaps it in atomically, so a failed load never touches live data.
  • Model-written SQL passes a fail-closed sqlglot guard (one SELECT, allowlisted tables and functions, known columns, a row cap) and runs under a read-only role.
  • An offline evaluation of 22 golden questions and 26 guardrail cases runs in CI and scores the rows returned, not the SQL text.

# stack

  • Python
  • FastAPI
  • PostgreSQL
  • pgvector
  • sqlglot
  • Gemini
  • React
  • TypeScript
  • Cytoscape.js