Skip to Content
Developers
GuideCore Concepts

Pre-Extracted Legal Intelligence

Reuse pre-computed ratio_decidendi, key_findings, arguments_structured, and judgment_sections across 52,116 rulings.

Open Markdown

Vidhi's Corpus Classifier v3 has pre-extracted structured legal intelligence across 52,116 Supreme Court and High Court judgments and stored it directly in Postgres. You can inspect these fields without triggering runtime LLM latency:

  • ratio_decidendi: Holding and operative legal principle extracted from the judgment.
  • key_findings: Numbered factual and legal conclusions.
  • arguments_structured: Party submissions paired with court_treatment (accepted / rejected verdicts).
  • judgment_sections: Character offset spans (section_type, start_offset, end_offset, confidence, method).

Retrieving Intelligence

  1. Inline during Search: Pass include_intelligence: true to POST /api/v1/in/cases/search (no extra credits beyond the 2-credit search call).
  2. Direct Case Endpoint: Call GET /api/v1/in/cases/{id}/intelligence (2 credits, scope corpus:read).

Zero-Credit Refund on Unclassified Rulings

Check has_intelligence on GET /api/v1/in/cases/{id} first, or handle 404 intelligence_not_extracted directly: when a ruling has not yet been processed by the classifier, GET /api/v1/in/cases/{id}/intelligence returns HTTP 404 with code: "intelligence_not_extracted" and automatically refunds the 2 reserved credits (X-Credits-Charged: 0).

On this page