Logo Lanfrica

ocanthony4real/Nigeria-Tax-Bill-Chatbox

Domain:

natural language processing

Record type:

software
Creator:
oca
Host:
# Nigeria Tax Act 2025 - AI Legal Assistant An AI-powered legal assistant that provides accurate, citation-backed answers about Nigerian tax law. Built with **RAG (Retrieval-Augmented Generation)** and a **fine-tuned LLaMA 3.1 8B** model. --- ## Problem Statement Legal professionals and citizens in Nigeria face challenges accessing and understanding the comprehensive Nigeria Tax Act 2025. Traditional search methods are inadequate for: - Finding specific tax regulations quickly - Understanding how different sections interact - Getting accurate citations for legal documents ## Solution This project delivers an AI assistant that: - **Answers questions** about Nigerian tax law in natural language - **Provides accurate citations** (Section, Page numbers) for every response - **Grounds responses** in official documentation to prevent hallucination --- ## Key Features | Feature | Description | |---------|-------------| | **RAG Pipeline** | Retrieves relevant context from 291 document chunks before generating answers | | **Fine-tuned LLM** | LLaMA 3.1 8B trained on 911 tax law Q&A pairs with citation format | | **Vector Search** | BAAI/bge-large-en-v1.5 embeddings with Qdrant for semantic search | | **Auto-scaling** | SageMaker endpoint scales to zero when idle, reducing costs by 90% | | **Modern UI** | Next.js frontend with real-time chat interface | | **CI/CD** | Automated deployment via GitHub Actions to AWS App Runner | --- ## Architecture ``` ┌─────────────────────────────────────────────────────────────────────────────┐ │ USER INTERFACE │ │ (Next.js on App Runner) │ └─────────────────────────────────┬───────────────────────────────────────────┘ │ ▼ ┌─────────────────────────────────────────────────────────────────────────────┐ │ FASTAPI BACKEND │ │ …