DEV Community

Cover image for My PR got merged into Mike โ€” OSS Legal AI Platform ๐ŸŽ‰
Diya
Diya

Posted on

My PR got merged into Mike โ€” OSS Legal AI Platform ๐ŸŽ‰

PR #466 โ€” fix(citations): enforce document order for [[PAGE_BREAK]] segments

Repo: open-legal-products/mike โ€” 4.3k โญ, open-source legal AI
platform for document review, drafting, and legal research.
Built with Next.js, Express, Supabase, and Cloudflare R2.

The bug I fixed:
Citations were verified segment by segment with no position check.
So B[[PAGE_BREAK]]A earned verified: true even when A preceded
B in the document โ€” wrong order, wrong result.

I enforced document order across [[PAGE_BREAK]] segments in
verifyQuoteAgainstSource.

Wrong citation order = wrong legal research. That matters.

โ†’ PR #466

Top comments (0)