Add Leksa RAG legal context injection into tabular review extraction

↗ view on GitHub · GIVENALITY · 2026-05-14 · d5b14f75

- Extract fetchLegalContext into shared lib/leksaRag.ts (used by both
  projectChat and tabular routes)
- Inject Tanzanian legal context into queryTabularAllColumns and
  queryTabularCell so the LLM can flag clauses as compliant/non-compliant
  against actual Tanzanian law (not just extract text)
- Extend inline citation requirement to all column formats (was only
  yes_no/date/tag; now text and bulleted_list also require citations)
- Add seedWorkflows.ts script: seeds 4 system tabular review workflows
  for Employment, SPA, Loan Agreement, and Court Pleading review

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Repository GIVENALITY/mike
Author GIVENALITY <vgiven@yahoo.com>
Authored
Parents 73bb7e3b
Stats 4 files changed , +414 , -61
Part of Leksa RAG Integration - Tanzanian Legal Context

Capture this commit into my fork

Download a Markdown prompt that tells Claude how to port this exact commit into your working tree. Run it via claude -p < capture-commit-d5b14f75.md from inside the repo you want the change in.

⬇ Download capture-commit-d5b14f75.md