An AI support assistant that answers customer questions in Arabic and English using the company's own policies (refunds, delivery, payment, working hours) and shows the source behind every answer.
How it works:
1. Split the policy documents into small sections and built a bilingual search index (retrieval).
2. For each question, the system finds the most relevant section and answers from it, with a citation.
3. If the documents don't contain the answer, it doesn't make one up: it says so and hands the case to a human agent.
4. Optional LLM mode writes the reply, with a check that rejects any answer citing a source that wasn't actually retrieved.
5. Support tickets are saved in SQLite without duplicates and can be exported to CSV.
6. Web interface, REST API, Docker and n8n integration.
Result: 10/10 correct answers or correct refusals on a bilingual test set (including off-topic questions), with 14 passing automated tests. Built on sample e-commerce policies.