$ cat projects/nepal-law-rag/README.md
Nepal Law Q&A Bot
Retrieval-augmented Q&A over two Nepali Acts
personal demo github
- problem
- Labour and consumer law questions have exact answers buried in long Acts, and a general chatbot will happily make one up.
- approach
- Retrieval-augmented generation over the Labour Act 2017 and the Consumer Protection Act 2018. The Acts are chunked by section (261 chunks) and embedded locally with bge-small into Chroma. The top four sections go to gpt-oss-120b on Groq, which must cite the Act and section or say the question isn’t covered.
- eval
- 32 hand-written questions plus 5 out-of-scope ones. Retrieval hit@1 31/32, hit@2 32/32. Answers correct with the right citation: 27/32 as first graded, 32/32 after fixing a too-literal grader. Out-of-scope questions refused 5/5.
- note
- A personal demo, not legal advice. No model is fine-tuned.
- Python
- RAG
- Chroma
- Sentence Transformers
- Groq
- Streamlit