Logo Lanfrica

Lexaze/ET-Amharic-Multilingual-Language-Model-for-Public-Services

Domain:

natural language processing

Record type:

software
Creator:
Lex
Host:
# πŸ‡ͺπŸ‡Ή Amharic Multilingual Language Model for Public Services A demo-ready portfolio project showing how an Amharic-first multilingual AI assistant can help citizens access public-service information. > **Disclaimer:** This is a demo project, not an official government system. It uses a small local sample knowledge base and should not be used as legal, immigration, tax, health, or government advice. ## Features - Amharic / English public-service chatbot - Retrieval-Augmented Generation using a local JSON knowledge base - Multilingual semantic search with `sentence-transformers/paraphrase-multilingual-MiniLM-L12-v2` - FAISS vector search - FastAPI backend - Streamlit web UI - Retrieved source display - Hallucination safeguards through grounded response composition - Tests with Pytest - Docker support ## Supported demo service topics - ID renewal - Passport application - Tax registration - Business license - Health center information - Education document certification - Social services referral ## Project structure ```text amharic-public-services-llm/ β”œβ”€β”€ README.md β”œβ”€β”€ requirements.txt β”œβ”€β”€ .env.example β”œβ”€β”€ app/ β”‚ β”œβ”€β”€ __init__.py β”‚ β”œβ”€β”€ main.py β”‚ β”œβ”€β”€ rag.py β”‚ β”œβ”€β”€ translator.py β”‚ β”œβ”€β”€ prompts.py β”‚ └── utils.py β”œβ”€β”€ data/ β”‚ └── public_services_knowledge_base.json β”œβ”€β”€ frontend/ β”‚ └── streamlit_app.py β”œβ”€β”€ tests/ β”‚ └── test_api.py β”œβ”€β”€ docs/ β”‚ β”œβ”€β”€ architecture.md β”‚ └── demo_script.md └── Dockerfile ``` ## Quick start ### 1. Clone and enter the project ```bash git clone cd amharic-public-services-llm ``` ### 2. Create a virtual environment ```bash python3 -m venv .venv source .venv/bin/activate ``` On Windows PowerShell: ```powershell python -m venv .venv .venv\Scripts\Activate.ps1 ``` ### 3. Install dependencies ```bash pip install --upgrade pip pip install -r requirements.txt ``` The first run downloads the multilingual embedding model from Hugging Face. ### 4. Configure environment ```bash cp .env.example .env ``` ### 5. Run the …