How revanth1310/scheme-assist works
Scheme Assist guides users from a text or voice question to scheme discovery, scheme-specific explanations, or general guidance. The FastAPI entry point handles chat and account flows; the agent routes questions to eligibility-oriented search, scheme explanation, or general chat, then translates the response. Documented voice output is also exposed. The graph reflects sampled source and README capabilities; RAG is documented, but its implementation and wiring are not evident in the sampled files.
Main entry points: main.py FastAPI API · agent.py Agent Router · search_for_schemes.py Scheme Search Tool · auth.py Account Logic
Components 19
API and Identity
- FastAPI API
backend/main.py - Account Logic
backend/auth.py - JWT Utilities
backend/security.py - User Model
backend/models.py - SQLite Database
backend/database.py
Agent and Guidance
- Agent Router
backend/agent.py - Scheme Search Tool
backend/tools/search_for_schemes.py - Eligibility Automation
backend/utils/scheme_search.py - Scheme Scraper
backend/utils/schemes.py - Explanation Tool
backend/tools/generate_scheme_info.py - Scheme Explainer
backend/utils/gemini.py
External Integrations
- Gemini LLM
- myScheme Portal
- Translation Service
- Speech Services
- Edge TTS
Other components
- User
Connections 23
- User → Login UI: uses
- User → Chat UI: asks
- Login UI → FastAPI API: authenticates
- Chat UI → FastAPI API: sends chat
- FastAPI API → Account Logic: creates account
- FastAPI API → Account Logic: verifies password
- FastAPI API → JWT Utilities: creates token
- FastAPI API → User Model: queries user
- FastAPI API → SQLite Database: opens session
- Account Logic → SQLite Database: writes user
- FastAPI API → Agent Router: routes chat
- FastAPI API → Speech Services: transcribes audio
- FastAPI API → Edge TTS: streams speech
- Agent Router → Gemini LLM: routes and chats
- Agent Router → Scheme Search Tool: dispatches search
- Scheme Search Tool → Eligibility Automation: automates eligibility
- Scheme Search Tool → Scheme Scraper: scrapes schemes
- Eligibility Automation → myScheme Portal: submits profile
- Scheme Scraper → myScheme Portal: scrapes listings
- Agent Router → Explanation Tool: dispatches explanation
- Explanation Tool → Scheme Explainer: requests details
- Scheme Explainer → Gemini LLM: generates explanation
- Agent Router → Translation Service: translates response