How saayam-for-all/ai works
Saayam AI Assistant accepts a question through its Flask web interface, predicts relevant categories, generates and formats an answer with the selected model, and returns performance metrics. The repository also contains a separate Meta AI-only Flask implementation and an Issue42 volunteer-to-task matching utility. The main app and both utilities were excerpted; the frontend and Issue42 data relationships are shown only where code or the README supports them.
Main entry points: app.py Answer generation · volunteer_match.py Volunteer matching · index.html Web interface · MetaAIAPI_app.py Meta-only app
Components 17
Web interface
- Flask routes
app.py - Web interface
templates/index.html
Assistant workflow
- Category classifier
app.py - Answer generation
app.py - Response formatting
app.py - Metrics logging
app.py - Metrics log
AI integrations
- Meta AI
- Gemini
- OpenAI
- Grok
- Meta-only app
MetaAIAPI_app.py
Volunteer matching
- Volunteer records
Issue42/volunteers.csv - Task records
Issue42/task_table.csv - Volunteer matching
Issue42/volunteer_match.py - Task assignments
Issue42/volunteer_match.py
Other components
- User
Connections 17
- User → Web interface: submits query
README.md - Web interface → Flask routes: sends requests
README.md - Flask routes → Web interface: renders page
app.py - Flask routes → Category classifier: classifies query
app.py - Flask routes → Answer generation: routes question
app.py - Answer generation → Meta AI: prompts when selected
app.py - Answer generation → Gemini: queries when selected
app.py - Answer generation → OpenAI: queries when selected
app.py - Answer generation → Grok: queries when selected
app.py - Answer generation → Response formatting: formats response
app.py - Answer generation → Metrics logging: records timings
app.py - Metrics logging → Metrics log: writes metrics
app.py - User → Meta-only app: can use standalone app
README.md - Meta-only app → Meta AI: prompts model
MetaAIAPI_app.py - Volunteer matching → Volunteer records: loads records
Issue42/volunteer_match.py - Volunteer matching → Task records: loads tasks
Issue42/volunteer_match.py - Volunteer matching → Task assignments: produces assignments
Issue42/volunteer_match.py