How ammanamanchisushma123-cell/government_scheme_recommender works
GovScheme AI is a Streamlit app for discovering Indian government schemes. A user registers or logs in, builds a profile, receives profile-based recommendations, and can inspect details or save schemes; the app also offers language selection and an AI assistant. The implementation is concentrated in app.py, with recommendation data and model artifacts supplied as pickle files. The excerpts show OTP verification, saving, detail views, and assistant behavior; some workflow links are based on README documentation because the relevant code was not sampled.
Main entry points: app.py Streamlit app · scheme_recommendation_model.pkl Recommendation model · scheme_tfidf_matrix.pkl TF-IDF matrix · government_schemes_data.pkl Scheme catalogue
Components 17
Access and Profile
- Streamlit app
app.py - OTP verification
app.py - Registration and login
app.py - User profile
app.py - Language selection
app.py
Scheme Discovery
- Scheme recommendations
app.py - Recommendation model
scheme_recommendation_model.pkl - TF-IDF matrix
scheme_tfidf_matrix.pkl - Scheme catalogue
government_schemes_data.pkl - Search results
app.py - Scheme details
app.py
User State
- Saved schemes
app.py - User SQLite store
app.py
External Services
- AI assistant
app.py - Twilio Verify
- Gemini API
Other components
- Scheme seeker
Connections 18
- Scheme seeker → Streamlit app: uses
README.md - Streamlit app → OTP verification: verifies OTP
app.py - Streamlit app → Registration and login: registers or logs in
README.md - Registration and login → User profile: creates profile
README.md - Registration and login → User SQLite store: stores account
README.md - Streamlit app → Language selection: selects language
README.md - User profile → Scheme recommendations: personalizes
README.md - Scheme recommendations → Recommendation model: uses model
README.md - Scheme recommendations → TF-IDF matrix: uses matrix
README.md - Scheme recommendations → Scheme catalogue: loads catalogue
README.md - Streamlit app → Search results: shows matches
README.md - Search results → Scheme details: opens details
app.py - Search results → Saved schemes: toggles saved
app.py - Scheme details → Saved schemes: toggles saved
app.py - Saved schemes → User SQLite store: reads and writes
README.md - Streamlit app → AI assistant: opens assistant
README.md - AI assistant → Gemini API: queries optionally
app.py - OTP verification → Twilio Verify: verifies optionally
app.py