Built for Built with Opus 4.7: a Claude Code hackathon (Apr 21–26, 2026)
A knowledge graph for Peru's Tribunal Constitucional sentencias. Ask legal questions in Spanish, get cited answers synthesized across rulings by Claude Opus 4.7.
🚧 In active development. This README will be expanded as features land.
# Clone
git clone https://github.com/mbarrueto/lexgraph.git
cd lexgraph
# Install
python -m venv .venv
.venv\Scripts\activate # Windows
# source .venv/bin/activate # macOS/Linux
pip install -r requirements.txt
# Configure
cp .env.example .env
# Edit .env with your Anthropic and OpenAI API keys
# Run
python -m lexgraph.api- Claude Opus 4.7 (
claude-opus-4-7) — visible reasoning engine - LightRAG — knowledge graph framework
- PyMuPDF — PDF extraction
- OpenAI
text-embedding-3-large— embeddings - FastAPI — backend
- Next.js + Tailwind — frontend (planned)
MIT — see LICENSE.
Marco Barrueto — Peruvian-American founder building tools for legal research.