bgevconsultancy makes legal-AI citations prove their work

This fork turns citations from helpful links into a more defensible trail back to the precise source text.

searchcompliance

Chat answers gain clickable citation chips and a clear notice of what supports them. Behind that simple interface, each source passage is recorded with its location in the document, page range, character positions and a checksum that identifies the version originally analysed.

That enables two useful safeguards:

  • Exact highlighting in the document viewer, taking the reader straight to the cited passage rather than searching for a similar phrase.
  • A visible stale-citation warning when the current document no longer matches the version used to generate the answer.

The result is a citation experience built for checking, not merely reading.

So what Legal teams assessing AI answers against contracts, evidence or policy documents should care because this makes verification faster and flags when the underlying record has changed.

View this fork on GitHub →

Spotted something wrong? Or know the PR text has fresher detail than the writeup above?

Commits in this thread

5 commits from bgevconsultancy/Helm-v2, oldest first. Source extracted verbatim from the harvested git log.

SHA Subject Author Date
1000fd4b T6.1 citation chips on answers Clava Stripdown 2026-07-23 ↗ GitHub
ba4631dc T4.3 chunk provenance store Clava Stripdown 2026-07-23 ↗ GitHub
Persist clause_id/section_path, page bounds, nullable bbox, char offsets, and SHA-256 checksums at ingest via extended replace_document_chunks; surface provenance through retrieve/citation types for Feature 1.
45ca4479 T6.2+T6.3 source highlight and drift guard Clava Stripdown 2026-07-23 ↗ GitHub
Exact span highlight via stored offsets/substring (no fuzzy rematch), plus stale citation banner when the live doc no longer matches.
b87f0047 fix RetrievedPassage fixture for T4.3 provenance fields Clava Stripdown 2026-07-23 ↗ GitHub
Keep stream partial tests typechecking after required clause/offset/checksum fields.
849d6ef4 merge T6.2+T6.3 source highlight and drift guard Clava Orchestrator 2026-07-23 ↗ GitHub

Capture this thread into my fork

Download a single Markdown prompt that tells Claude how to port every commit above into your working tree — adapting paths and structure to match your repo. Run it via claude -p < capture-thread-957.md from inside the repo you want the changes in.

⬇ Download capture-thread-957.md