Downloads · 30 days
0
AbdelrahmanAkl/Arabic-FAQ-RAG
Arabic-FAQ-RAG is a machine learning model from AbdelrahmanAkl. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
Arabic Semantic FAQ Retrieval with Intent Classification and Intent-Aware Reranking
Downloads · 30 days
0
Access
Public
Updated Sep 7, 2026
Repo size
532 MB
Likes
0
Public
Click a slice to open those files.
.faiss505 MB · 95%
From the Hugging Face model README
Arabic Semantic FAQ Retrieval with Intent Classification and Intent-Aware Reranking
Try the deployed application:
https://arabic-faq-rag.streamlit.app/
Arabic FAQ RAG is an Arabic semantic retrieval system designed to retrieve relevant answers from a large FAQ knowledge base.
The system combines:
The goal is to retrieve relevant FAQ answers even when the user's wording differs significantly from the original question stored in the knowledge base.
User Question
│
▼
Intent Classification
│
▼
Multilingual E5 Embedding
│
▼
FAISS Semantic Retrieval
│
▼
Top-K Candidates
│
▼
Intent-Aware Reranking
│
▼
Best FAQ Results
The retrieval system uses:
intfloat/multilingual-e5-base
The model converts Arabic questions into dense vector representations that can be compared using semantic similarity.
The embedding dimension used by the retrieval index is:
768
The indexed knowledge base contains approximately:
164,456 FAQ chunks
Each metadata record contains information such as:
data/
├── train_chunks.faiss
└── train_chunks_metadata_v2.parquet
models/
└── intent_classifier.joblib
train_chunks.faissFAISS vector index containing the precomputed FAQ embeddings.
train_chunks_metadata_v2.parquetMetadata associated with the indexed FAQ chunks.
intent_classifier.joblibSerialized intent classification model used to predict the user's question type.
The intent classifier provides an additional signal during retrieval.
Examples include intents such as:
Account / Subscription Management
Billing Dispute
Troubleshooting
Policy
Product / Plan Details
The predicted intent is used by the reranking stage to improve candidate ordering.
After retrieving the initial candidates using semantic similarity, the system performs a reranking step.
Conceptually:
Final Score =
Semantic Similarity
+
Intent Compatibility
This allows the retrieval system to consider both:
The artifacts can be used as part of the complete Arabic FAQ RAG application.
The main application repository is available on GitHub:
https://github.com/AbdelrhmanAkl/Arabic-FAQ-RAG
The application automatically downloads the required artifacts from this Hugging Face repository when local copies are unavailable.
The complete system is deployed as a Streamlit application:
Arabic FAQ RAG — Live Demo
https://arabic-faq-rag.streamlit.app/
https://github.com/AbdelrhmanAkl/Arabic-FAQ-RAG
https://arabic-faq-rag.streamlit.app/
https://huggingface.co/AbdelrahmanAkl/Arabic-FAQ-RAG
This repository provides retrieval and classification artifacts for the Arabic FAQ system.
The complete application logic, retrieval pipeline, reranking implementation, and Streamlit interface are available in the GitHub repository.
The current system retrieves existing FAQ answers rather than generating new answers with a generative LLM.
Future versions may include:
Abdelrahman Ahmed Akl
AI / ML Engineer NLP • LLMs • AI Agents • RAG • Machine Learning