All projects

Case study 05 / Agents & RAG

Offline bilingual HR assistant for EVA Cosmetics

EVA Cosmetics' Policy Assistant: a fully offline assistant that answers HR-policy questions in Arabic and English from a local model, with zero cloud exposure.

Role
AI Engineer: architecture, retrieval, local deployment
Timeline
EVA Group · 2025 – present
Stack
Python · ChromaDB + BM25 · Aya-Expanse 8B · Ollama

01Problem

Employees needed a simple way to find HR information buried in internal documents, in either Arabic or English. The policy content was sensitive, so it could not be sent to any external or cloud service.

02Solution & architecture

  • Hybrid retrieval: ChromaDB vector search catches paraphrased questions, while BM25 keyword search catches exact policy terms, numbers and department names.
  • Local model: answers come from Aya-Expanse 8B served by Ollama on internal hardware, so no document or question leaves the network.
  • Bilingual workflows: Arabic and English HR documents are ingested and queried in whichever language the employee uses.
  • Trade-off: a local 8B model gives up some raw capability compared with a larger hosted one, in exchange for a strict no-cloud guarantee on HR data.
HR assistant architecture: Arabic and English HR documents are searched by ChromaDB and BM25 in parallel, the results are merged, and a local Aya-Expanse 8B model on Ollama writes the answer
Query path: parallel vector and keyword retrieval, merged and answered by a local model, all on-premise.

03Demo

EVA Cosmetics Policy Assistant answering 'عايز اجازه' (I want leave) in Arabic with the leave types from the policy and one cited source

Asked 'عايز اجازه' (I want leave), the assistant lists the leave types from the HR policy and cites its source.

EVA Cosmetics Policy Assistant chat: an English greeting, then an Egyptian-Arabic question about required working hours, with the search it ran
English or Egyptian Arabic: a greeting in English, then a question about required working hours in Arabic.

04Results

  • 0cloud calls

    fully offline: no HR document or question leaves the network

  • 2languages

    Arabic and English HR-policy access

  • 8B

    Aya-Expanse model running locally on Ollama

05What I'd improve next

  • Evaluation set: build a bilingual question set from real HR queries to measure retrieval and answer quality on every change.
  • Reranking: add a local reranker after the merged ChromaDB + BM25 results to improve which passages reach the model.
  • Citations: show the exact policy section behind each answer so employees can verify it.

Enterprise project. Screens and demos use mock or blurred data; no internal HR documents or employee information are shown.