Skip to Content
Developers
Bharat Recipes

1. Ground an LLM Answer in Bharat Judgments & Statutes

Combine hybrid case search with pre-extracted ratio decidendi, statutory lookup, and citator standing checks.

Open Markdown

Problem: An LLM drafting a legal research summary must anchor every proposition in real Bharat judgments and Central Act sections while confirming that none of the cited cases have been overruled.

StepEndpointScopeCredits
1. Hybrid case search + pre-extracted intelligencePOST /api/v1/in/cases/searchcorpus:read2
2. Hybrid statute searchPOST /api/v1/in/statutes/searchcorpus:read2
3. Live citator standing checkGET /api/v1/in/cases/{id}/citatorcorpus:read2

Implementation

# 1. Search judgments with pre-extracted ratio_decidendi
curl -sS -X POST https://api.vidhi.shamik.app/api/v1/in/cases/search \
  -H "Authorization: Bearer $VIDHI_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "query": "unilateral appointment of sole arbitrator ineligible section 12(5)",
    "forum_type": "supreme_court",
    "include_intelligence": true,
    "limit": 3
  }'

# 2. Search matching Central Statute sections
curl -sS -X POST https://api.vidhi.shamik.app/api/v1/in/statutes/search \
  -H "Authorization: Bearer $VIDHI_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"query": "ineligibility of arbitrator Seventh Schedule", "limit": 3}'

# 3. Verify later court treatment on the top case ID
curl -sS https://api.vidhi.shamik.app/api/v1/in/cases/40812/citator \
  -H "Authorization: Bearer $VIDHI_API_KEY"

Verified Response Excerpts

{
  "items": [
    {
      "id": "40812",
      "title": "Perkins Eastman Architects DPC v. HSCC (India) Ltd.",
      "court_code": "SC",
      "court_name": "Supreme Court of India",
      "forum_type": "supreme_court",
      "year": 2019,
      "citation": "(2020) 20 SCC 760",
      "score": 0.9412,
      "ratio_decidendi": "A person having an interest in the outcome of the dispute is ineligible under Section 12(5) to unilaterally appoint a sole arbitrator.",
      "key_findings": ["Unilateral appointment by an interested party violates Section 12(5) read with Seventh Schedule."]
    }
  ],
  "next_cursor": "eyJzY29yZSI6MC45NDEyLCJpZCI6NDA4MTJ9",
  "has_more": true,
  "total": null,
  "total_is_exact": false
}

On this page