Logo Lanfrica
  • Home
  • Atlas
  • Insights
  • Docs
  • Sign in

© 2026 Lanfrica. All rights reserved. All copyrights of the resources shown on the Lanfrica website belong to the original copyright holders, unless explicitly stated otherwise.

Osmanoor/arabic-rag-query-enhancement

Domain:

natural language processing

Record type:

software
Creator:
Osm
Host:
LLM-based query enhancement for Arabic retrieval on MIRACL Arabic (CSQE + hybrid sparse-dense fusion). University of Khartoum graduation project, 2026. # Arabic RAG Query Enhancement LLM-based query enhancement for Arabic information retrieval, evaluated on MIRACL Arabic (2,896 dev queries, 2.06M passages, Modern Standard Arabic). Undergraduate graduation project — Department of Electrical and Electronic Engineering, University of Khartoum, 2026. --- ## What this does Short Arabic queries are information-poor: they under-specify the information need and suffer vocabulary mismatch against the corpus. This project expands the query before retrieval using open-weight LLMs, and asks *where* in a hybrid sparse–dense pipeline that expansion actually helps. The pipeline was built in stages, each of which is a separate experiment: 1. **Baselines** — mDPR (dense) and BM25S (sparse), evaluated separately. 2. **Query2Doc** — the LLM writes a pseudo-answer document; query + pseudo-doc becomes the new query. Compared across 11 open-weight LLMs (2B–20B). 3. **Query repetition** — the original query is repeated β times inside the expanded query to counter BM25 term dilution. 4. **CSQE (Corpus-Steered Query Expansion)** — a first-pass BM25 retrieval feeds the LLM real corpus sentences, which are mixed with blind expansions (2 corpus + 2 blind, α = 4). 5. **Hybrid fusion** — BM25 and mDPR runs combined via Reciprocal Rank Fusion (RRF) and convex combination (CC). 6. **Asymmetric placement** — the final finding: apply expansion to the *sparse* retriever only. ## Headline results MIRACL Arabic dev set, 2,896 queries. | System | nDCG@10 | R@10 | R@100 | MRR | |---|---|---|---|---| | BM25S, no enhancement | 0.4621 | 0.5964 | 0.8577 | 0.4836 | | mDPR, no enhancement | 0.4993 | 0.6156 | 0.8407 | 0.5328 | | mDPR + Query2Doc (Aya Expanse 8B) | 0.6164 | 0.7256 | 0.9001 | 0.6493 | | BM25S + Query2Doc + repetition (β=2, Aya Expanse 8B) | 0.5855 | — | — | — | | Hybrid RRF (k=20), no enhancement | 0.6267 | 0.7597 | 0.9466 | 0.6517 | | BM25S + CSQE (Aya Expanse 8B) | 0.6157 | 0.7447 | 0.9422 | 0.6380 | | **CSQE → BM25 only, fused with …

Visit

github.com

Tasks

information retrieval

Languages

Arabic, Sudanese Spoken

Licenses

MIT

Similar

Query Expansion Based-on Similarity of Terms for Improving Arabic Information Retrievaldziribot: rag based intelligent conversational agent for algerian arabic dialectGeoLLM: Comparative Study and Enhancement of Large Language Models for Geospatial Knowledge Using Retrieval Augmented Generation(RAG)Benchmarking Attention-Based Enhancement of CNN-Based Moroccan Arabic Darija ASR SystemsTitiplex/maasai-queryQuery-Key Normalization for Transformers

Query Expansion Based-on Similarity of Terms for Improving Arabic Information Retrieval

Part 6: Information Retrieval International audience This research suggests a method

dziribot: rag based intelligent conversational agent for algerian arabic dialect

The rapid digitalization of customer service has intensified the demand for conversational agents ca

GeoLLM: Comparative Study and Enhancement of Large Language Models for Geospatial Knowledge Using Retrieval Augmented Generation(RAG)

In recent years, large language models (LLMs) have demonstrated exceptional ability in natural langu

Benchmarking Attention-Based Enhancement of CNN-Based Moroccan Arabic Darija ASR Systems

Titiplex/maasai-query

This project aims at creating queries into the Oregon University Maasai dictionary. # Maasai Vocabu

Query-Key Normalization for Transformers

Low-resource language translation is a challenging but socially valuable NLP task. Building on recen