Loading Syscov
Consultation
Cosmic ringed planet background
Case studiesSYS-02RAG & Search

Lexicon

Answers legal research questions over 14.2M case filings and refuses to answer at all when it cannot cite the exact grounded passage.

SYSTEM SCORE
8.8/ 10
CLIENT SECTORGlobal Legal Intelligence & Compliance Firm
PRODUCTION SCALE14.2M (Documents)
DELIVERY TIMELINE12 Weeks to Full Production
SYSTEM STATUSONLINE // 99.99% SLA

Engineering highlights

The core architectural breakthroughs.

High-scale engineering demand distilled into four verified production milestones.

ACHIEVEMENT 01
14.2M Case Filings
CORPUS INDEXED

Federal court opinions and contracts indexed with dense and sparse vectors

ACHIEVEMENT 02
100% Provenance
CITATION TRUTH

Zero hallucinations mathematically guaranteed via passage verification

ACHIEVEMENT 03
2.4s Response
P95 QUERY SPEED

81% faster legal discovery over multi-predicate complex metadata

ACHIEVEMENT 04
-93.3% Review Time
BRIEFING SPEED

Research brief synthesis reduced from 4.5 hours to 18 minutes

Executive overview

The engineering challenge & solution.

THE PRODUCTION BOTTLENECK

Litigation attorneys research millions of state and federal court opinions, statutory amendments, and regulatory dockets. Standard vector search failed catastrophically: it matched general semantic themes but missed obscure jurisdictional qualifiers and fabricated convincing legal precedents. In court, citing a hallucinated ruling results in judicial sanctions and immediate loss of license.

THE ARCHITECTURAL SOLUTION

We built a hybrid multi-stage retrieval architecture combining dense semantic vectors (pgvector with customized HNSW partitions) with sparse BM25 lexical search (Elasticsearch). Retrieved passages pass through a secondary Cross-Encoder reranker, followed by a citation-assertion verification pipeline that validates every sentence against the source passage before rendering.

Documents14.2M
p95 answer2.4s
Citation coverage100%
Index refreshNightly CDC
Lexicon production architecture
SYS-02 // PRODUCTION ARCHITECTURE
PROVEN PRODUCTION STACK
PythonpgvectorElasticsearchPostgreSQLModel APIsFastAPI

Engineering governance

The three non-negotiables.

These are the architectural constraints that shaped every boundary — no trade-offs or compromises permitted.

RULE 01 // CONSTRAINT

100% Grounded Citation Rule

The system must mathematically refuse to answer if an assertion cannot be traced to an exact paragraph in an ingested court document.

RULE 02 // CONSTRAINT

Sub-3-Second p95 Budget

Attorneys require sub-3-second responses across 14.2 million long-form legal filings with complex multi-predicate metadata filtering.

RULE 03 // CONSTRAINT

Confidentiality Isolation

Zero cross-tenant data leakage between competing law firms utilizing shared underlying foundational models.

syscov-audit // lexicon-core-breakdown.log
HARDEST PROBLEM RESOLVED
DEEP TECHNICAL AUDIT

Resolving Conflicting Jurisdiction Precedents Without Context Window Exhaustion

THE FAILURE MODE & BREAKDOWN

Legal questions frequently hinge on subtle jurisdictional boundaries (e.g., 9th Circuit vs 2nd Circuit precedents). Standard RAG chunking retrieved contradictory opinions from different circuits, causing the LLM to blend contradictory doctrines into inaccurate summaries.

THE ARCHITECTURAL RESOLUTION

We implemented structured legal taxonomy tagging at ingest time. The retrieval pipeline executes a multi-channel search that segregates documents by jurisdictional hierarchy and precedent weight. An evidence arbitration model evaluates temporal precedence (superseded rulings) and filters out overruled opinions before generation begins.

Request lifecycle

How data moves through Lexicon.

Production verification

Measured outcomes in production.

Every metric below was captured under real production traffic and audited against historical baseline data.

Citation Precision
LEGACY84.1%
SYSCOV100.0%
Zero hallucinations
p95 Retrieval Latency
LEGACY12.8s
SYSCOV2.4s
-81.2% query speed
Document Ingestion Rate
LEGACY1.2k docs/hr
SYSCOV85k docs/hr
70x ingestion scale
Attorney Briefing Time
LEGACY4.5 hours
SYSCOV18 minutes
-93.3% research time

Operational resilience

Automated safety guardrails.

Systems fail in production. Here is how Lexicon survives network partitions, upstream timeouts, and anomalous inputs without human intervention.

DEFENSE-01

Strict Citation Verification Gate

Post-generation validator rejects any claim lacking verbatim quote offsets.

DEFENSE-02

Jurisdictional Metadata Boundary

Queries strictly filtered by active state and federal appellate hierarchy.

DEFENSE-03

Continuous RAGAS Evaluation

Nightly automated test suites run across 1,000 benchmark legal filings.

Precision engineering gears

Next step

Building a system with this level of demand?

Bring us the constraint that keeps your engineering leadership up at night — the latency ceiling, the compliance perimeter, or the unyielding reliability requirement.