Skip to content

mbarrueto/lexgraph

Repository files navigation

LexGraph

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.

Status

🚧 In active development. This README will be expanded as features land.

Quick start

# 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

Stack

  • 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)

License

MIT — see LICENSE.

Author

Marco Barrueto — Peruvian-American founder building tools for legal research.

About

Knowledge graph for Peru's Tribunal Constitucional sentencias. Ask legal questions in Spanish, get cited answers synthesized across rulings by Claude Opus 4.7.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors