August - November 2024
This is our submission for ALLaM Challenge 2024, hosted by the Saudi Data & AI Authority (SDAIA).
- Abdullah Alwakeel
- Abdulrahman Alshahrani
Our project aims to improve the quality of AI Arabic poetry generation by using chain-of-thought and trial-and-error techniques.
With chain-of-thought, the model is able to set a plan for its poem before generating it, and also iteratively critic its own generation. This technique reduces the amount of linguistic errors and increases the response's relevancy to the user prompt.
Powered with poetry analysis tools, the model is also able to backtrack on incorrect generations and retry to ensure the generated poems are correct linguistically and follow Arabic poetry rules.
pip install -r requirements.txt
python website.py
python main.py
cd allam-website && npm i
npm run build