Query Indian Constitution articles and BNS 2023 (Bharatiya Nyaya Sanhita) criminal law sections using RAG with semantic search. Look up fundamental rights, directive principles, emergency provisions, and BNS offences with cited article/section numbers. Use when the user asks about Indian law, constitutional articles, fundamental rights, BNS sections, IPC equivalents, or legal questions about India.
RAG-based legal assistant for Indian constitutional law and BNS 2023 criminal law.
# 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
python3 scripts/query.py "<question>" with a natural-language legal question-k 10 (or higher) if the initial results miss the relevant provision| 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 |