GuideCore Concepts
Hybrid Search & Keyset Cursors
Qwen3-4B dense embeddings + PostgreSQL FTS fused via RRF, forum/statute filters, and three-state totals.
POST /api/v1/in/cases/search (2 credits, scope corpus:read) executes a hybrid retrieval pipeline across 130,979 rulings from the Supreme Court of India, High Courts, and 12 tribunals.
How Retrieval Works
- Dense Vector Search: Queries are embedded into 2,560-dimensional
Qwen3-4Bvectors and searched via pgvector. - Full-Text Search (FTS): PostgreSQL legal-lexicon FTS matches exact statute citations, party names, and statutory phrases.
- Reciprocal Rank Fusion (RRF): Ranked lists from dense vector and FTS channels are fused into a unified relevance
score.
Filtering & Inline Intelligence
forum_type:"supreme_court" | "high_court" | "tribunal"court_codes: Array of canonical court or tribunal codes fromGET /api/v1/in/courts(e.g.["SC", "NCLAT"]).statute_codes: Filter to rulings referencing specific Central Acts (e.g.["IPC", "NI_ACT"]).year_from/year_to: Inclusive decision year window.include_intelligence: Whentrue, embeds pre-extractedratio_decidendiandkey_findingsdirectly insideCaseSearchItemat no extra credit cost.
Opaque Cursors & Three-State Totals
Both POST /api/v1/in/cases/search and GET /api/v1/in/cases use opaque base64url keyset cursors (next_cursor, has_more) instead of expensive OFFSET queries:
total_is_exact: falsewithtotal: null: Vidhi avoids slowCOUNT(*)full scans on filtered corpus queries.- Keep iterating while
has_more === trueby passingcursor: response.next_cursor. - All
items[].idvalues are string-encodedBIGINTidentifiers ("122965").
Bharat Data Coverage & Known Limits
Authoritative counts, supported courts and 12 tribunals, Central Acts catalog, and explicit Cohort 1 boundaries.
Claim Support vs. Later Court Treatment
Vidhi's strict legal-honesty contract separating proposition verification from subsequent appellate/citator standing.