RAG SystemsStatus: Case Study
AndhaKaanun
Jurisdiction-aware AI legal reasoning platform using Indian-law retrieval.
A look inside
6 screens from the real build. Select any to see it full size.
Overview
Generates dual-perspective prosecution and defense arguments from incident descriptions, grounded in Indian law and citation-aware retrieval.
Most legal AI tools give broad answers without jurisdictional grounding, explicit opposing arguments, or enough context to refine weak legal claims.
What I built
Designed the RAG flow, legal context framing, dual-perspective output structure, and missing-facts interaction model.
What it does
- Incident intake
- Citation-aware retrieval context
- Dual argument generation
- Missing fact prompts
System and architecture
A RAG pipeline retrieves Indian-law context, passes it into an LLM reasoning flow, and asks follow-up questions when facts are missing.
Incident descriptions enter a RAG pipeline backed by Pinecone. Retrieved Indian-law context is passed to Groq/Llama-3.3-70b to produce prosecution and defense reasoning, followed by an interactive engine that asks for missing legal facts.
- API & services
- Retrieval & data
- AI & models
- Vector retrieval over Indian-law context
- Separate prosecution and defense reasoning paths
- Follow-up question loop for missing legal facts
Technology
Themes
Challenges and trade-offs
- Avoiding broad legal claims without enough retrieval context.
- Separating legal reasoning support from legal advice.
Outcome
Indian law RAG · IPC grounding · Pinecone · Groq/Llama-3.3-70b
- Built a case-study-ready RAG architecture for jurisdiction-aware legal reasoning.
- Improved output usefulness by forcing both sides of the argument to be represented.
Learnings
- RAG systems need domain-specific guardrails and uncertainty handling.
- Opposing-perspective generation can expose weak or missing assumptions.
See it for yourself.
Links open in a new tab.