Amharic Legal RAG + Sentiment Analysis pipeline for Ethiopian legal documents and complaints. Built for localized AI applications in Ethiopia.
# πͺπΉ Amharic Legal RAG + Sentiment Analysis
**A powerful Retrieval-Augmented Generation (RAG) system for Amharic legal documents and complaints with built-in Sentiment Analysis.**
This project enables intelligent Amharic language applications for Ethiopian organizations, legal aid centers, government offices, and customer support systems.
```
```
## β¨ Features
- Full **Amharic RAG pipeline** (Retrieval-Augmented Generation)
- **Sentiment Analysis** (Positive / Negative / Neutral) for Amharic text
- Vector database using **Chroma**
- Ready-to-use web interface (Streamlit)
- Google Colab support
- Clean and well-organized project structure
- Focused on low-resource language support (Amharic)
---
## π Project Structure
```bash
βββ app/ # Streamlit web application
βββ data/ # Sample legal and complaint datasets
βββ src/ # Core RAG and processing logic
βββ vector_db/ # Chroma vector store
βββ colab_setup.ipynb # Easy Colab notebook
βββ requirements.txt
βββ README.md
βββ LICENSE
```
## π Quick Start
### 1. Clone the repository
```bash
git clone
github.com
cd Amharic-Legal-RAG-Sentiment
```
### 2. Install dependencies
```bash
pip install -r requirements.txt
```
### 3. Run the application
```bash
streamlit run app/main.py
# or
python src/main.py
```
**Google Colab Users**: Open `colab_setup.ipynb`
---
## π οΈ Tech Stack
- **Python**
- **LangChain** / LlamaIndex (RAG)
- **Sentence Transformers** (Amharic embeddings)
- **Chroma** (Vector DB)
- **Streamlit** (UI)
- Hugging Face models optimized for Amharic
---
## π― Use Cases
- Automated analysis of customer complaints in Amharic
- Legal document question-answering assistant
- Sentiment monitoring for government or NGO feedback
- Building localized Ethiopian AI applications
---
## π Roadmap
- [ ] Add mor β¦