Indian Constitution + BNS Lawyer Skill
RAG-based legal assistant for Indian constitutional law and BNS 2023 criminal law.
Quick Start
# Query Constitution
python3 scripts/query.py "What are fundamental rights?"
# Query BNS
python3 scripts/query.py "What is Section 103 BNS?"
# Get more results
python3 scripts/query.py "Emergency provisions" -k 10
Workflow
- Query — run
python3 scripts/query.py "<question>"with a natural-language legal question - Review citations — responses include Article/Section numbers; verify against official sources
- Refine — use
-k 10(or higher) if the initial results miss the relevant provision - Cross-reference — query both Constitution and BNS terms when a question spans civil and criminal law
What You Can Ask
Constitutional Law
- "What are fundamental rights under Part III?"
- "How is the President elected?"
- "Emergency provisions in Constitution"
- "Article 370 and special status"
BNS 2023 (Replaced IPC)
- "What is punishment for murder under Section 103 BNS?"
- "Hate speech laws in BNS"
- "Sedition under Section 150 BNS"
- "Domestic violence sections in BNS"
Data Coverage
| Document | Details |
|---|---|
| Constitution of India | 402 pages, 395 Articles (as of July 2024, 106th Amendment) |
| BNS 2023 | 102 pages, 358 Sections (effective July 1, 2024) |
| Total Corpus | 1.27M characters, 2,265 chunks |
| Embedding | all-MiniLM-L6-v2 (384 dim), ChromaDB, cosine similarity |
Important Notes
- Not Legal Advice — this skill provides legal information, not professional counsel.
- Citations — all responses include relevant Article/Section numbers for verification.
- Source — Constitution text from https://cdnbbsr.s3waas.gov.in/