llama-index · Hugging Face embeddings · FastAPI · React
Arabic RAG assistant
Ask questions about Egyptian law and get answers that cite the exact article.
Problem
Legal texts are long, and searching them in Arabic is painful. A plain keyword search misses the article you need, and a general chatbot makes things up.
Features
- Chat in Arabic or English.
- Citations. Every answer names the law and the article number it comes from.
- Says “not found” instead of guessing when the laws don’t cover the question.
How it works
The laws are split by article and each article is embedded. For every question, the most relevant articles are retrieved, and the LLM answers from those articles only, citing them.
- 01Laws split by article
- 02Embeddings
- 03Retrieve articles
- 04LLM answers
- 05Cited answer
Stack
- Model
- Hugging Face embeddings · LLM
- Backend
- llama-index · FastAPI
- Frontend
- React chat