metadata
title: Arabic RAG Question Answering
emoji: π€
colorFrom: blue
colorTo: green
sdk: gradio
sdk_version: 4.0.0
app_file: app.py
pinned: false
license: apache-2.0
π€ Arabic RAG Question Answering System
An intelligent Arabic question answering system powered by LFM2-1.2B-RAG fine-tuned with AdaLoRA - enabling accurate, context-aware responses for general Arabic queries.
π Why This Model?
β‘ Fast & Efficient (LiquidAI Architecture)
- Edge-optimized: Runs efficiently on CPU, GPU, or NPU
- Lightning-fast inference: 2x faster than comparable models
- Device-agnostic: Deploy on smartphones, laptops, or servers
- Low memory footprint: Perfect for resource-constrained environments
π― Advanced Fine-tuning (AdaLoRA)
This model uses AdaLoRA (Adaptive Low-Rank Adaptation) - an advanced parameter-efficient fine-tuning technique that:
- Dynamically allocates model capacity based on importance
- Outperforms standard LoRA across multiple metrics
- Achieves better F1 scores and answer correctness
- More efficient parameter usage for superior results
π Arabic RAG Excellence
- General-purpose Arabic question answering
- Context-aware responses grounded in provided information
- Modern Standard Arabic optimization
- Real-world RAG applications ready
π― How to Use
- Paste Context: Add any Arabic text containing information
- Ask Question: Write your question in Arabic
- Get Answer: Receive an accurate, extracted answer instantly
Perfect for: document analysis, information extraction, educational tools, customer support, and research applications.
π§ Model Details
- Base Model: LiquidAI/LFM2-1.2B-RAG
- Fine-tuning: AdaLoRA (Adaptive Low-Rank Adaptation)
- Dataset: ARCD β 693 Arabic QA examples
- Language: Modern Standard Arabic
- Architecture: Hybrid model with multiplicative gates and convolutions
β‘ The model can be further enhanced and evaluated on larger or similar Arabic QA datasets to improve generalization and robustness.
β‘ Features
- π Real-time answer generation
- ποΈ Adjustable generation parameters
- π Pre-loaded example questions
- π Full RTL support for Arabic
- π Copy-to-clipboard functionality
- π» Works on any device (CPU/GPU)
π Resources
- Model Card: azeddinShr/LFM2-1.2B-RAG-ARABIC-AdaLoRA
- Training Dataset: ARCD
- Base Model: LiquidAI/LFM2-1.2B-RAG
- Comparison: Also available - LoRA variant
π§ Contact
Questions or feedback? Visit the model repository or email me directly at [email protected] !
Built with β€οΈ using LiquidAI, AdaLoRA, and Gradio