
UAE Expat Navigator is a RAG-powered AI assistant built to help UAE residents and expats navigate government services — driving license conversion, visa status changes, work permits, and family residence permits. The system retrieves answers exclusively from official UAE government PDFs (RTA, ICP, MOHRE, GDRFA) and uses conditional tool calling to check eligibility and calculate fees in real time. Architecture: - Frontend: HTML/JS chat interface with tool-call visualization and source citations - Backend: FastAPI with LangChain agent and ChromaDB vector store (185 chunks) - LLM: Qwen 2.5 7B Instruct served via vLLM 0.17.1 on AMD MI300X - Embeddings: OpenAI text-embedding-3-small - Tools: eligibility_checker and fee_calculator with conditional invocation logic Key technical decisions: 1. Tool results are injected above documents in the prompt with an explicit hierarchy rule — preventing the LLM from hallucinating over missing PDF context 2. Fee calculation is blocked when a country is ineligible for direct exchange, avoiding misleading AED quotes 3. Short vague follow-ups like "What about Pakistan?" are detected and routed to the eligibility tool automatically 4. All answers cite specific PDF sources and include a legal disclaimer Deployed on AMD MI300X via AMD Developer Cloud using the vLLM ROCm 7.2 Quick Start image. The 192GB VRAM on the MI300X handled Qwen 2.5 7B comfortably with room to scale. Built with: Python, FastAPI, LangChain, ChromaDB, vLLM, ROCm, AMD MI300X, Qwen 2.5 7B Instruct.
10 May 2026