Qalqul Engine · shipped
Qalqul: classical NLP/NLU engines
Intent classification and entity extraction on language servers and Duckling, tuned per client, before LLMs made it the default.

Problem
A banking bot has to know that “I want to block my card” and “my card was stolen” are the same intent, and pull out the amount, the date and the account from a sentence written in a mix of Arabic, French and Darija. In 2021 that meant classical NLP: tokenisation, classifiers and entity extractors, built and tuned for each client.
Constraints
- Little training data: each client starts with a few examples per intent.
- Mixed languages and scripts: Arabic, Latin-script Darija and French in the same message.
- Structured entities: dates, amounts and numbers must come out normalised.
- Fast: understanding runs on every message, in real time.
Architecture
Key decisions
- Language servers behind one API. Each language model runs as its own server, and bots call one understanding API.
- Duckling for structured entities. Dates and amounts are a solved problem; Duckling normalises them instead of custom regexes.
- Per-client models. Each client’s intents are trained and versioned separately, so one client’s changes never affect another.
Results
Numbers to come.
Stack and links
Deep dives
- Qalqul: stateless migration, real-time systems and task dispatching: Moving Qalqul's services to stateless, horizontally scaled processes with real-time messaging, a task dispatcher, and the infrastructure behind them.