How hashim-alsharif/rihlati works
Rihlati is an Arabic-first learning platform with a web interface and a mobile app sharing a server and accounts. Learners ask questions; the server routes them through conversation logic, which searches the reviewed reference library and may use a configured AI provider for source-grounded answers or escalate uncertain and sensitive questions to a specialist. Staff manage accounts, references, indexing, and review. The README also documents curriculum imports and mobile PDF viewing. Some subsystem links are documented rather than visible in sampled source; unsampled connections are omitted.
Main entry points: api_server.py HTTP API · assistant_engine.py Conversation engine · mobile.js Mobile interface · knowledge.py Reference database
Components 18
Learner clients
- Web interface
Rihlati/app/app.js - Account interface
Rihlati/app/accounts.js - Translations
Rihlati/app/i18n.js - Mobile interface
rihlatiApp/src/mobile.js - PDF viewer
rihlatiApp/src/pdf-viewer.js - iOS app scene
rihlatiApp/ios/App/App/SceneDelegate.swift
Learning service
- HTTP API
Rihlati/scripts/api_server.py - Accounts and sessions
Rihlati/scripts/accounts.py - Conversation engine
Rihlati/scripts/assistant_engine.py - AI provider
Rihlati/scripts/ai_provider.py - Server settings
Rihlati/scripts/server_settings.py - Configuration
Rihlati/scripts/config.py
Knowledge library
- Reference database
Rihlati/scripts/knowledge.py - Indexing jobs
Rihlati/scripts/index_jobs.py - Curriculum import
Rihlati/scripts/import_curricula.py
Other components
- Learner
- Specialist
- AI service
Connections 17
- Learner → Web interface: uses
README.md - Learner → Mobile interface: uses
README.md - Mobile interface → HTTP API: shares server
README.md - Web interface → HTTP API: uses server
README.md - HTTP API → Accounts and sessions: authenticates
Rihlati/scripts/api_server.py - HTTP API → Conversation engine: routes questions
Rihlati/scripts/api_server.py - HTTP API → Indexing jobs: dispatches indexing
Rihlati/scripts/api_server.py - HTTP API → Server settings: loads settings
Rihlati/scripts/api_server.py - Server settings → Configuration: reads configuration
Rihlati/scripts/server_settings.py - Conversation engine → Reference database: searches references
Rihlati/scripts/assistant_engine.py - Conversation engine → AI provider: requests grounded answer
Rihlati/scripts/assistant_engine.py - AI provider → AI service: calls provider
Rihlati/scripts/ai_provider.py - Conversation engine → Specialist: escalates questions
- Indexing jobs → Reference database: indexes PDFs
Rihlati/scripts/index_jobs.py - Curriculum import → Reference database: imports references
Rihlati/scripts/import_curricula.py - Mobile interface → PDF viewer: opens documents
- iOS app scene → Mobile interface: hosts interface
rihlatiApp/ios/App/App/SceneDelegate.swift