Ai · Jul 6, 2026 · 14 min read
RAG for Arabic Knowledge Bases: Architecture and Pitfalls
How to build retrieval-augmented generation systems that actually work on Arabic enterprise content — embeddings, chunking, hybrid search, and evaluation.
By Layla Mansour · AI Practice Lead
Why RAG on Arabic content is harder than English
Retrieval-Augmented Generation has become the default pattern for enterprise knowledge bases — especially for Arabic knowledge bases. The architecture is straightforward: chunk documents, embed them into vectors, retrieve relevant chunks for a query, and feed them to an LLM for answer generation. On English content, this works well with off-the-shelf models.
Arabic introduces compounding challenges: right-to-left text with mixed LTR segments, root-based morphology that inflates vocabulary size, diacritics that change meaning, and a spectrum from Modern Standard Arabic to Gulf dialect in enterprise documents. Saudi enterprises need RAG systems designed for these realities — the same localization depth we apply in Arabic RTL UX and AI development — not English pipelines with a translation shim.
Embedding models for Arabic enterprise content
General-purpose multilingual embeddings (e.g., from OpenAI or Cohere) handle Arabic at a basic level but underperform on domain-specific terminology — legal Arabic, medical Arabic, or financial reporting in KSA. Incubytes fine-tunes embedding models on client corpora using contrastive learning, which significantly improves retrieval relevance for enterprise queries.
Key decision: fine-tune a multilingual model or train an Arabic-specific model? For most Saudi enterprises with bilingual content — including Arabic/English support chatbots — fine-tuning a strong multilingual base (like BGE-M3 or Jina-v3) gives the best balance of Arabic and English retrieval quality.
Arabic-aware chunking strategies
Naive fixed-size chunking (e.g., 512 tokens) breaks Arabic sentences mid-word and splits semantic units. Use sentence-boundary detection tuned for Arabic punctuation patterns, then merge sentences into chunks that respect paragraph and section boundaries. For structured documents (policies, regulations), use heading-based chunking that preserves hierarchy.
Also handle mixed-content documents common in Saudi enterprises: Arabic body text with English headers, tables with bilingual data, and embedded dates in both Hijri and Gregorian calendars. Incubytes's preprocessing pipeline normalizes these before chunking.
•
Use Arabic sentence tokenizers (not generic regex splitting).
•
Preserve document metadata (section, page, source) in chunk records.
•
Normalize Arabic text: remove tatweel, standardize hamza forms, handle kashida.
Hybrid search: combining dense and sparse retrieval
Dense vector search captures semantic similarity but struggles with exact Arabic terminology — a specific regulation number, a product code, or a person's name. Sparse retrieval (BM25 with Arabic stemming) excels at exact matches but misses paraphrases. Combining both with reciprocal rank fusion consistently outperforms either approach alone on Arabic enterprise benchmarks.
Incubytes deploys hybrid search using a vector database (Qdrant or Pinecone) for dense retrieval alongside Elasticsearch with Arabic analyzers for sparse retrieval. The fusion layer weights results based on query type: keyword-heavy queries lean sparse, conceptual queries lean dense.
Evaluation: measuring what matters
Separate retrieval evaluation (are the right chunks returned?) from generation evaluation (is the answer accurate and grounded?). For retrieval, measure recall@k and mean reciprocal rank on a labeled test set of Arabic queries. For generation, evaluate faithfulness (does the answer contradict the source?), relevance, and completeness.
Build a golden test set of 50–100 query-answer pairs covering your domain. Include edge cases: mixed-language queries, ambiguous terms, and questions that span multiple documents. Update this test set quarterly as content evolves. Without rigorous evaluation, RAG quality degrades silently.
Frequently asked questions
Why is Arabic RAG harder than English?
Tokenization, morphology, and chunk boundaries differ. Naive English chunking breaks Arabic meaning.
What data should we index first?
High-value internal docs with clear owners: policies, SOPs, product FAQs, and approved knowledge articles.
How do we prevent hallucinations?
Cite retrieved passages, refuse when retrieval is weak, evaluate on Arabic golden sets, and keep humans in the loop for high risk.