Contract review & e-discovery, self-hosted

Clause-risk review, obligation extraction, and e-discovery grounded in your own corpus — every flag cites the source clause, and every review lands on an immutable audit. Self-hosted, so privileged and confidential documents never leave.

Evaluating for a legal-ops team? Self-host it on your corpus, then bring us to the GC.

The pain we built this for

If you run legal ops or contract review, the AI tools all hit the same wall: “We can’t send privileged documents to a cloud model, we can’t trust an unattributed clause summary, and we need a defensible record of how the review was done.”

  • Privileged and confidential documents cannot go to a third-party AI API — which rules out most legal-AI SaaS.
  • An unattributed clause summary is useless (and risky) — every flag needs to cite the exact source clause a lawyer can verify.
  • Obligations (party, trigger, deadline, remedy) are buried in prose when they should be a queryable structure.
  • E-discovery by keyword misses responsive documents that only match by meaning.
  • Defensibility requires a consistent, logged review process — not an ad-hoc one that varies by reviewer.

See it — obligations as a graph, review as an audit

One Cypher query for what’s due this quarter, one immutable table for the review trail.

-- Extract obligations from a contract into a queryable graph.
CYPHER
MATCH (c:Contract {id: $doc})-[:HAS_CLAUSE]->(cl:Clause)-[:CREATES]->(o:Obligation)
  WHERE o.deadline < date('2026-10-01')
RETURN c.counterparty, o.trigger, o.remedy, o.deadline
ORDER BY o.deadline;                 -- what's due this quarter, across the book

-- Every AI-assisted review lands on a tamper-evident audit ledger.
CREATE IMMUTABLE TABLE review_audit (
  doc_id       TEXT,
  model_version TEXT,
  flags        JSONB,          -- risky clauses cited to source
  reviewer     TEXT,
  decision     TEXT
) WITH (ENCRYPTION = 'AES256GCM');

VERIFY TABLE review_audit;

Six capabilities. One self-hosted stack.

Clause review, obligation graph, semantic e-discovery, immutable audit — over one store, on your infra.

Clause-risk review with citations

Flag risky, missing, or non-standard clauses against your playbook — every flag cites the source clause, so a lawyer verifies against text, not model output.

Vector RAG · citations · EMBED
Obligation extraction to a graph

Extract parties, triggers, deadlines, and remedies into a property graph — query "what obligations expire in Q3" or "which contracts reference this entity" in one hop.

Extraction · property graph · Cypher
Semantic e-discovery

Search a corpus by meaning across contracts, emails, and filings — surface responsive documents that keyword search misses, over the same store.

Vector search · semantic retrieval
Immutable review audit

Every AI-assisted review writes document, model version, flags, and reviewer action to a hash-chained immutable table. VERIFY TABLE proves a defensible, unaltered process.

CREATE IMMUTABLE TABLE · VERIFY TABLE
Grounded drafting & summaries

Draft summaries and redline suggestions grounded in the contract text with citations — a starting point the lawyer edits, never an unattributed answer.

GENERATE · grounded RAG
Lawyer-in-the-loop

The review agent proposes; counsel decides. allow_writes=FALSE keeps it advisory — it surfaces risk and evidence, it does not finalize positions.

allow_writes=FALSE · guardrails

The objections counsel raises first

Privilege & confidentiality

Self-hosted with local inference — privileged and client documents never leave your environment for a cloud model.

Defensible & citeable

Every flag cites its source clause; every review is logged to a tamper-evident record — a consistent, demonstrable process for e-discovery.

Grounded, not hallucinated

Retrieval-grounded review and structured obligation extraction mean outputs trace to the contract text, not to model priors.

Fits your DMS / CLM

Sits beside your document management or CLM system via API. It adds grounded review and a graph of obligations; your system stays source of truth.

Run it yourself — the legal recipe library

Every claim on this page is a runnable recipe — contract review, obligation extraction, research RAG, grounded citations. Certified against the latest release.

Why one engine beats a stitched pipeline

  • The vectors that ground a summary, the graph that structures obligations, and the audit that proves the review share one store — on your infra, so privileged text never leaves.
  • Citations and structured extraction make outputs verifiable against source, not trusted blindly.
  • Recipes are SQL and Cypher you can read and adapt — a defensible, inspectable process.

5-email course · free

Ship an agent with persistent memory in 5 emails

A 5-email course where you build a real agent with persistent memory — one runnable SQL recipe per email, no LangChain, no Pinecone, no Redis. Lesson 1 hits your inbox the second you sign up. After that: a new recipe every Monday. No spam.

Free forever. We'll never share your email.

Review that cites its source and logs itself

Grounded clause review, obligations as a graph, semantic e-discovery, and a defensible immutable audit — self-hosted, on your corpus. Book a walkthrough, or self-host the free CE.