Why Arabic breaks English-first pipelines
Arabic is spoken by more than 400 million people, yet most retrieval pipelines are tuned on English. A question that works perfectly in English can return nothing useful in Arabic, for reasons that have little to do with the language model:
- Several spellings for one word. The same word can be written with أ, إ, آ or ا, end in ة or ه, or end in ى or ي.
- Optional diacritics. Vowel marks (tashkeel) are usually left out but sometimes aren't, and to a computer مَدرسة and مدرسة are different strings.
- Rich morphology. Prefixes and suffixes attach to the word itself. وبالمدرسة means "and in the school", and a naive tokenizer sees one unfamiliar word.
- Dialects. People in the Levant, the Gulf and Egypt ask the same question with different words, while your documents are usually in Modern Standard Arabic.
- Arabizi and code-switching. "kam se3r el delivery?" is Arabic written in Latin letters, with digits standing in for sounds. Many users also mix in English product names.
Step 1: normalize the same way at index time and query time
Normalization makes different spellings of the same word identical. A common, safe set of rules:
- Unify alef forms: أ إ آ → ا
- Final ta marbuta to ha: ة → ه
- Alef maqsura to ya: ى → ي
- Strip diacritics and the tatweel stretching character (ـ)
- Convert Arabic-Indic digits (٠١٢٣) to Western digits, so prices and phone numbers match
The rule that matters most is to apply exactly the same normalization to your documents and to the user's question. Normalize one side only and search gets worse, not better.
Keep the original text for display. Normalize only the copy you search over.
Step 2: chunk by meaning, not by character count
Fixed-size chunks cut Arabic sentences in awkward places, because Arabic sentences tend to run long and punctuation is used loosely. Split on headings, paragraphs and list items first, then cap the size.
Make each chunk stand on its own. Repeat the product or section name at the top of every chunk, so a passage about "the price" still says which price.
Step 3: use embeddings that were trained on Arabic
An embedding model turns text into numbers so that passages with similar meanings land close together. English-only models do poorly on Arabic.
Use a multilingual model that was actually trained on Arabic data, such as BGE-M3 or the multilingual E5 family, and compare their Arabic scores on the MTEB benchmark. Better still, compare them on your own questions.
A good multilingual model has a useful side effect: an English question can find an Arabic document, and the other way round.
Step 4: combine keyword search and semantic search
Semantic search understands meaning but is weak on exact names, product codes and numbers. Keyword search (BM25) is the opposite.
Hybrid search runs both and merges the results. A reranker then reorders the top candidates by how well each one answers the question. For Arabic, hybrid search is where I have seen the biggest single jump in quality, because brand names and prices are exactly what customers ask about.
Step 5: handle dialect in the question, not the documents
Rewriting every document into several dialects is expensive and fragile. It is cheaper to rewrite the question.
Before searching, ask the language model to restate the user's message in clear Modern Standard Arabic, transliterating any Arabizi. Then search with both the original and the rewritten version. Reply in the user's own register, so a question in Levantine dialect gets a natural answer instead of a news-anchor one.
Step 6: test in Arabic
Build the test set from real Arabic messages, including dialect, Arabizi and mixed English, and measure retrieval and faithfulness separately. The method is in how to tell if your RAG system is right.
When to add a knowledge graph
When answers depend on relationships between things, such as which branch sells which product at which price, plain passage search starts to miss. That is where a knowledge graph helps. I explain how in Graph RAG, and why it matters in Arabic.
Get the unglamorous parts right (normalization, chunking, hybrid search) and most "the model doesn't understand Arabic" problems go away. Usually the model understood fine. It was never shown the right passage.